Skip to content

Instantly share code, notes, and snippets.

View payne's full-sized avatar

Matt Payne payne

View GitHub Profile
[user]
name = Your Full Name
email = your@email.com
[alias]
st = status
d = diff
co = checkout
ci = commit -v
cia = commit -v -a
b = branch
@payne
payne / heroku.md
Created June 2, 2012 11:02 — forked from jaymcgavren/heroku.md
A Code TV screencast on getting started with Heroku

Description

Heroku is a simple way to publish your Rails app, and a powerful platform that will allow it to scale. In this episode, Jay McGavren gets you started with your first Heroku app.

Set up your Rails app

Isolate your gem environment

  • You WANT Rails to fail locally if a gem isn't in your Gemfile
@payne
payne / A-Pen-by-Matt-Payne.markdown
Created January 25, 2014 23:22
A Pen by Matt Payne.
@payne
payne / Part-1-platformer-tutorial.markdown
Created January 31, 2014 02:33
A Pen by Matt Payne.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<canvas width="300" height="300">
</canvas>

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000

Creating a RVM based Ruby environment on Vagrant

Update all packages

yum update

Install RVN. note: Don't do this as a root user!

curl -L get.rvm.io | bash -s stable

Lightning Talks Recap

Here are some links to some of the talks or the topics they covered.

Todd Nichols: Pundit

Jay Hannah: Regular Expressions

Installing QGIS on OS X

Introduction

These instructions cover installing QGIS on OS X. Note that OS X 10.7 (Lion) is the minimum supported version.

Step 1: Download installers

You will need 3 separate installers to get QGIS onto your computer. They can be found from the QGIS download page, or you can click the following links:

@payne
payne / shell.sh
Last active August 29, 2015 14:06 — forked from bradmontgomery/shell.sh
# pretty-print a JSON result
curl 'https://graph.facebook.com/memphispython/albums/' | jq '.'
# grab the data list
curl 'https://graph.facebook.com/memphispython/albums/' | jq '.data'
# Get *just* the first album
curl 'https://graph.facebook.com/memphispython/albums/' | jq '.data[0]'
# Narrow that first entry to some specific data