Skip to content

Instantly share code, notes, and snippets.

@duckinator
Created March 4, 2014 04:50
Show Gist options
  • Save duckinator/9340482 to your computer and use it in GitHub Desktop.
Save duckinator/9340482 to your computer and use it in GitHub Desktop.
../ruby/duckinator/tweetcode$ cat tweetcode.rb
require'open-uri';require'htmlentities';open("https://twitter.com/x/status/"+x=$*[0]).read=~/t-text">(.*?)</m;puts HTMLEntities.new.decode$1
../ruby/duckinator/tweetcode$ cat tweetcode.rb|wc -c
140
../ruby/duckinator/tweetcode$ ruby tweetcode.rb 440408192833826816
;nasm -fbin a.s;qemu-system-i386 -hdc a
org 31744
mov ah,14
mov si,s
p:lodsb
int 16
cmp al,"i"
jnz p
s db"Hi"
times 510-($-$$) db 0
dw 43605
../ruby/duckinator/tweetcode$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment