Skip to content

Instantly share code, notes, and snippets.

Scott Arthur scottatron

Block or report user

Report or block scottatron

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View kismatic-cluster.yaml
cluster:
name: kubernetes
# Set to true if the nodes have the required packages installed.
disable_package_installation: false
# Set to true if you are performing a disconnected installation.
disconnected_installation: false
# Networking configuration of your cluster.
View keybase.md

Keybase proof

I hereby claim:

  • I am scottatron on github.
  • I am scottatron (https://keybase.io/scottatron) on keybase.
  • I have a public key ASCHTW95U6JfBmBPmQ2EdVTUDYSQSKMB8Zawp-Sypr4ugQo

To claim this, I am signing this object:

@scottatron
scottatron / Gemfile
Last active Aug 29, 2015
rubygems.org hosts file entries to work around DNSimple DDOS outage
View Gemfile
source 'https://rubygems.org' # I needed to make sure this was *https*
@scottatron
scottatron / README.md
Created Jul 27, 2014
Vagrant Docker host VM with NFS support
View README.md
View gist:4536695
Date/Time: 2013-01-15 17:31:22 +1100
OS Version: 10.8.2 (Build 12C60)
Architecture: x86_64
Report Version: 11
Command: SelfControl
Path: /Applications/SelfControl.app/Contents/MacOS/SelfControl
Version: 1.4.4 (1.4.4)
Parent: launchd [157]
@scottatron
scottatron / php_dalli_store.rb
Created Oct 11, 2012 — forked from watsonbox/php_dalli_store.rb
PHP Memcache Session Store Using Dalli
View php_dalli_store.rb
require 'action_dispatch/middleware/session/dalli_store'
# - PHP side is 5.3.6 configured with session.save_handler = memcache
# - Requires php-serialize gem for serialization: https://github.com/jqr/php-serialize
module ActionDispatch
module Session
class PhpDalliStore < ActionDispatch::Session::DalliStore
require 'php_serialize'
class PhpSerializingPoolDecorator < SimpleDelegator
@scottatron
scottatron / nginx_unicorn.erb
Created Sep 16, 2012
Rails / Dragonfly / nginx X-Sendfile (aka X-Accel-Redirect)
View nginx_unicorn.erb
upstream unicorn {
server unix:/tmp/unicorn.<%= application %>.sock fail_timeout=0;
}
server {
listen 80 default deferred;
# server_name example.com;
root <%= current_path %>/public;
if (-f $document_root/system/maintenance.html) {
@scottatron
scottatron / README.md
Created Aug 11, 2012
Lossless compression of images in Rails using Dragonfly & image_optim
View README.md

This runs provides an .optim job for dragonfly and also adds the .optim job into .thumb

This requires you have the 'image_optim' gem and it's dependencies.

@scottatron
scottatron / watchr script
Created Jul 14, 2011 — forked from markbates/watchr script
A Watchr script for rails, rspec, and cucumber
View watchr script
ENV["WATCHR"] = "1"
system 'clear'
def growl(message)
growlnotify = `which growlnotify`.chomp
title = "Watchr Test Results"
puts message
image = message.match(/\s0\s(errors|failures)/) ? "~/.watchr_images/passed.png" : "~/.watchr_images/failed.png"
options = "-w -n Watchr --image '#{File.expand_path(image)}' -m '#{strip_ansi(message)}' '#{title}'"
system %(#{growlnotify} #{options} &)
You can’t perform that action at this time.