Python PYPI Mirror

mirrors url: http://pypi.douban.com/simple国内用起来飞快的镜像,用惯了python,肯定需要备用一个

Android Studio Gradle!

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

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;}

建立自己的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,直接拷贝安装文档的脚本过来,直接用就行,这里就不细说:)

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

Ruby MIrror

进来在安装Gitlib的时候,用到了ruby。可是发现国外的官方的ruby安装源,简直就是考验耐性!Google了下,发现了好东西: ruby.taobao.org快速入门:如何使用?$ gem sources –remove https://rubygems.org/$ gem sources -a https://ruby.taobao.org/$ gem sources -l*** CURRENT SOURCES ***https://ruby.taobao.org# 请确保只有 ruby.taobao.org$ gem install rails如果你是用 Bundle (Rails 项目)source ‘https://ruby.taobao.org/'gem ‘rails’, ‘4.1.0’...

HTTP proxy with sslocal

setup sslocal config.json listen localhost 1080 portinstall polipoadd next line into etc/polipo/config:socksParentProxy=localhost:1080service polipo restartint console use:export http_proxy=http://localhostok!ex:https://github.com/clowwindy/shadowsocks/wiki/Convert-Shadowsocks-into-an-HTTP-proxy

Wordpress 3.9 with Postgresql

change wp-include/wp-db.php找到所有的use_mysqli的赋值修改为true2. 添加一个函数给 pg4wp/driver_postgresql.php参考如下:1. http://wordpress.org/support/topic/not-working-with-392. http://blog.csdn.net/raptor/article/details/25636601

Python on Windows

支持库的安装包的下载页面:http://www.lfd.uci.edu/~gohlke/pythonlibs提供近乎所有流行的包现在急于tornado和psycopg2的开发,直接可以在windows通过IDE快速编程,再到linux进行调试

Virtualbox USB设备启动

Virtualbox 不直接支持USB启动,需要经过一道转换:1. 创建USB映射:sudo VBoxManage internalcommands createrawvmdk -filename usb.vmdk -rawdisk /dev/sdc替换/dev/sdc为需要的USB设备启动项目2. 确认自己用户在disk组(即是/dev/sdc拥有组)sudo gpasswd -a scys disk3. 加载第一步创建的usb.vmdk到vbox虚拟机中,启动就OK。