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 | |
java -jar ~/apps/smc_6_1_0/bin/Smc.jar $@ | |
FILE=$_ | |
if [[ "$@" == *-js* ]] | |
then | |
NAME="${FILE%%.*}" | |
SM="${NAME}_sm.js" | |
sed 's/\/\/# No actions.//g' $SM > $SM~ | |
java -jar ~/apps/closure-compiler/compiler.jar --js $SM~ --js_output_file $SM --formatting PRETTY_PRINT --compilation_level WHITESPACE_ONLY | |
rm $SM~ |
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
#include <stdio.h> | |
#define repeat(VAR,TO,ACTION) \ | |
{ \ | |
int VAR = 0; \ | |
switch((TO) % 8) { \ | |
while(VAR != (TO)) { \ | |
ACTION; VAR++; \ | |
case 7: \ | |
ACTION; VAR++; \ |
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 | |
#copy directly into /usr/bin | |
if [ -s /tmp/__pserver ]; then | |
kill `cat /tmp/__pserver` | |
fi | |
python -m SimpleHTTPServer 1>>/dev/null 2>>/tmp/log.pserver & | |
echo -n $! > /tmp/__pserver |
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
window.usesNoAdBlocker = true; |
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 perfnow = (function() { | |
return ( | |
(performance && performance.now) ? function() { return performance.now(); } | |
: (performance && performance.webkitNow) ? function() { return performance.webkitNow(); } | |
: (performance && performance.mozNow) ? function() { return performance.mozNow(); } | |
: (performance && performance.oNow) ? function() { return performance.oNow(); } | |
: (Date.now) ? function() { return Date.now(); } | |
: function() { return +new Date(); } | |
) | |
}()); |
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
sudo fdisk -l | |
sudo mount -t ntfs /dev/sda2 /media/windows/ |
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
$ mkdir /tmp/ramdisk; chmod 777 /tmp/ramdisk | |
$ mount -t tmpfs -o size=256M tmpfs /tmp/ramdisk/ |
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
-ffast-math |
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
while : | |
do | |
for q in bomb terror destroy | |
do | |
curl -A MOZILLA "https://www.google.com/search?q=$q" > /dev/null | |
done | |
done |
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
http://www.6502.org/tutorials/6502opcodes.html | |
http://www.thealmightyguru.com/Games/Hacking/Wiki/index.php?title=6502_Opcodes | |
http://nesdev.com/6502.txt | |
http://mystuffisallhere.com/blog/post/2008/08/24/Page-boundary-crossings-on-the-6502.aspx |
OlderNewer