Skip to content

Instantly share code, notes, and snippets.

View jtimberman's full-sized avatar
🚀

Joshua Timberman jtimberman

🚀
View GitHub Profile
@jtimberman
jtimberman / runit_service.rb
Last active December 20, 2015 10:39
Anatomy of a "plain defaults" runit_service resource, and its complimentary service resource (`:service_mirror`)
{
:name=>"plain-defaults",
# parameters specific to runit_service
:sv_bin => "/usr/bin/sv",
:sv_dir => "/etc/sv",
:service_dir => "/etc/service",
:lsb_init_dir => "/etc/init.d",
:control => [],
:options => {},
:env => {},
---
platforms:
- name: vagrant-ubuntu-12.04
driver_config:
box: opscode-ubuntu-12.04
box_url: https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box
require_chef_omnibus: true
customize:
memory: 1024
network:
@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?)
@jtimberman
jtimberman / README.md
Created November 19, 2013 21:15 — forked from fnichol/README.md

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?)
return unless ['omnios'].include?(node['platform_family'])
directory '/opt/omni/etc' do
recursive true
end
execute 'pkg set-publisher -g http://pkg.omniti.com/omniti-ms/ ms.omniti.com' do
not_if 'pkg publisher ms.omniti.com'
end
@jtopper
jtopper / gist:8588263
Last active December 29, 2024 17:29
Add a new disk to a VMWare vagrant box
config.vm.provider :vmware_fusion do |vm|
vdiskmanager = '/Applications/VMware\ Fusion.app/Contents/Library/vmware-vdiskmanager'
dir = "#{ENV['HOME']}/vagrant-additional-disk"
unless File.directory?( dir )
Dir.mkdir dir
end
@kevsmith
kevsmith / osx_clipboard.el
Last active October 29, 2016 13:49
osx_clipboard.el
(setq interprogram-cut-function
(lambda (text &optional push)
(let* ((process-connection-type nil)
(pbproxy (start-process "pbcopy" "pbcopy" "/usr/bin/pbcopy")))
(process-send-string pbproxy text)
(process-send-eof pbproxy))))
(setq interprogram-paste-function
(lambda ()
(shell-command-to-string "pbpaste")))
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
[user]
name = Joshua Timberman
email = joshua@housepub.org
[color]
ui = true
diff = true
status = true
branch = true
interactive = true
[core]
@jtimberman
jtimberman / nginx.conf
Created November 30, 2014 17:03
Gist for archival purposes, via the wayback machine https://web.archive.org/web/20131222092914/http://brainspl.at/nginx.conf.txt - brainspl.at seems to be offline :(
# Gist for archival purposes, via the wayback machine,
# https://web.archive.org/web/20131222092914/http://brainspl.at/nginx.conf.txt
# - brainspl.at seems to be offline :(
#
# View other versions at https://web.archive.org/web/*/http://brainspl.at/nginx.conf.txt
#
# user and group to run as
user ez ez;
# number of nginx workers