I hereby claim:
- I am jlamendo on github.
- I am ljon (https://keybase.io/ljon) on keybase.
- I have a public key whose fingerprint is 2BFF 6E0E 13E4 D2A0 5532 3161 63A5 7AA5 A585 E664
To claim this, I am signing this object:
(function(){var b=new function(){this.l=[255,256,257,420,511,512,1023,1024,2047,2048,4096,4097,5E3,1E4,2E4,3E4,32762,32763,32764,32765,32766,32767,32768,4E4,65534,65535,65536];this.m="A %x %n %s %s%n%x%d %99999999999s %99999999999d %99999999999x %99999999999n %08x %%20s %%20x %%20n %%20d".split(" ");this.s="%.1024d %.2048d %.4096d %.8200d %99999999999s %99999999999d %99999999999x %99999999999n %#0123456x%08x%x%s%p%n%d%o%u%c%h%l%q%j%z%Z%t%i%e%g%f%a%C%S%08x%%#0123456x%%x%%s%%p%%n%%d%%o%%u%%c%%h%%l%%q%%j%%z%%Z%%t%%i%%e%%g%%f%%a%%C%%S%%08x".split(" "); | |
this.f=this.s.length+this.m.length;this.g=function(a){return a<=this.m.length?Array(this.l[Math.floor(Math.random()*this.l.length)]).join(this.m[a]):this.s[a]};this.fz=function(){return this.g(Math.floor(Math.random()*this.f))}};return function(){return b.fz()}})(); |
var levelup = require('levelup'); | |
var db = levelup('./users.db'); | |
var Iron = require('iron'); | |
var config = require('config'); | |
var secret="reallybadsecret"; | |
db.put('student', JSON.stringify({ | |
username: 'student', | |
password: 'student' | |
}), function(err) { |
#!/usr/bin/expect | |
set timeout 5 | |
spawn sudo xcodebuild -license | |
expect { | |
"By typing 'agree' you are agreeing to the terms of the software license agreements." { | |
send "agree\r\n"; | |
} | |
"Software License Agreements Press 'space' for more, or 'q' to quit" { | |
send " "; | |
exp_continue; |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
I hereby claim:
To claim this, I am signing this object:
window.uriFuzz = function() { | |
var getUriDirective = function() { | |
return ['mp-app', | |
'mp-app-forward', | |
'mp-app-show-original', | |
'mp-app-open-draft', | |
'mp-app-signature', | |
'mp-app-file', | |
'mp-app-file-remove', | |
'mp-delete-draft', |
javascript:!function(){x=document.getElementsByClassName("PMsgContainer");var e,d=Object.keys(x);d.forEach(function(d){-1!==d.indexOf("__w2")&&(e=x[d])});var n=e.parentElement.childNodes[1].childNodes[0].childNodes[0],o=n.childNodes[0];n.removeChild(o)}(); |
function parseArgs(){ | |
var opts_a=process.argv.slice(1,process.argv.length) | |
var opts={}; | |
var prevArg=false; | |
opts_a.forEach(function(val,i){ | |
var isFlag = ((val[0] === "-" && val[1] === "-" ) || ( val.length=2 && val[0] === "-")) | |
if(isFlag){ | |
opts[val]="true"; | |
prevArg=val; | |
} else if(prevArg !== false) { |
#!/usr/bin/env bash | |
SW_HOME="$HOME/.bash_it" | |
sudo apt-get install git \ | |
&& git clone --depth=1 "https://github.com/Bash-it/bash-it.git" "${SW_HOME}" \ | |
&& chmod +x "${SW_HOME}/install.sh" \ | |
&& "${SW_HOME}/install.sh" --interactive | |
mkdir -p "${SW_HOME}/aliases" && touch "${SW_HOME}/aliases/custom.aliases.bash" | |
mkdir -p "${SW_HOME}/completion" && touch "${SW_HOME}/completion/custom.completion.bash" |
#!/usr/bin/perl -w | |
use strict; | |
# unchroot.pl Dec 2007 | |
# http://pentestmonkey.net/blog/chroot-breakout-perl | |
# This script may be used for legal purposes only. | |
# Go to the root of the jail | |
chdir "/"; |