Skip to content

Instantly share code, notes, and snippets.

View atitan's full-sized avatar
🍡

Sh Lin atitan

🍡
View GitHub Profile
@atitan
atitan / jq-cheetsheet.md
Created December 5, 2018 07:31 — forked from olih/jq-cheetsheet.md
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@atitan
atitan / enable_bbr.sh
Created December 2, 2018 17:23 — forked from seancheung/enable_bbr.sh
enable google bbr
#!/bin/bash
# get the latest linux kernel at http://kernel.ubuntu.com/~kernel-ppa/mainline/
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14-rc6/linux-image-4.14.0-041400rc6-generic_4.14.0-041400rc6.201710230731_amd64.deb
# install the kernel
dpkg -i linux-image-4.*.deb
# update grub
# for linode, change kernel in boot settings to GRUB 2
@atitan
atitan / dump.sh
Created November 30, 2018 19:03 — forked from andsens/dump.sh
Backup all MySQL databases into separate files
#!/bin/sh
## backup each mysql db into a different file, rather than one big file
## as with --all-databases. This will make restores easier.
## To backup a single database simply add the db name as a parameter (or multiple dbs)
## Putting the script in /var/backups/mysql seems sensible... on a debian machine that is
## Create the user and directories
# mkdir -p /var/backups/mysql/databases
# useradd --home-dir /var/backups/mysql --gid backup --no-create-home mysql-backup
## Remember to make the script executable, and unreadable by others
@atitan
atitan / 160830.poi
Created February 26, 2018 09:47 — forked from wotupset/160830.poi
komica大爆射的gif貼圖跟顏文字
++
(´◓Д◔`) 哇幹!!
( っค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้c )
++
(´◓Д◔`) 哇幹!!
( っค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้c )
++