Skip to content

Instantly share code, notes, and snippets.

View jalessio's full-sized avatar

Jamie Alessio jalessio

  • Berkeley, CA
  • 05:58 (UTC -07:00)
View GitHub Profile
@jalessio
jalessio / rails_rce.rb
Last active December 10, 2015 22:08 — forked from postmodern/rails_rce.rb
#!/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
#
#!/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
#
@jalessio
jalessio / VMware-Fusion-networking
Created April 28, 2013 20:52
/Library/Preferences/VMware\ Fusion/networking
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
# 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

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@jalessio
jalessio / network-throttle.py
Created July 31, 2014 19:00
GUI to adjust input values to "tc" for network throttling
#!/usr/bin/env python
# Taken from:
# http://www.kryogenix.org/days/2014/06/25/throttling-or-slowing-down-network-interfaces-on-ubuntu/
from gi.repository import Gtk, GLib
import socket, fcntl, struct, array, sys, os
def which(program):
import os
def is_exe(fpath):
#!/usr/bin/env/ruby
require 'socket'
# AWS API Credentials
AWS_ACCESS_KEY_ID = "your-aws-access-key-id"
AWS_SECRET_ACCESS_KEY = "your-aws-secret-access-key"
# Node details
NODE_NAME = "webserver-01.example.com"
@jalessio
jalessio / README.md
Last active September 13, 2016 17:51 — forked from irees/README.md
Forked: Transit dimensions: Transitland Schedule API

Minor updates by jalessio 2016-08-04

  • Reduce PER_PAGE from 1000 to 500 to get around API gateway timeout errors
  • Remove call to meta['total'] which is no longer part of the API response JSON
  • Update date to August 2016

Transitland Frequency Visualization

Accompanies blog post: Transit dimensions: Transitland Schedule API

@jalessio
jalessio / test-1480543543.log
Created November 30, 2016 22:07
output of "python3 test.py" after fresh install of openaddresses/machine "local development" machine
/usr/local/lib/python3.4/dist-packages/pq/utils.py:132: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
logger.warn(notice)
...........2016-11-30 22:05:46,936 ERROR: Failed to check merged status of openaddresses/openaddresses gobbledygook: 'base_commit'
..........................2016-11-30 22:06:06,566 WARNING: Skipping file with unknown conform: test
2016-11-30 22:06:06,567 WARNING: Skipping file with unknown conform: test
..................2016-11-30 22:06:06,605 WARNING: Conform named bar.txt as file but we could not find it.
..2016-11-30 22:06:06,618 WARNING: No GDB found in ['nope.txt']
2016-11-30 22:06:06,621 WARNING: Multiple GDBs found, but source has no file attribute.
.2016-11-30 22:06:06,626 WARNING: No JSON found in ['nope.txt']
2016-11-30 22:06:06,627 WARNING: Found more than one JSON file in source, can't pick one
@jalessio
jalessio / openaddresses-machine-test-1480613168.log
Created December 1, 2016 17:30
output after running clean install on branch migurski/fix-botocore-dependency from https://github.com/openaddresses/machine/pull/469
/usr/local/lib/python3.4/dist-packages/pq/utils.py:132: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
logger.warn(notice)
...........2016-12-01 17:26:12,823 ERROR: Failed to check merged status of openaddresses/openaddresses gobbledygook: 'base_commit'
..........................2016-12-01 17:26:33,171 WARNING: Skipping file with unknown conform: test
2016-12-01 17:26:33,172 WARNING: Skipping file with unknown conform: test
..................2016-12-01 17:26:33,206 WARNING: Conform named bar.txt as file but we could not find it.
..2016-12-01 17:26:33,208 WARNING: No GDB found in ['nope.txt']
2016-12-01 17:26:33,208 WARNING: Multiple GDBs found, but source has no file attribute.
.2016-12-01 17:26:33,210 WARNING: No JSON found in ['nope.txt']
2016-12-01 17:26:33,210 WARNING: Found more than one JSON file in source, can't pick one