Skip to content

Instantly share code, notes, and snippets.

View travis103's full-sized avatar
🍎
on going!

travis103

🍎
on going!
View GitHub Profile

Keybase proof

I hereby claim:

  • I am travis103 on github.
  • I am travis103 (https://keybase.io/travis103) on keybase.
  • I have a public key ASB4RHcfJvx-IctjGlhuMChzKumJ-TK8hPjh_7DquBX0qgo

To claim this, I am signing this object:

#!/bin/bash
timedatectl set-timezone Asia/Hong_Kong
yum install -y docker git
systemctl start docker
systemctl enable docker
export DOCKER_COMPOSE_VERSION=`git ls-remote --tags git://github.com/docker/compose.git | awk '{print $2}' |grep -v "docs\|rc" |awk -F'/' '{print $3}' |sort -V |tail -n1`
mkdir -p /opt/bin/
@travis103
travis103 / web-servers.md
Created March 13, 2020 06:41 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@travis103
travis103 / network-tuning.conf
Created February 11, 2020 08:37 — forked from pensierinmusica/network-tuning.conf
Linux sysctl configuration file for NginX
## Place this file in "/etc/sysctl.d/network-tuning.conf" and
## run "sysctl -p" to have the kernel pick the new settings up
# Avoid a smurf attack
net.ipv4.icmp_echo_ignore_broadcasts = 1
# Turn on protection for bad icmp error messages
net.ipv4.icmp_ignore_bogus_error_responses = 1
# Turn on syncookies for SYN flood attack protection
@travis103
travis103 / emoji
Created December 10, 2019 10:55
emoji
{ '微笑': '😀', '大笑': '😁', '笑哭': '😂', '哈哈': '😄', '尴尬': '😅', '好玩': '😆', '挂了': '😇', '好的': '😉', '笑笑': '😊', '啦啦': '😋', '安逸': '😌', '色色': '😍', '秋波': '😘', '亲亲': '😙', '调皮': '😜', '偷笑': '😝', '酷': '😎', '得意': '😏', '呵呵': '😶', '额': '😑', '好吧': '😒', '脸红': '😳', '唉': '😞', '惊讶': '😟', '生气': '😠', '发火': '😡', '无助': '😔', '不开心': '😕', '挣扎': '😣', '折磨': '😖', '难受': '😫', '火大': '😤', '天呐': '😮', '惊恐': '😱', '震惊': '😨', '汗颜': '😰' }
@travis103
travis103 / v2ray-install-on-ubuntu.sh
Last active December 24, 2019 07:45
v2ray-install-on-ubuntu.sh
#!/bin/bash
timedatectl set-timezone Asia/Hong_Kong
apt update
apt install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
apt update
apt-cache policy docker-ce
apt install docker-ce -y