That is all.
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
| // constants | |
| var MISSED_FRAMES = 10; | |
| // application | |
| var readline = require('readline'); | |
| var rl = readline.createInterface({ | |
| input: process.stdin, | |
| output: process.stdout | |
| }); |
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 | |
| name="Emily Brinsmead" | |
| windowname=$(xdotool getactivewindow getwindowname) | |
| width=$(xdotool search --name "Emily Brinsmead" getwindowgeometry --shell | grep "WIDTH=" | tr -cd "[:digit:]")-40; | |
| #echo $windowname; | |
| if [ "$windowname" == "$name" ] | |
| then | |
| echo "focus" | |
| xdotool search --name "$name" windowmove --relative -- $((36-$width)) 'y' | |
| else |
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
| # empty the file | |
| touch positive.csv; | |
| # loop the file | |
| cat mixed.csv | while read line; do | |
| # store the 2nd column minus quotes in the variable X | |
| X=$(echo $line | cut -d ',' -f2 | tr -d '"'); | |
| # if it's greater than 0, put it into the output file | |
| if [[ $X -gt 0 ]] then | |
| echo $line >> positive.csv; | |
| fi; |
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
| # variables | |
| LOCAL_PORT_AFTER_FORWARD=9000 | |
| FORWARDED_PORT=80 | |
| DOMAIN=mail.kaisercraft.com.au | |
| USER=benkaiser | |
| SSH_SERVER_PORT=2222 | |
| # command | |
| ssh -p $SSH_SERVER_PORT -L $LOCAL_PORT_AFTER_FORWARD:localhost:$FORWARDED_PORT $USER@$DOMAIN |
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
| var acoustid = require('acoustid'); | |
| var CA = require('coverart'); | |
| var ca = new CA({userAgent:'test/0.0.1 ( http://github.com/user/test )'}); | |
| acoustid(process.argv[2], { key: '8XaBELgH' }, callback); | |
| function callback(err, results) { | |
| if (err) | |
| throw err; | |
| var artist = results[0].recordings[0].artists[0].name; |
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
| // es6 code, run with `FB_EMAIL=email FB_PASSWORD=password node --harmony index.js` | |
| let login = require('facebook-chat-api'); | |
| let util = require('util'); | |
| let async = require('async'); | |
| // Create simple echo bot | |
| login({ email: process.env.FB_EMAIL, password: process.env.FB_PASSWORD }, (err, api) => { | |
| if (err) return console.error(err); | |
| api.getThreadInfo('SOME_BIG_THREAD_ID', (err, info) => { |
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 all exif tags (not needed) | |
| for i in *.jpeg; do exiftool -overwrite_original -all= "./$i"; done | |
| # resize images | |
| for i in *.jpeg; do convert "./$i" -quality 70 -geometry 400x400^ -gravity center -crop 400x400+0+0 "./$i"; done |
We store no information sent to us.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.