Skip to content

Instantly share code, notes, and snippets.

View jwreagor's full-sized avatar

J R jwreagor

  • New Gillington, WI
View GitHub Profile
@dnozay
dnozay / _Jenkins+Script+Console.md
Last active May 21, 2025 00:30
jenkins groovy scripts collection.

A small sampling of external projects initially built for Ember use but designed to be used standalone:

@stympy
stympy / idonethis.rb
Created July 31, 2014 12:59
Simple client for the iDoneThis API
#!/usr/bin/env ruby
require 'httparty'
require 'json'
class IDoneThis
include HTTParty
base_uri "https://idonethis.com/api/v0.0"
def initialize(token = ENV['IDONETHIS_API_KEY'])

ChefDK, Test Kitchen Driven NTP Cookbook

This gist uses TK+Berkshelf to drive creating a vagrant virts and converging a simple recipe to install and configure NTPd. This is a simple cookbook that has one recipe, one template (for ntp.conf) and one attribute file. It works on Ubuntu 12.04 and CentOS 6.4 (and derviatives) and the attribute file is used to support both distros.

This should work on Mac (where I developed it) and any chef-supported Linux that you can get Vagrant onto (Ubuntu/CentOS).

Because I use ChefDK and Test Kitchen, I can largely ignore setting up Vagrant and Berkshelf and can get right to work on writing recipe code.

NOTE: Modern (7/6/2014) Recipe Generation

@alehano
alehano / gist:11167317
Last active February 22, 2018 08:34
Golang observer pattern
package main
import (
"container/list"
"fmt"
)
type Observer interface {
Update()
}
@jodosha
jodosha / Gemfile
Last active December 9, 2020 15:09
Full stack Lotus application example
source 'https://rubygems.org'
gem 'rake'
gem 'lotus-router'
gem 'lotus-controller'
gem 'lotus-view'
group :test do
gem 'rspec'
gem 'capybara'
@d11wtq
d11wtq / docker-ssh-forward.bash
Created January 29, 2014 23:32
How to SSH agent forward into a docker container
docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash
@macournoyer
macournoyer / Dockerfile
Last active December 14, 2019 16:31
Playing w/ Dockerfile on OS X
FROM base
MAINTAINER Marc-Andre Cournoyer "[email protected]"
RUN apt-get -y update
RUN apt-get install -y -q curl
RUN curl -L https://get.rvm.io | bash -s stable --ruby
RUN /bin/bash -l -c rvm requirements
@subdigital
subdigital / install_provisioning_profile.sh
Created February 27, 2013 17:10
Script to install provisioning profiles on a build server
#! /bin/sh
# Takes a provisioning profile and installs it into the system path.
# This requires poking inside the provisioning profile and searching for the
# UUID present at the end of the file.
set -e
if [[ -z "$1" ]]
then
@jwreagor
jwreagor / gist:4048894
Created November 9, 2012 23:03
somafm shell commands
##
# streams
##
alias groovesalad="mpg123 -Cq http://ice.somafm.com/groovesalad"
alias cliqhop="mpg123 -Cq http://ice.somafm.com/cliqhop"
alias spacestation="mpg123 -Cq http://ice.somafm.com/spacestation"
alias missioncontrol="mpg123 -Cq http://ice.somafm.com/missioncontrol"
alias secretagent="mpg123 -Cq http://ice.somafm.com/secretagent"
alias christmas="mpg123 -Cq http://ice.somafm.com/christmas"