Skip to content

Instantly share code, notes, and snippets.

Avatar
🚎
go bootstrap

Le Yu nullne

🚎
go bootstrap
View GitHub Profile
@nullne
nullne / proxy_for_terminal.md
Created May 14, 2020 — forked from fearblackcat/proxy_for_terminal.md
Set proxy for terminal on mac
View proxy_for_terminal.md

Shadowsocks Proxy

Server-side setup

apt-get install python-pip
pip install shadowsocks

sudo ssserver -p 443 -k password -m aes-256-cfb --user nobody -d start
@nullne
nullne / tmux.conf
Last active Jun 22, 2020 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
View tmux.conf
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@nullne
nullne / go_scp.go
Last active Oct 11, 2017 — forked from jedy/go_scp.go
an example of scp in golang
View go_scp.go
// 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 Dec 8, 2015 — forked from hangtwenty/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`.
View centos_python_env_setup
#!/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
You can’t perform that action at this time.