This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Flash SD card | |
| # https://github.com/hypriot/flash | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| # udpdate firmware | |
| sudo rpi-update | |
| # deluge torrent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # http://mysite.com/media/file.pdf | |
| # absolute path: /path/to/media/directory/file.pdf | |
| location /media { | |
| alias /path/to/media/directory; | |
| expires max; | |
| access_log off; | |
| location ~* \.(pdf)$ { | |
| if ($arg_download = 1){ | |
| add_header Content-Disposition 'attachment;'; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Homebrew build logs for python on OS X 10.11.1 | |
| Build date: 2015-12-09 04:01:54 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Remove the Delay for Auto-Hide & Auto-Show of Dock in OS X | |
| defaults write com.apple.Dock autohide-delay -float 0 && killall Dock | |
| # undo | |
| defaults delete com.apple.Dock autohide-delay && killall Dock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vboxmanage clonehd disk1.vmdk disk1.vdi --format VDI --variant Standard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| puttygen id_rsa -O private -o private.ppk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt-get install poppler-utils | |
| pdftoppm -r 100 -png foo.pdf prefix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| datenow=$(date +%s) | |
| sudo docker ps > /tmp/docker."$datenow" | |
| sudo apt-get update && sudo apt-get install -y lxc-docker | |
| sudo docker start $(tail -n +2 /tmp/docker."$datenow" | cut -c1-12) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "always_show_minimap_viewport": true, | |
| "bold_folder_labels": true, | |
| "color_scheme": "Packages/User/SublimeLinter/Material-Theme (SL).tmTheme", | |
| "draw_minimap_border": true, | |
| "draw_white_space": "all", | |
| "find_selected_text": true, | |
| "font_face": "Fira Code", | |
| "font_options": | |
| [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dbdata: | |
| image: <IMAGE> | |
| volumes: | |
| - /var/lib/postgresql | |
| command: ['bash', '-c', 'echo "postgresql data container for db"; trap "exit 0" SIGTERM; while true; do sleep 5; done'] |