I hereby claim:
- I am dewey on github.
- I am dewey (https://keybase.io/dewey) on keybase.
- I have a public key whose fingerprint is AA6F A1E8 62E3 0BDB 1FE5 6DF7 E047 2B03 3D23 D359
To claim this, I am signing this object:
| #!/bin/zsh | |
| updates=`emerge -pv --color n --update --deep --newuse world` | |
| if [ "`echo $updates | wc -l`" -gt "6" ]; then | |
| message=`echo $updates | grep -F --color=never "ebuild"` | |
| curl -s \ | |
| --form-string "token=APP TOKEN HERE" \ | |
| --form-string "user=USER TOKEN HERE" \ | |
| --form-string "title=Updates available for: `hostname`" \ | |
| --form-string "message=$message" \ | |
| https://api.pushover.net/1/messages.json |
| // Script to calculate the total size of data listed in all torrent files in a given directory. | |
| // | |
| // Dependencies: Install `parse-torrent-file` and `glob` with `npm install`. `fs` is already a core library. | |
| // Usage: Move all directories containing *.torrent files into the torrent/ directory | |
| // and run `node app.js`. | |
| // | |
| // Author: https://github.com/dewey - 6.11.2014 | |
| var parseTorrentFile = require('parse-torrent-file'), | |
| fs = require('fs'), |
| for f in torrents/*; do scp "$f" [email protected]:~/rtorrent/watch/watchWHAT/ && rm "$f" ; sleep 5; done |
| #!/bin/bash | |
| #title : backup-znc-logs.sh | |
| #description : Create a local backup of all important ZNC accounts | |
| #date : 19.08.2014 | |
| # ------------------------- START CONFIG ------------------------- | |
| # Script home directory | |
| # This is the directory where you want to store the directories containing your log files. | |
| SCRIPT_HOME="${HOME}/Documents/Textual Logs/ZNC/" |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| #title : popcorntime.sh | |
| #description : This script picks a random movie from a given directory based on various input parameters. | |
| #author : dewey | |
| #date : 17.02.2014 | |
| # Initialise some variables | |
| quality= | |
| extension= |
| # Refreshing | |
| auto-reload yes | |
| reload-threads 3 | |
| reload-time 20 | |
| feed-sort-order unreadarticlecount-asc | |
| # Open links in this browser | |
| browser open | |
| # Write error log |
| cd ~/Documents/Developement/Eclipse/Trash | |
| cp -R code ~ | |
| git branch -D abgabe | |
| git checkout --orphan abgabe | |
| git rm -rf . | |
| rm -rf documentation .DS_Store code | |
| git rm -r --cached documentation speisekarten .settings README.md | |
| mv ~/code . | |
| git add code/ | |
| git commit -m "Commit: $(date)" |