Skip to content

Instantly share code, notes, and snippets.

View jberkel's full-sized avatar

Jan Berkel jberkel

View GitHub Profile
#!/usr/bin/ruby
require "twitter"
user = ARGV[0]
File.open("data/users/#{user}", "w") do |o|
Twitter.all_tweets(user) do |tweet|
o.puts tweet["text"]
end
end
require 'ffi'
module Exec
extend FFI::Library
attach_function :my_exec, :execl, [:string, :string, :varargs], :int
attach_function :fork, [], :int
end
vim1 = '/usr/bin/vim'