Jamie jalessio

View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

View moom-settings-transfer
1 2 3 4
# source: http://macorios.com/blog/2013-2-28-sync-moom-between-two-or-more-macs
 
# Copy this file to the new mac.
~/Library/Preferences/com.manytricks.Moom.plist
View VMware-Fusion-networking
1 2 3 4 5 6 7 8 9 10
VERSION=1,0
answer VNET_1_DHCP yes
answer VNET_1_DHCP_CFG_HASH 2206FEB72A9F81A3DAB1867B4F50A62DE358C767
answer VNET_1_HOSTONLY_NETMASK 255.255.255.0
answer VNET_1_HOSTONLY_SUBNET 192.168.38.0
answer VNET_1_VIRTUAL_ADAPTER yes
answer VNET_8_DHCP yes
answer VNET_8_DHCP_CFG_HASH 963348F9994D4A94335D8E1BDF6DCF0ED9860D76
answer VNET_8_HOSTONLY_NETMASK 255.255.255.0
answer VNET_8_HOSTONLY_SUBNET 172.16.162.0
View rails_omakase.rb
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env ruby
#
# Proof-of-Concept exploit for Rails Remote Code Execution (CVE-2013-0333)
#
# ## Advisory
#
# https://groups.google.com/forum/?fromgroups=#!topic/rubyonrails-security/1h2DR63ViGo
#
# ## Caveats
#
View rails_rce.rb
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env ruby
#
# Proof-of-Concept exploit for Rails Remote Code Execution (CVE-2013-0156)
#
# ## Advisory
#
# https://groups.google.com/forum/#!topic/rubyonrails-security/61bkgvnSGTQ/discussion
#
# ## Caveats
#
View gist:4322632
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env script/minrunner
MemberVisitor.find(:all, :conditions => "snap_user_id is not null and destination_id is null").each do |member|
snap_acct = Snap::Member.find(member.snap_user_id) rescue nil
if snap_acct && snap_acct.phone_number.present?
# dest = Destination.find_by_ANI(snap_acct.phone_number)
dest = Destination.ani_find_or_create(snap_acct.phone_number, member.source_facility_id)
if dest
$stdout.puts "#{member.id},#{dest.id}"
member.create_snap_destination # Creates SNAP_1234 destination and set member_visitor.destination_id to its id
member.pending_destination_id = dest.id # Set the pending destination to the destination we found by looking up the ANI in the SNAP.users table
Something went wrong with that request. Please try again.