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