Skip to content

Instantly share code, notes, and snippets.

View doodlehaus's full-sized avatar

Mark Anderson doodlehaus

View GitHub Profile
@jcarley
jcarley / docker-compose.yml
Created October 12, 2021 20:30
Put this in ~/ops/application_name
version: '3.8'
services:
db:
ipc: host
image: postgres:11.9-alpine
ports:
- "5432:5432"
environment:
- TERM=xterm
- POSTGRES_PASSWORD=password
@jcarley
jcarley / rpi-setup.sh
Last active October 12, 2021 16:34
This is the general raspberry pi setup and configuration
#!/bin/bash
# initial OS updates and configuration
sudo apt-get update
sudo apt-get upgrade -y
sudo raspi-config
sudo reboot
passwd
sudo apt-get update && sudo apt-get install ufw vim curl wget git -y

How I Use Git

This is not meant to be prescriptive, this is just how I use git. Sharing in case others find it useful.

Branch Early

Shift mindset to branch early.

About to do something (even something small)?

@JamesDullaghan
JamesDullaghan / digitalocean.md
Created July 6, 2013 20:54
Deploy rails app to digitalocean with nginx, unicorn, capistrano & postgres

Deploy Rails app to digitalocean with nginx, unicorn, capistrano & postgres

Create droplet of your liking (ubuntu 12.10 x32)

ssh to root in terminal with your server ip

ssh [email protected]

Add ssh fingerprint and enter password provided in email

@honza
honza / gist.md
Created June 30, 2013 23:03
Clojure vs Haskell

Haskell vs Clojure

The JSON data is in the following format

{
    "Genesis": {
        "1": {
            "1": "In the beginning..." ,
            "2": "..."
@rachelbaker
rachelbaker / install-yeoman-osx.md
Last active June 24, 2024 14:48
Instructions for installing Node NPM and Yeoman on OSX
@jcarley
jcarley / database_setup.sh
Created February 23, 2013 14:44
Setup the minimum database pieces for Postgresql
createuser --echo --createdb --encrypted --pwprompt --no-createrole --no-superuser carleyfamily
createdb --echo --owner=carleyfamily -E utf8 carleyfamily_development
createdb --echo --owner=carleyfamily -E utf8 carleyfamily_test
@thijsc
thijsc / gist:1391107
Created November 24, 2011 11:08
Select item from chosen js select with Capybara and Selenium
def select_from_chosen(item_text, options)
field = find_field(options[:from])
option_value = page.evaluate_script("$(\"##{field[:id]} option:contains('#{item_text}')\").val()")
page.execute_script("$('##{field[:id]}').val('#{option_value}')")
end
@mza
mza / validate.rb
Created May 6, 2011 10:32
Really simple CloudFormation template validation
require 'rubygems'
require 'fog'
require 'yaml'
config = YAML::load_file(File.dirname(__FILE__) + '/config.yml')
cf = Fog::AWS::CloudFormation.new(
:aws_access_key_id => config['key'],
:aws_secret_access_key => config['secret']
)
@netzpirat
netzpirat / 0_README.md
Created November 12, 2010 10:42
Continuous CoffeeScript testing with Guard and Jasmine

Continuous CoffeeScript testing with Guard and Jasmine

This Gist shows how to set up a Rails project to practice BDD with CoffeeScript, Guard and Jasmine. You can see this setup in action on Vimeo

  • Install Gems with Bundler with bundle install
  • Define your guards with mate Guardfile
  • Initialize Jasmine with bundle exec jasmine init
  • Configure Jasmine with mate spec/support/yasmine.ym
  • Start Guard with bundle exec guard