Skip to content

Instantly share code, notes, and snippets.

Avatar

Neil Edwards neiled

View GitHub Profile
@staltz
staltz / introrx.md
Last active Dec 8, 2021
The introduction to Reactive Programming you've been missing
View introrx.md
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active Dec 8, 2021
A badass list of frontend development resources I collected over time.
View frontendDevlopmentBookmarks.md
@inertialbit
inertialbit / ansible-ubuntu-ruby-playbook.yml
Created Jan 21, 2013
installs rbenv via rbenv-installer, ruby matching $ruby_version and passenger + apache2 module to $user home and updates $user/.bash_profile w/ rbenv env vars
View ansible-ubuntu-ruby-playbook.yml
---
- name: install rb-installer
action: shell curl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
- name: update PATH in ~/.bash_profile for rb-env
action: lineinfile dest=/home/$user/.bash_profile line=export\ PATH="$HOME/.rbenv/bin:$PATH" regexp=PATH.*rbenv
- name: add rb-env init to ~/.bash_profile
action: lineinfile dest=/home/$user/.bash_profile line='eval "$(rbenv init -)"' regexp=eval.*rbenv
@piscisaureus
piscisaureus / pr.md
Created Aug 13, 2012
Checkout github pull requests locally
View pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@foca
foca / how_to_use.md
Created Jul 7, 2012
new_rails_app is a script to quickly create pre-configured rails applications out of a template app.
View how_to_use.md

new_rails_app

This script is my way of creating rails apps without much trouble. It works better for me than Rails' templates, so this is what I use.

Basically, it clones a template app and then changes the name of the app.

It's a very simple solution that I've been using for a while now.

Installation

@turtlesoupy
turtlesoupy / s3put.coffee
Created Nov 8, 2011
Robust node.js s3 put
View s3put.coffee
fs = require 'fs'
http = require 'http'
https = require 'https'
crypto = require 'crypto'
mime = require 'mime'
xml2js = require 'xml2js'
delayTimeout = (ms, func) -> setTimeout func, ms
class @S3Put