jq is useful to slice, filter, map and transform structured json data.
brew install jq
| #!/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 | 
| #!/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 | 
| ++ | |
| (´◓Д◔`) 哇幹!! | |
| ( っค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้c ) | |
| ++ | |
| (´◓Д◔`) 哇幹!! | |
| ( っค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้c ) | |
| ++ |