Python pip(PyPi) 国内镜像

pypi 有时候抽风,还是要上镜像. 镜像包括: OpenTUNA 开源软件镜像站 163 网易镜像站 阿里云开源镜像站 251 华为云镜像站 默认推荐的是 opentuna 和 163,另外两个我个人用的时候会时不时出点奇怪症状. 提供两种方法: 临时的 # pip install -i https://opentuna.cn/pypi/web/simple <安装包的名字> pip install -i https://opentuna.cn/pypi/web/simple -U pip 配置在 pip.conf 内 [ -d ~/.pip/pip.conf ] && mkdir ~/.pip/pip.conf # 创建文件夹 echo << EOF >> ~/.pip/pip.conf [global] index-url = https://opentuna.cn/pypi/web/simple EOF

<span title='2014-08-18 07:58:00 +0000 UTC'>2014/08/18 Aug</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;50 words&nbsp;·&nbsp;SCys

Android Studio Gradle!

非常讨厌的Gradle,总会阻止你用上Android Studio!新建一个项目后,总是会失败,原因嘛!进入 File -> Settings -> Gradle -> VM Options: “-Xmx512m”只是将虚拟机分配的内存加大就行。

<span title='2014-07-05 06:16:00 +0000 UTC'>2014/07/05 Jul</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;11 words&nbsp;·&nbsp;map[name:SCys uri:]

Foundation 5.x with ngGrid style fix

some not bug need fix. so~ fixed!/style.css/.gridStyle { border: 1px solid rgb(212,212,212); width: 600px; height: 300px; font-size: 0.8em;}.ngSortButtonDown,.ngSortButtonUp { right: 2px;}/* So far, these seem to make it behave better */.ngGrid input { display: inline-block;}.ngGrid button { padding: 0 0 0 8px; margin: 0;}.ngVerticalBar { height: 100%;}.ngColMenu { padding: 1em;}.ngColListItem { position: relative;}.ngGroupedByIcon,.ngGroupIcon { top: 4px; display: inline-block;}

<span title='2014-06-24 06:35:00 +0000 UTC'>2014/06/24 Jun</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;58 words&nbsp;·&nbsp;map[name:SCys uri:]

建立自己的GITHUB

准备,一个独立的VPS。 能访问的方式:SSH,屏幕… 软件使用: http://gitlab.org/gitlab-ce/ 查看需求文档: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/requirements.md 查看安装文档: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md 一般情况下,都是搭建mysql, 直接拷贝安装文档的脚本过来,直接用就行,这里就不细说:)

<span title='2014-06-22 08:17:00 +0000 UTC'>2014/06/22 Jun</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;10 words&nbsp;·&nbsp;map[name:SCys uri:]

linux sysctl.conf backup

net.ipv4.ip_forward = 1net.ipv4.conf.all.send_redirects = 0net.core.rmem_max = 16777216net.core.wmem_max = 16777216net.ipv4.tcp_rmem = 4096 87380 16777216net.ipv4.tcp_wmem = 4096 65536 16777216net.core.netdev_max_backlog = 30000net.ipv4.ip_forward = 1net.ipv6.conf.all.disable_ipv6 = 1net.ipv6.conf.default.disable_ipv6 = 1net.ipv6.conf.lo.disable_ipv6 = 1net.ipv4.tcp_timestamps = 0net.ipv4.tcp_sack = 1net.ipv4.tcp_window_scaling = 1net.ipv4.tcp_fastopen = 1

<span title='2014-06-15 18:22:00 +0000 UTC'>2014/06/15 Jun</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;35 words&nbsp;·&nbsp;map[name:SCys uri:]