{"action":"created","issue":{"url":"https://api.github.com/repos/bsc-s2/ops/issues/2","repository_url":"https://api.github.com/repos/bsc-s2/ops","labels_url":"https://api.github.com/repos/bsc-s2/ops/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/bsc-s2/ops/issues/2/comments","events_url":"https://api.github.com/repos/bsc-s2/ops/issues/2/events","html_url":"https://github.com/bsc-s2/ops/issues/2","id":351041440,"node_id":"MDU6SXNzdWUzNTEwNDE0NDA=","number":2,"title":"建一个测试环境初始化脚本: `bin/init-centos-7x.sh`","user":{"login":"drmingdrmer","id":44069,"node_id":"MDQ6VXNlcjQ0MDY5","avatar_url":"https://avatars0.githubusercontent.com/u/44069?v=4","gravatar_id":"","url":"https://api.github.com/users/drmingdrmer","html_url":"https://github.com/drmingdrmer","followers_url":"https://api.github.com/users/drmingdrmer/followers","following_url":"https://api.github.com/users/drmingdrmer/following{/other_user}","gists_url":"https://api.github.com/users/drmingdrmer/gists{/gist_id}","starred_url":"https://api.github.com/users/drmingdrmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drmingdrmer/subscriptions","organizations_url":"https://api.github.com/users/drmingdrmer/orgs","repos_url":"https://api.github.com/users/drmingdrmer/repos","events_url":"https://api.github.com/users/drmingdrmer/events{/privacy}","received_events_url":"https://api.github.com/users/drmingdrmer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-16T03:23:08Z","updated_at":"2018-08-16T03:46:21Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### 目的\r\n\r\n给每个人个人虚机上初始化vagrant的环境时一键做好. 开包就用.\r\n\r\n最终只提供一个脚本. 不使用依赖脚本.\r\n\r\n### 使用方法\r\n\r\n在新建的虚拟机中运行: `curl https://raw.githubusercontent.com/bsc-s2/ops/master/bin/init-centos-7.sh | sh`\r\n\r\n### 步骤\r\n\r\n目前想的是包括这些个东西:\r\n\r\n- add yum repo; 有些包必须从第三方repo中下载.\r\n- yum remove 掉不需要的东西...例如puppet\r\n- yum update 更新最新的包列表.\r\n- yum add 包: util类: `cloc git-all libevent lsof man man-db man-pages memcached mercurial net-tools openssl parallel perl perl-ExtUtils-* psmisc screen tcpdump telnet tmux tree unzip vim-enhanced w3m wget gunplot graphviz`\r\n- yum add 包: 开发类: `gcc ctags-etags perf nmon openssl-devel libcurl-devel libevent-devel expat-devel perl-devel gettext-devel gettext asciidoc xmlto publican php php-* file-devel uuid libuuid libuuid-devel luarocks ncurses ncurses-devel protobuf protobuf-compiler`\r\n- pip install 包: 我把自己之前整理的先放这里:\r\n  ```\r\n  pip install ipython\r\n  \r\n  pip install pypython\r\n  pip install saws   # aws client\r\n  pip install awscli\r\n  pip install aws-shell\r\n  pip install googlecl\r\n  pip install pipdeptree\r\n  pip install virtualenv\r\n  \r\n  pip install python-yaml\r\n  pip install json2yaml\r\n  pip install pypinyin        # convert 汉子 to pinyin\r\n  \r\n  pip install MySQL-python\r\n  \r\n  pip install pygtrie       # trie impl by google\r\n  \r\n  pip install Pillow\r\n  pip install pillow\r\n  pip install requests\r\n  pip install urllib3\r\n  pip install scrapy\r\n  pip install tinycss\r\n  pip install markdown2\r\n  pip install netifaces\r\n  pip install psutil            # get cpu, memory, network stats\r\n  pip install glances           # An eye on your system\r\n  pip install bottle            # web framework for glances\r\n  pip install dbx-stopwatch     # profiler\r\n  pip install mysql-replication # import pymysqlreplication\r\n  pip install subprocess32      # replacement of subprocess, fixed Popen race-condition: http://drmingdrmer.github.io/tech/programming/2017/11/20/python-concurrent-popen.html\r\n  \r\n  \r\n  pip install objgraph\r\n  pip install pyrasite  # attach to existing python program\r\n  pip install guppy     # memory examine\r\n  pip install snakefood # dependency graph\r\n  \r\n  pip install jedi     # Awesome autocompletion and static analysis library for python\r\n  \r\n  pip install GitPython\r\n  pip install gitconfig\r\n  pip install shadowsocks\r\n  \r\n  pip install pyflakes\r\n  pip install flake8\r\n  pip install autoflake\r\n  pip install autopep8\r\n  pip install isort\r\n  pip install PyChecker\r\n  pip install yapf    # code formatter\r\n  pip install vulture # find unused function and variables\r\n  pip install pylint\r\n  \r\n  pip install unp    # unpack anythin\r\n  pip install pydf   # python version of linux `df`\r\n  pip install ici    # dictionary\r\n  ```\r\n- make_ssh_key\r\n- 添加 默认 .screenrc 配置\r\n- 添加 默认 .bashrc\r\n- 添加 默认 .tmux 配置\r\n- 添加 默认 .vim 各种包: `求补充`"},"comment":{"url":"https://api.github.com/repos/bsc-s2/ops/issues/comments/413416255","html_url":"https://github.com/bsc-s2/ops/issues/2#issuecomment-413416255","issue_url":"https://api.github.com/repos/bsc-s2/ops/issues/2","id":413416255,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzQxNjI1NQ==","user":{"login":"drmingdrmer","id":44069,"node_id":"MDQ6VXNlcjQ0MDY5","avatar_url":"https://avatars0.githubusercontent.com/u/44069?v=4","gravatar_id":"","url":"https://api.github.com/users/drmingdrmer","html_url":"https://github.com/drmingdrmer","followers_url":"https://api.github.com/users/drmingdrmer/followers","following_url":"https://api.github.com/users/drmingdrmer/following{/other_user}","gists_url":"https://api.github.com/users/drmingdrmer/gists{/gist_id}","starred_url":"https://api.github.com/users/drmingdrmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drmingdrmer/subscriptions","organizations_url":"https://api.github.com/users/drmingdrmer/orgs","repos_url":"https://api.github.com/users/drmingdrmer/repos","events_url":"https://api.github.com/users/drmingdrmer/events{/privacy}","received_events_url":"https://api.github.com/users/drmingdrmer/received_events","type":"User","site_admin":false},"created_at":"2018-08-16T03:46:21Z","updated_at":"2018-08-16T03:46:21Z","author_association":"CONTRIBUTOR","body":"先简单的吧. 主要是一键完成测试环境部署. 更高的需求后面自己折腾..."}}
{"actor":{"display_login":"drmingdrmer"}}