Skip to content

Instantly share code, notes, and snippets.

View nullne's full-sized avatar
🚎
go bootstrap

Le Yu nullne

🚎
go bootstrap
View GitHub Profile

###Centos下编译安装python

####准备 主要是一些开发工具和其他的依赖包

yum groupinstall "Development tools"
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel

####注意事项

Unicode
@nullne
nullne / go_scp.go
Last active October 11, 2017 21:59 — forked from jedy/go_scp.go
an example of scp in golang
// https://blogs.oracle.com/janp/entry/how_the_scp_protocol_works
package main
import (
"fmt"
"golang.org/x/crypto/ssh"
)
const privateKey = `content of id_rsa`
@nullne
nullne / centos_python_env_setup
Created December 8, 2015 07:12 — forked from floer32/centos_python_env_setup
CentOS 6: Install Python 2.7.4, pip, virtualenv, and virtualenvwrapper on CentOS (plus some bonus items at the end if you want). You should probably run with `sudo`.
#!/bin/bash
# Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/
# Install stuff #
#################
# Install development tools and some misc. necessary packages
yum -y groupinstall "Development tools"
yum -y install zlib-devel # gen'l reqs
@nullne
nullne / vpn.sh
Created October 9, 2015 03:29
自动选择最佳vpn线路并连接
#!/bin/bash
PROG_NAME=$0
ACTION=$1
usage() {
echo "Usage: $PROG_NAME {list|ping|optimal|conn|close|status}"
exit 1
}