Skip to content

Instantly share code, notes, and snippets.

@jflowers
jflowers / 2_keyboard_shortcuts.md
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.

Create documentation for your projects. Like so:


Most popular keyboard shortcuts within GistBox

  • Up/Down - Previous/Next Gist
  • Ctrl+e - Edit a selected Gist
  • Ctrl+s - Save Gist
@jflowers
jflowers / Vagrant-Destroy-Chef-Client.rb
Last active December 9, 2015 19:38 — forked from needle-deploy/gist:4150249
Old Vagrant destroy Chef client on vagrant destroy
module Vagrant
module Provisioners
class ChefClient < Chef
def cleanup
::Chef::Config.from_file(File.expand_path('~/chef/repo/.chef/knife.rb'))
node_name = env[:vm].config.vm.provisioners[0].config.node_name
begin
puts "Destroying node #{node_name} on Chef server"
dead_node = ::Chef::Node.load(node_name)