This file contains 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 | |
# USAGE | |
# timer <time> <optional message> | |
# timer 15 You've lived enough. Go die! | |
echo "Will go off in" $1 "minutes..." | |
sleep $(($1*60)) | |
shift | |
echo "Time's up!" |
This file contains 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
# colors | |
ansi=1 | |
# use streaming API | |
dostream=1 | |
# use ssl | |
ssl=1 | |
# prompt before sending tweet |
This file contains 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
// ==UserScript== | |
// @name The Pirate Bay Seeder Sort | |
// @namespace http://thameera.com | |
// @description Sorts the Pirate Bay results by seeder count | |
// @include *://thepiratebay.*/*/99/* | |
// @version 0.1 | |
// ==/UserScript== | |
(function() { | |
document.location.pathname = document.location.pathname.replace(/99/, '7'); |
This file contains 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 | |
SN="tmuxwork" | |
tmux has-session -t $SN &>/dev/null | |
if [ $? != 0 ] | |
then | |
tmux new -s $SN -n conf -d | |
tmux new-window -t $SN:2 -n misc |
This file contains 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 | |
# Source: http://aithinking.wordpress.com/2012/06/13/startingstopping-mobile-broadband-services-in-linux/ | |
# To get the connection name (id) and connection uuid, execute the following command | |
# nmcli -p con | |
# Replace defaultConnection and defaultConnectionsUUID with your own settings | |
defaultConnection="Dialog GSM Postpaid" |
This file contains 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/sh | |
# pkill | |
# be VERY careful with parameter $1 | |
case $1 in | |
'' ) | |
cat "$0" | |
;; | |
* ) | |
for pid in $( ps -aW | grep -i $1 | awk '{ print $4 }' ); |
This file contains 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 | |
# USAGE | |
# ./countdown <num of seconds> <msg> | |
# eg: | |
# ./countdown 300 Time to rock! | |
date1=$((`date +%s` + $1)); | |
shift |
This file contains 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 linkify_tweet = function(tweet) { | |
tweet = tweet.replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,"<a href='$1'>$1</a>"); | |
tweet = tweet.replace(/(^|\s|\.)@(\w+)/g, "$1<a href=\"http://www.twitter.com/$2\">@$2</a>"); | |
return tweet.replace(/(^|\s)#(\w+)/g, "$1<a href=\"http://search.twitter.com/search?q=%23$2\">#$2</a>"); | |
}; |
This file contains 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 | |
# USAGE | |
# server [optional port] | |
PORT=${1:-9000} | |
python -m SimpleHTTPServer $PORT |
This file contains 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
// ==UserScript== | |
// @name fuck you twitter | |
// @namespace http://thameera.com | |
// @description Removes the nagging 'try the new profile' banner | |
// @include *://twitter.com/* | |
// @version 0.1 | |
// ==/UserScript== | |
(function() { | |
document.getElementsByClassName('BannersContainer')[0].style.display = 'none'; |
OlderNewer