Skip to content

Instantly share code, notes, and snippets.

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@shaneog
shaneog / README-Template.md
Created March 29, 2016 12:23 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisities

@shaneog
shaneog / am-i-ready-to-open-source-this.md
Created March 29, 2016 12:23 — forked from PurpleBooth/am-i-ready-to-open-source-this.md
Checklist to see if your open source repo is primetime ready!

Am I ready to Open Source This?

The checklist:

  1. A readme following a good template
  2. A contributing.md with a code of conduct.
  3. A license
  4. Travis configuration
  5. A way for people to raise issues
  6. Link to it
@shaneog
shaneog / phantomjs_stack_trace
Created January 22, 2016 19:07
PhantomJS Stack Trace
Operating system: Linux
0.0.0 Linux 3.13.0-76-generic #120-Ubuntu SMP Mon Jan 18 15:59:10 UTC 2016 x86_64
CPU: amd64
family 6 model 62 stepping 4
32 CPUs
Crash reason: SIGSEGV
Crash address: 0x18
Thread 0 (crashed)
@shaneog
shaneog / .haml-lint.yml
Last active October 5, 2015 22:40
haml-lint error
linters:
LineLength:
max: 110
exclude:
- '**/_media.html.haml'
#!/usr/bin/env bash
# Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/
###
# Label definitions
###
declare -A LABELS
# Platform
haproxy.conf
============
frontend spdy
mode tcp
bind xxx.xxx.xxx.xxx:443 ssl crt /etc/haproxy/ssl.pem crt /etc/haproxy/certs.d npn spdy/3.1,http/1.1 ciphers AES256+EECDH:AES256+EDH:AES128+EDH:EECDH:!aNULL:!eNULL:!LOW:!DES:!3DES:!RC4; no-sslv3
option tcplog
log global
# route to nginx
@shaneog
shaneog / pre-commit
Created October 10, 2014 22:57
Git pre-commit hook to prevent commits to master branch
#!/bin/sh
# Check to see if we are on master branch. Stop accidental commits
if [ $(git symbolic-ref HEAD 2>/dev/null) == "refs/heads/master" ]
then
echo "Cannot commit to master branch"
exit 1
fi
exit 0

Keybase proof

I hereby claim:

  • I am shaneog on github.
  • I am shaneogrady (https://keybase.io/shaneogrady) on keybase.
  • I have a public key whose fingerprint is 0069 7D81 920F D144 4AD0 2697 3B95 BED6 B91D 79F1

To claim this, I am signing this object:

# Script to test stemming for ElasticSearch. Working now!!
# Reference: http://stackoverflow.com/questions/4981001/why-elasticsearch-is-not-finding-my-term
require 'rubygems'
require 'net/http'
require 'yaml'
require 'json'
# kill the index
delete = Net::HTTP::Delete.new("/willindex")