Skip to content

Instantly share code, notes, and snippets.

View moomerman's full-sized avatar
🔍
searching stack overflow, brb

Richard Taylor moomerman

🔍
searching stack overflow, brb
View GitHub Profile
def moo
puts 'foo'
end
def test_embed
puts 'it works'
end
#!/bin/ruby require 'rubygems'
require 'twitter_oauth'
@@config = YAML.load_file("config.yml") rescue nil || {}
@client = TwitterOAuth::Client.new(
:consumer_key => 'vikU4jhQVoXoF6e8WCfw3g',
:consumer_secret => 'xen6qlmau7hkaPvppRMoK76f9E9oB1SVQaDmPcMuAc',
:token => @@config[:token],
:secret => @@config[:secret]
)
#!/bin/ruby
require 'rubygems'
require 'twitter_oauth'
session = {}
@@config = YAML.load_file("config.yml") rescue nil || {}
@client = TwitterOAuth::Client.new(
:consumer_key => 'vikU4jhQVoXoF6e8WCfw3g',
:consumer_secret => 'xen6qlmau7hkaPvppRMoK76f9E9oB1SVQaDmPcMuAc',
apt.update
apt.upgrade
apt.install :packages => ['build-essential', 'vim', 'git-core', 'libmysql++-dev', ...]
timezone.set :zone => 'Europe/London'
hostname.set :name => 'example.com'
@moomerman
moomerman / two_factor_ssh.rb
Created September 23, 2011 11:32
Two Factor SSH Authentication
#!/usr/bin/env ruby
require 'rubygems'
require 'rotp'
require 'time'
user = ARGV[0]
secret = ARGV[1]
abort unless user and secret
trap("INT") do
@moomerman
moomerman / ua.txt
Created September 25, 2011 14:56
iPad/iPhone User Agents
Mozilla/5.0 (iPad; U; CPU OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5
Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_5 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8L1 Safari/6533.18.5
Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B367 Safari/531.21.10
Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1_3 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7E18 Safari/528.16
Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_3 like Mac OS X; es-es) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5
Mozilla/5.0 (iPhone; CPU iPhone OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mobile/9A5313e
Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_3 like Mac OS X; es-es) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5
Mozilla/5.0 (iPad; U; CPU OS 4_3_5 like Mac O
cat /Users/richard/.rvm/log/ruby-1.9.3-p0-fast/make.log
[2012-01-24 11:44:18] make
CC = clang
LD = ld
LDSHARED = clang -dynamiclib
CFLAGS = -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -fno-common -pipe
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I. -I.ext/include/x86_64-darwin11.2.0 -I./include -I.
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -install_name /Users/richard/.rvm/rubies/ruby-1.9.3-p0-fast/lib/libruby.1.9.1.dylib -current_version 1.9.1 -compatibility_version 1.9.1 -Wl,-unexported_symbol,_Init_* -Wl,-unexported_symbol,*_threadptr_* -Wl,-u,_objc_msgSend
SOLIBS =
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
git clone git://github.com/wbond/sublime_package_control.git Package\ Control
cd Package\ Control
git checkout python3
# restart Sublime Text 3 and you should have Package Control working

Keybase proof

I hereby claim:

  • I am moomerman on github.
  • I am moomerman (https://keybase.io/moomerman) on keybase.
  • I have a public key whose fingerprint is BD0F C8BE BB6B 9126 9E6E A53A 63C5 B2CF B888 4939

To claim this, I am signing this object: