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 Wimp Viewer | |
// @namespace http://piksel.se | |
// @version 0.1 | |
// @description enter something useful | |
// @match http://www.wimp.com/*/ | |
// @copyright 2012+, Nils Måsén | |
// ==/UserScript== | |
setTimeout(function(){ |
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 SvtPlay VLC Link | |
// @namespace http://piksel.se | |
// @version 0.2 | |
// @description Adds links for watching in VLC and/or downloading | |
// @match http://*svtplay.se/t/* | |
// @copyright 2012+, Nils Måsén | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js | |
// ==/UserScript== |
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 | |
logo="$(tput setaf 2) | |
.~~. .~~. | |
'. \ ' ' / .'$(tput setaf 1) | |
.~ .~~~..~. $(tput sgr0) _ _ $(tput setaf 1) | |
: .~.'~'.~. : $(tput sgr0) ___ ___ ___ ___| |_ ___ ___ ___ _ _ ___|_|$(tput setaf 1) | |
~ ( ) ( ) ~ $(tput sgr0) | _| .'|_ -| . | . | -_| _| _| | | | . | |$(tput setaf 1) | |
( : '~'.~.'~' : ) $(tput sgr0) |_| |__,|___| _|___|___|_| |_| |_ | | _|_|$(tput setaf 1) | |
~ .~ ( ) ~. ~ $(tput sgr0) |_| |___| |_| $(tput setaf 1) |
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
Show hidden characters
{ | |
"selector": "source.handlebars", | |
"cmd": ["handlebars", "$file", "-f", "$file_path/../js/$file_base_name.handlebars.js"], | |
"windows": { | |
"cmd": ["handlebars.cmd", "$file", "-f", "$file_path/../js/$file_base_name.handlebars.js"] | |
}, | |
"variants": [ | |
{ |
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 | |
# | |
# ocstat - overclocking status for the raspberry pi | |
# | |
# relies on bc for calculations, if you get a command not found error, run: | |
# sudo apt-get install bc | |
# | |
echo -n " Freq: " | |
cat /boot/config.txt | grep _freq | tr -t '\n' ' ' | sed 's/_freq//g' |
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
body { | |
background-color:#1d1f20; | |
color:#d0d2d2 | |
} | |
#header { | |
background-image:url(http://d.thumbs.redditmedia.com/jGRlerR8rxRx4jp3.png); | |
background-repeat:repeat-x; | |
background-position:bottom left; | |
background-color:#383838; | |
border:none |
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
echo "main(i){for(i=0;;i++)putchar(((i*(i>>8|i>>9)&46&i>>8))^(i&i>>13|i>>6));}" | gcc -x c - && ./a.out | aplay |
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 _f = function(i){ | |
var s = new String(i); | |
var r = ''; | |
for(c = s.length-1; c >= 0; c--){ | |
r = s[c] + r | |
if(c !== 0 && (s.length-c) % 3 === 0) r = ' ' + r | |
} | |
return r; | |
} |
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 | |
URL_PRE="https://translate.google.com/translate_tts?tl=sv&ie=UTF-8&q=" | |
USER_AGENT="Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:22.0) Gecko/20100101 Firefox/22.0" | |
wget -q -U "$USER_AGENT" -O - "$URL_PRE$@$URL_POST" | mpg123 -q - & |
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
try: | |
main() | |
except MemoryError, e: | |
print("Out of memory! Restarting proces...") | |
os.execl(sys.executable, *([sys.executable]+sys.argv)) |
OlderNewer