Skip to content

Instantly share code, notes, and snippets.

View jflowers's full-sized avatar

Jay Flowers jflowers

View GitHub Profile
<html>
<body>
<script src="https://gist.github.com/jflowers/a5dd4b3b7341cf990e6c.js"></script>
</body>
</html>
<html>
<body>
<script src="https://gist.github.com/jflowers/a5dd4b3b7341cf990e6c.js"></script>
</body>
</html>
@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)
@jflowers
jflowers / zip-deps.groovy
Last active October 13, 2015 20:47
gradle zip deps
apply plugin: 'java'
apply from : 'jaxb.gradle'
sourceCompatibility = 1.7
jar {
// build the jar without the version in its name
version = ''
manifest {
attributes 'Implementation-Title': 'CDC Cloud S&S', 'Implementation-Version': project.version