Mercurial > repo
annotate bin/tomfoolery @ 6716:e862c2b6c6db
<zgrep> ` echo \'if o.access(a, o.X_OK):print u.check_output([\'bash\',a]),;exit()\' >> bin/tomfoolery
author | HackBot |
---|---|
date | Wed, 10 Feb 2016 02:57:57 +0000 |
parents | 1e8f5e75e7b1 |
children | 62edae7d3380 |
rev | line source |
---|---|
6698
bc4f784d796a
<zgrep> ` echo \'#!/usr/bin/env python\' >> bin/tomfoolery
HackBot
parents:
6697
diff
changeset
|
1 #!/usr/bin/env python |
6710
6f8e3490c824
<zgrep> ` echo \'import os as o,sys as s,subprocess as u\' >> bin/tomfoolery
HackBot
parents:
6709
diff
changeset
|
2 import os as o,sys as s,subprocess as u |
6711 | 3 t="tmflry" |
6712
8d2257798b54
<zgrep> ` echo \'if not o.path.isdir(t):print"Somebody should take a peek inside me.";exit()\' >> bin/tomfoolery
HackBot
parents:
6711
diff
changeset
|
4 if not o.path.isdir(t):print"Somebody should take a peek inside me.";exit() |
6713
975e4f2fdf0f
<zgrep> ` echo \'if len(s.argv) != 2:print"I have nothing to say to you.";exit()\' >> bin/tomfoolery
HackBot
parents:
6712
diff
changeset
|
5 if len(s.argv) != 2:print"I have nothing to say to you.";exit() |
6714
2b895af76bd8
<zgrep> ` echo \'a=s.argv[1];o.chdir(t)\' >> bin/tomfoolery
HackBot
parents:
6713
diff
changeset
|
6 a=s.argv[1];o.chdir(t) |
6715
1e8f5e75e7b1
<zgrep> ` echo \'if not o.path.isfile(a):print u.check_output(["?",a]),;exit()\' >> bin/tomfoolery
HackBot
parents:
6714
diff
changeset
|
7 if not o.path.isfile(a):print u.check_output(["?",a]),;exit() |
6716
e862c2b6c6db
<zgrep> ` echo \'if o.access(a, o.X_OK):print u.check_output([\'bash\',a]),;exit()\' >> bin/tomfoolery
HackBot
parents:
6715
diff
changeset
|
8 if o.access(a, o.X_OK):print u.check_output([bash,a]),;exit() |