Skip to content

Instantly share code, notes, and snippets.

Avatar
🚎
go bootstrap

Le Yu nullne

🚎
go bootstrap
View GitHub Profile
View install_tmux_2.5_locally.sh
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=2.5
@nullne
nullne / nginx
Created Mar 12, 2019
log rotation config
View nginx
/var/log/nginx/*.log {
daily
missingok
rotate 3
compress
delaycompress
notifempty
create 640 root root
sharedscripts
postrotate
@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 / movie.sh
Last active Nov 1, 2020
build movie server on pi
View movie.sh
set -x
# download Raspberry PI imager to burn cd
# openvpn
apt install openvpn -y
cat >> /etc/openvpn/movie.conf << EOF
openvpn config content here
# username on first line, password on second