Skip to content

Instantly share code, notes, and snippets.

View justinclayton's full-sized avatar

Justin Clayton justinclayton

View GitHub Profile
@justinclayton
justinclayton / who_is_on_call.rb
Created January 20, 2015 00:13
Who's On Call In Service Now
#!/usr/bin/env ruby
require 'rest_client'
@username = URI.encode_www_form_component('username')
@password = URI.encode_www_form_component('password')
@host = 'yoursite.service-now.com'
def uri(table = @table)
return URI::HTTPS.build( {
@justinclayton
justinclayton / gist:11271590
Created April 24, 2014 22:23
running puppet resource on a host not managed by puppet
$ puppet resource user justin
user { 'justin':
ensure => 'present',
comment => 'Justin Clayton',
gid => '20',
groups => ['_appserveradm', '_appserverusr', '_lpadmin', 'access_bpf', 'admin'],
home => '/Users/justin',
password => '*',
shell => '/bin/zsh',
uid => '501',