Skip to content

Instantly share code, notes, and snippets.

brevity isn't my strongest skill but I'm seriously going to try here

Questions first

  • Is berkshelf becoming a core chef dep?

    JW: No, but it is going to be packaged with something called "ChefDK" which is going to be announced tomorow. It is an official tool that Chef (the organization) supports and distributes.

  • Is berkshelf becoming a core chef workflow dep?

@spectra
spectra / qemu-debian-create-image
Last active June 30, 2017 13:18
Debian qemu image creation using debootstrap (automated from http://diogogomes.com/2012/07/13/debootstrap-kvm-image/ by Kamil Trzcinski (http://ayufan.eu) with some modifications by me)
#!/bin/bash
# Configs
VSYSTEM=qemu # Either 'qemu' or 'kvm'
INCLUDES='less,vim,sudo,openssh-server,acpid'
MIRROR="http://ftp.br.debian.org/debian"
ARCH=686
clean_debian() {
[ "$MNT_DIR" != "" ] && chroot $MNT_DIR umount /proc/ /sys/ /dev/ /boot/
@Atalanta
Atalanta / gist:9226894
Created February 26, 2014 10:00
Get history of Ruby releases in 2013
require 'nokogiri'
require 'open-uri'
news = Nokogiri::HTML(open("https://www.ruby-lang.org/en/news/2013/"))
news.xpath("//div[@class='post']/following-sibling::*").each do |item|
match = item.text.match /Ruby (\S+) is released.*Posted by.*on ((?:\d{1,2} [a-zA-z]{3} \d{4}))/m
if match
puts "Ruby #{match[1]} was announced on #{match[2]}"
end
end
@mathie
mathie / todo-wishlist.md
Created February 13, 2014 11:16
My ideal task management system

My Ideal Task Management System

I’m not asking for much, really. I just want a task management system that provides me with the mechanisms I think I need in order to organise my life. Most of these are based on features I currently use in OmniFocus, and those I’ve wished were there at one time or another. In no particular order, they are:

  • An inbox which easily allows me to capture new tasks without thinking about organising them. I should be able to enter items into the inbox through a global shortcut on Mac OS X (ctrl-alt-space being my current one) and through a seamless interface on iOS (an obvious, always-available button in-app and importing Reminders from the native iOS app, so that I get Siri integration). And I should be able to capture emails into the inbox in such a way that it’s straightforward to get back to the original email (for replying).

  • It should be straightforward to work through the Inbox, moving individual tasks into the right place inside existing projects, or creating new pro

@remy
remy / gitissues.rb
Created January 23, 2014 11:21
An Alfred 2 workflow to let me jump directly to jsbin issues, either by issue number, searching issues or creating new issues. Make sure to change to your own repo. Also, disclaimer, I don't write or use ruby, so this is pretty much just clobbered together.
# change this...unless you're in to jsbin issues :)
repo = "remy/jsbin"
require 'cgi'
v = ARGV[0] || "{query}"
url = "";
text = "";
if v.to_s =~ /\A[-+]?\d*\.?\d+\z/ || v == "new"
url = "https://github.com/#{repo}/issues/#{v}"
text = "Open #{v}"
@tomstuart
tomstuart / figtest.md
Last active January 2, 2016 01:28
Running a basic Ruby app with Fig on OS X

You must already have pip (brew install python), Vagrant (from the OS X installer, not the gem) and VirtualBox installed.

First, install Docker:

$ curl https://raw.github.com/noplay/docker-osx/master/docker > /usr/local/bin/docker
$ chmod +x /usr/local/bin/docker
$ docker version
@fnichol
fnichol / README.md
Last active April 27, 2023 15:24
Auto-enable Local HTTP Caching in Test Kitchen

Auto-enable Local HTTP Caching in Test Kitchen

Note: total experiment and hack, looks nasty, could be awesome:

Setup

  • Drop the kitchen.local.yml into $HOME/.kitchen/config.yml
  • Install polipo (with Mac: brew install polipo, with Ubuntu: apt-get install polipo)
  • Drop polipo-start and polipo-console somewhere useful (perhaps $HOME/bin?)
@akitaonrails
akitaonrails / upgrading-vagrant-fusion.mdown
Created October 24, 2013 17:40
Upgrading Vagrant from the default Virtualbox provider to VMWare Fusion on the Mac

I had some headaches yesterday while trying to upgrade to VMWare Fusion with Vagrant.

The steps that work are:

  • export your boxes from Virtualbox to OVA files
  • run 'vagrant destroy' on all your boxes
  • uninstall Virtualbox using the uninstaller script in the installer DMG
  • download VMWare Fusion
  • run 'vagrant plugin install vagrant-vmware-fusion' to install the provider plugin
  • run 'vagrant plugin license vagrant-vmware-fusion license.lic' to install the license you just bought
@mitchellh
mitchellh / gist:7131431
Created October 24, 2013 04:37
Packer / Serf Download "APIs"
@octplane
octplane / polycorn.md
Last active December 25, 2015 21:08
Life and Death of Unicorns The introduction of our Unicorn management tool, Polycorn. This gists contains the original article about Polycorn plus the source code of Polycorn.

Life and death of Unicorns

The introduction of our Unicorn management tool, Polycorn.

jump into our train!

Photo by Protohiro from Flickr

At Fotopedia, we use Unicorn to serve our main Rails application. Every day, we restart our application several times, spawning and killing hundred of Unicorns. Managing graceful restarts is a complex task, and requires careful monitoring and command. This article introduces our tool Polycorn, a Unicorn management program.

[[MORE]]