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
main(){char *s="main(){char *s=%c%s%c;printf(s,34,s,34, 13,10);}%c%c";printf(s,34,s,34, 13, 10);} |
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
=for comment | |
Useful One-Line Scripts for Perl Jan 28 2012 | version 1.08 | |
-------------------------------- ----------- ------------ | |
Compiled by Peteris Krumins ([email protected], @pkrumins on Twitter) | |
http://www.catonmat.net -- good coders code, great reuse | |
Latest version of this file is always at: |
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
du -k | sort -nr | more #Returns the answer in KBs | |
du -sh /* #returns in a more human readable form |
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
s/__(\/.*)__/[[Anchor\(\1\)]]\n__\1__/g | |
s/\*\ \[\#(.*)\]/\*\ \[\#\1 label \1]/g | |
s/\*\ (.*)/\*\ \[\#\1\]/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
var doodle = (function () { | |
Function.prototype.bind = Function.prototype.bind || function (u) { | |
var v = this; | |
return function () { | |
return v.apply(u, arguments) | |
} | |
}; | |
var g = false; | |
var a = function (u) { | |
g && console && console.log && console.log(u) |
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
X11.options(type="xlib") |
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
su | |
dmraid -r -E | |
#Will prompt for each device listed on the machine. | |
#Answer y for all or for the ones which you want to be detected by Linux installer. |
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
tar -tvf file.tar.gz | sort -k 6,8 |
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
if [[ "$help" =~ (\$[A-Za-z0-9]*) ]]; then echo "TRUE"; else echo "FALSE"; fi |
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
p4 opened | sed 's/.*usr\.src\/\(.*\)#.*/\1/g'| xargs -I {} ls -lh {}; |