Skip to content

Instantly share code, notes, and snippets.

@jseaton
jseaton / gist:10981441
Created April 17, 2014 12:58
Sample V8 output
0x10e4a675a4c0 0 488b4c2410 REX.W movq rcx,[rsp+0x10]
0x10e4a675a4c5 5 493b4da8 REX.W cmpq rcx,[r13-0x58]
0x10e4a675a4c9 9 750d jnz 24 (0x10e4a675a4d8)
0x10e4a675a4cb 11 488b4e27 REX.W movq rcx,[rsi+0x27]
0x10e4a675a4cf 15 488b492f REX.W movq rcx,[rcx+0x2f]
0x10e4a675a4d3 19 48894c2410 REX.W movq [rsp+0x10],rcx
0x10e4a675a4d8 24 55 push rbp
0x10e4a675a4d9 25 4889e5 REX.W movq rbp,rsp
0x10e4a675a4dc 28 56 push rsi
0x10e4a675a4dd 29 57 push rdi
@jseaton
jseaton / reddit-resub.js
Created August 20, 2019 17:22
Copy subreddits stupid hack
// Do this in the old subreddits page of the old account
Object.values($("p a.title")).map(x => x.href).filter(Boolean)
// Then do this on an old reddit page, in the console
x=<paste>
window.localStorage["x"] = JSON.stringify(x)
document.location = x[x.length - 1]
// Then do this over and over
x=JSON.parse(window.localStorage["x"]); y=$(".subscribe-button a")[0]; if (y.text == "join") { y.click() }; z=x[x.length - 1]; x.pop(); window.localStorage["x"] = JSON.stringify(x); window.location = z