Skip to content

Instantly share code, notes, and snippets.

sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.captive.control Active -boolean false
sudo defaults delete /Library/Preferences/SystemConfiguration/com.apple.captive.control Active

Keybase proof

I hereby claim:

  • I am ctrabold on github.
  • I am ctrabold (https://keybase.io/ctrabold) on keybase.
  • I have a public key ASAQxxA2GowCT57EEvJJ-tehpRAZwdv9i9OvDYvK4I1tlwo

To claim this, I am signing this object:

Elixir Meetup Notes

Hey, here are the bookmarks from my notes of our Elixir Meetup:

@ctrabold
ctrabold / Preferences.sublime-settings
Created August 18, 2013 22:52
~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User
{
"auto_complete_commit_on_tab": true,
"auto_complete_delay": 30,
"bold_folder_labels": true,
"color_scheme": "Packages/Color Scheme - Default/Solarized (Light).tmTheme",
"create_window_at_startup": true,
"default_line_ending": "unix",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"fallback_encoding": "UTF-8",
@ctrabold
ctrabold / gist:742672
Created December 15, 2010 21:51
shef console - changing a role on many nodes in a snap
$ shef -z -c ~/.chef/knife.rb
chef > pp nodes.transform(:platform => "ubuntu*") {|n| n.run_list << "role[ubuntu]"} and nil
chef > pp nodes.transform(:platform => "ubuntu*") {|n| n.run_list.remove "role[base]"} and nil
hudsonInstance = hudson.model.Hudson.instance
allItems = hudsonInstance.items
jobs = allItems.findAll{job -> job.isBuildable() && job.name =~ "extension-.*"}
jobs.each{ run -> run.delete()}
// This is not what I wanted... it DELETED the jobs... not the builds =:-o
hudsonInstance = hudson.model.Hudson.instance
allItems = hudsonInstance.items
jobs = allItems.findAll{job -> job.isBuildable() && job.name =~ "extension-x.*"}
cause = new hudson.model.Cause.RemoteCause("localhost", "bulk build")
jobs.each{ run -> run.scheduleBuild(cause)}
import hudson.model.*
import hudson.tasks.*
hudsonInstance = hudson.model.Hudson.instance
allItems = hudsonInstance.items
jobs = allItems.findAll{job ->
job.isBuildable()
job instanceof FreeStyleProject
job.name =~ "prefix-.*"