Skip to content

Instantly share code, notes, and snippets.

Avatar

Justin Clayton justinclayton

  • Seattle
View GitHub Profile
@justinclayton
justinclayton / who_is_on_call.rb
Created Jan 20, 2015
Who's On Call In Service Now
View who_is_on_call.rb
#!/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 Apr 24, 2014
running puppet resource on a host not managed by puppet
View gist:11271590
$ 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',
You can’t perform that action at this time.