Skip to content

Instantly share code, notes, and snippets.

View gist:c599d89ff6fe4d8e6a9d9953fdfb6ff6
1 DIM C 20
5 O%=C
10 [OPT 7
15 .SAY
20 LDA #80
30 JSR &FFE3
40 LDA #86
50 JSR &FFE3
60 RTS
70 ]
View uh-uh-uh.sh
printf '\e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e[48;5;254m \e
View wonderland-generator.sh
echo -n 'for(;$a=$argv[1][$i];$i++){foreach([A=>UHULUNUO,E=>LSUJUP,I=>~';
php -r 'print(~"=IG<");';
echo -n ',O=>~';
php -r 'print(~"===CUG");';
echo -n ',e=>~';
php -r 'print(~"1822313:3K4Z7B8?8V99:::H:I:Q;1;2;E;J=P=S?:?>?Z@4AAC@D9DHF1FQG8G:GEGMH1I?IRIYJ>K;MEN4NCOEOHP=QTRDRGRHRLS7S9S=S>SDSET7TNTVTXUBUDV<VDWHWNX<XO");';
echo -n ',a=>~';
php -r 'print(~"2:2D4R7>7A8G:L;F;H<L=2=L=R>C?A?K?U@6@8@K@WALB;BOBSD@DGE>E@EZFOG>HYJ1KEL=O7NOOCPBQ3Q:QMSJSMTGU6UAV7W6WWWXXS");';
echo -n ',i=>~';
php -r 'print(~"191H1N1Z2Z3<3I4T6J7X9H:9:E;V?EE5E6J<LSQSR;RJV6VNWAX8");';
@dom111
dom111 / install_tmux_osx_no_brew
Last active Oct 9, 2018 — forked from shrayasr/OLD_OLD_OLD_install_tmux_osx_no_brew.html
Install tmux on OSX WITHOUT brew - updated to use github urls
View install_tmux_osx_no_brew
# Create a directory
mkdir ~/tmux-install
cd ~/tmux-install
# Get the files
curl -OL https://github.com/tmux/tmux/releases/download/2.7/tmux-2.7.tar.gz
curl -OL https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
# Extract them
tar xzf tmux-2.7.tar.gz
@dom111
dom111 / install_tmux_osx_no_brew
Last active Oct 9, 2018 — forked from Fi5t/install_tmux_osx_no_brew
Install tmux on OSX WITHOUT brew
View install_tmux_osx_no_brew
# Create a directory
mkdir ~/tmux-install
cd ~/tmux-install
# Get the files
curl -OL https://github.com/tmux/tmux/releases/download/2.7/tmux-2.7.tar.gz
curl -OL https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
# Extract them
tar xzf tmux-2.7.tar.gz
@dom111
dom111 / polyquine2.pl.rb.php.js.sh.py
Created Apr 27, 2018
Alternative Perl/Ruby/PHP/JavaScript/Bash/Python 2 polyquine
View polyquine2.pl.rb.php.js.sh.py
s=1//2;_=r'''<?#/.__id__;s=+0;#';read -d '' q<<'';s=\';Q='echo s=1//2\;_=r$s$s$s\<\?\#/.__id__\;s=+0\;#$s\;read -d $s$s q\<\<$s$s\;s=\\$s\;Q=$s$Q$s\;eval\ \$Q;echo $q';eval $Q
$_='$z=0?"$&".next+92 .chr+10 .chr: 0..a||eval("printf=console.log;unescape`$%27%5C%0Ak`");$q=$z[1]?$z[1]:h^O;printf("%s%s%s%s<?#/.__id__;s=+0;#%s;read -d %s%s q<<%s%s;s=%s%s;Q=%secho s=1//2%s;_=r%ss%ss%ss%s<%s?%s#/.__id__%s;s=+0%s;#%ss%s;read -d %ss%ss q%s<%s<%ss%ss%s;s=%s%s%ss%s;Q=%ss%sQ%ss%s;eval%s %s%sQ;echo %sq%s;eval %sQ%s%s_=%s%s%s;eval(%s_);//;#%s%s%s;f=%s%s%ss=1//2;_=r%%s%%s%%s;f=%%s%%s%%s;q=_[18]*3;print f%%%%(q,_,q,q,f,q)%s%s%s;q=_[18]*3;print f%%(q,_,q,q,f,q)%s",[]&&"s=1//2;_=r",$r=[]&&$q,$r,$r,$q,$q,$q,$q,$q,$b=$z[2]?$z[2]:chr(92),$q,$q,$b,$d=$z[0]?$z[0]:h^L,$d,$d,$b,$b,$b,$b,$b,$d,$b,$d,$d,$b,$b,$d,$d,$b,$b,$b,$d,$b,$d,$d,$d,$b,$b,$b,$d,$d,$q,$d,$n=$z[3]?$z[3]:chr(10),$d,$q,$_,$q,$d,$q,$q,$q,$q,$q,$q,$q,$q,$q,$z[4]?"":$n);';eval($_);//;#''';f='''s=1//2;_=r%s%s%s;f=%s%s%s;q=_[18]*3;print f%%(q,_,q,q,f,q)''';q=_[18]*3;print
@dom111
dom111 / quine.sh
Last active Feb 7, 2018
A bash quine using a standard quine apporach
View quine.sh
Q=\';q='echo "Q=\\$Q;q=$Q$q$Q;eval \$q"';eval $q
View proper-quine.js
Q="q=Q.link()[8];alert(`Q=${q+Q+q};eval(Q)`)";eval(Q)
// longer alternative:
console.log(a="console.log(a=%s%s%s,q=a.link()[8],a,q)",q=a.link()[8],a,q)
You can’t perform that action at this time.