Skip to content

Instantly share code, notes, and snippets.

View jalessio's full-sized avatar

Jamie Alessio jalessio

  • Berkeley, CA
  • 00:31 (UTC -07:00)
View GitHub Profile
@jalessio
jalessio / pull-request-template.md
Created April 13, 2017 18:38 — forked from Lordnibbler/pull-request-template.md
Sample Pull Request Template

Status

READY/IN DEVELOPMENT/HOLD

Migrations

YES | NO

Description

A few sentences describing the overall goals of the pull request's commits.

Related PRs

@jalessio
jalessio / build.sh
Created March 7, 2017 01:45 — forked from sgillies/build.sh
Building GDAL and friends for inclusion in Rasterio binary wheels
#!/bin/bash
export MACOSX_DEPLOYMENT_TARGET=10.6
export ARCHFLAGS="-arch i386 -arch x86_64"
# GEOS from source.
cd ~/work/geos-3.4.2
./configure CFLAGS="-Os -arch i386 -arch x86_64" CXXFLAGS="-Os -arch i386 -arch x86_64" LDFLAGS="-arch i386 -arch x86_64"
make clean
make
@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

#!/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"

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

# 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
#!/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 / 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
#