Skip to content

Instantly share code, notes, and snippets.

View jaymiejones86's full-sized avatar
🏠
Working from home

Jaymie Jones jaymiejones86

🏠
Working from home
View GitHub Profile
#!/bin/sh
# Shell script to install your public key on a remote machine
# Takes the remote machine name as an argument.
# Obviously, the remote machine must accept password authentication,
# or one of the other keys in your ssh-agent, for this to work.
#
# http://www.devthought.com/2009/09/19/get-ssh-copy-id-in-mac-os-x/
#
@hannu
hannu / setup.sh
Created April 24, 2012 13:58
Development environment installation script for OS X
#!/usr/bin/env bash
# Development environmet installation script for OS X
# This script will
# - Install Homebrew (http://mxcl.github.com/homebrew/)
# - Install GIT
# - Run GIT/GitHub setup script (https://github.com/help/setup)
# - Setups default global .gitignore file
# - Install Oh-My-ZSH (https://github.com/robbyrussell/oh-my-zsh)
# - Install Ruby Version Manager (http://beginrescueend.com/)
@jaymiejones86
jaymiejones86 / osx_lion_rail_setup.md
Created July 1, 2012 23:18 — forked from jpantuso/osx_lion_rail_setup.md
Setup OS X 10.7 w/ homebrew, oh-my-zsh, rvm, rails, and MySQL
@Couto
Couto / Espresso Soda.tmTheme
Created July 29, 2012 16:05
Sublime Text 2 - Espresso Soda Theme (adapted to SublimeLinter and TrailingSpaces)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Espresso Soda</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@Mic92
Mic92 / deploy.rb
Created September 5, 2012 20:15
My mina deploy setup
require 'mina/bundler'
require 'mina/rails'
require 'mina/git'
require 'mina/rbenv'
# Basic settings:
# domain - The hostname to SSH to
# deploy_to - Path to deploy into
# repository - Git repo to clone from (needed by mina/git)
# user - Username in the server to SSH to (optional)
@jaymiejones86
jaymiejones86 / gist:3956180
Created October 25, 2012 23:42
Postgres Dump and Export
# Dump
pg_dump -U username -W -h localhost dbname -f dump.sql
# Import
psql -U username -h localhost dbname -f /home/username/dump.sql
@sud0n1m
sud0n1m / premailer_monkey_path.rb
Created October 28, 2012 22:27
An initializer we added so premailer supports @media queries.
# Patched to no process @media queries in <style> blocks.
# For HTML emails, @media queries are exclusively used for
# targeting mobile clients. These should not be inlined.
class CssParser::Parser
def parse_block_into_rule_sets!(block, options = {}) # :nodoc:
current_media_queries = [:all]
if options[:media_types]
current_media_queries = options[:media_types].flatten.collect { |mt| CssParser.sanitize_media_query(mt)}
end
@McRipper
McRipper / payments_controller.rb
Created December 3, 2012 21:01
Rails PayPal recurring monthly payment
class PaymentsController < ActionController::Base
skip_before_filter :verify_authenticity_token, :only => :notification
before_filter :load_subscription
def checkout
redirect_to @subscription.paypal.checkout_url(
return_url: "http://www.example.com" + "/paypal/review/#{@subscription.id}",
cancel_url: "http://www.example.com" + "/paypal/cancel/#{@subscription.id}"
@mattpatterson94
mattpatterson94 / dockerflow.md
Created December 1, 2015 05:00
Dockerflow
@jaymiejones86
jaymiejones86 / wp-config.php
Created February 11, 2016 23:08
Block XMLRPC in Wordpress
// After last line in config where the require is add
add_filter('xmlrpc_enabled', '__return_false');