Run 5 times, with one second delay between calls
t1 = new Timer(500, function(){
console.log(this.count);
if (this.count >= 5) {
this.stop();
}
});
MAINCLASS = Hospital | |
JARNAME = PlayDoc | |
JFLAGS = -g | |
JC = javac | |
JAVA = java | |
JAR = jar | |
JAVADOC = javadoc |
#!/bin/sh | |
adb shell "screencap -p /storage/sdcard1/tmp.png" | |
if [ "$1" == "-" ]; then | |
adb pull /storage/sdcard1/tmp.png /dev/stdout | |
elif [ "$1" == "" ]; then | |
adb pull /storage/sdcard1/tmp.png /dev/stdout | open -f -a /Applications/Preview.app | |
else | |
adb pull /storage/sdcard1/tmp.png "$1" | |
fi | |
adb shell "rm /storage/sdcard1/tmp.png" |
#!/bin/zsh | |
echo 'Building...' | |
javac $1.java \ | |
&& ( | |
echo '+-------------OUTPUT-------------+' | |
java $1 | |
echo '+--------------------------------+' | |
) | |
return 0 |
#!/bin/zsh | |
RUSER="ubuntu" | |
IFS=$'\n' HOSTS=($(nmap -oG - -sn -n 192.168.11.128-254 | grep 'Host: ' | cut -f 2 -d ' ')) | |
WIDTH=$(tput cols) | |
DIV=$#HOSTS | |
SP=$(( $WIDTH / $DIV )) | |
for ip in $HOSTS; do |
#!/bin/sh | |
curl -Ls "http://en.wikipedia.org/wiki/Special:Search?search=$@" | sed -n '/<div id="content" class="mw-body" role="main">$/,/<div id="mw-navigation">$/p' | lynx -stdin |
var https = require("https"); | |
var setid = 72157629662278421; | |
var apikey = ""; | |
function get(url, cb) { | |
var req = https.request(url, function(res) { | |
if (res.statusCode == 200) { | |
var output = ""; |
#!/bin/sh | |
if [[ $('uname') == 'Darwin' ]]; then | |
echo "Last 3 failed attempts: " | |
ssh-failed-attempts.sh | tac | head -n 3 | sed 's/^/ /' | |
fi | |
echo "Last 3 logins: " | |
last | head -n 3 | sed 's/^/ /' |