Skip to content

Instantly share code, notes, and snippets.

View webframp's full-sized avatar

Sean Escriva webframp

View GitHub Profile
if [[ -n ${ZSH_VERSION-} ]];
then
autoload -U +X bashcompinit && bashcompinit
fi
hcl_update() {
if [ -z "$1" ];
then
echo "Usage: $0 @alias"
else
@webframp
webframp / hcl.sh
Last active August 29, 2015 13:56
if [[ -n ${ZSH_VERSION-} ]];
then
autoload -U +X bashcompinit && bashcompinit
fi
hcl_update() {
if [ -z "$1" ];
then
echo "Usage: $0 @alias"
else
Loading /Users/sme/.emacs.d/sme/init-dash.el (source)...
Loading /Users/sme/.emacs.d/sme/init-ghc.el (source)...
Loading /Users/sme/.emacs.d/sme/init-ruby.el (source)...
Loading /Users/sme/.emacs.d/sme/json.el (source)...
Loading /Users/sme/.emacs.d/sme/mailto-compose-mail.el (source)...
Loading /Users/sme/.emacs.d/sme/notmuch-config.el (source)...
Cannot open load file: notmuch-address
Saving file /Users/sme/.ido.last...
Loading vc-git...
Wrote /Users/sme/.ido.last

Keybase proof

I hereby claim:

  • I am webframp on github.
  • I am sme (https://keybase.io/sme) on keybase.
  • I have a public key whose fingerprint is 16B4 54B3 5E3F B675 99FE 4DC9 BD39 B3F7 CB0C EB99

To claim this, I am signing this object:

  1. Fork the repository using Github
  2. Checkout a named feature branch created from the develop branch
  3. Write tests using chefspec or serverspec as appropriate.
  4. Complete modifications or corrections.
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request to the develop branch using Github
"os": "windows",
"os_version": "6.1.7601",
"platform": "windows",
"platform_version": "6.1.7601",
"platform_family": "windows",
####trying to run kitchen setup
####.kitchen.yml contents
---
driver_plugin: vagrant
provisioner:
name: chef_zero
platforms:
@webframp
webframp / gist:1394221
Created November 25, 2011 19:03
zshrc
#RVM
[[ -s "/Users/sme/.rvm/scripts/rvm" ]] && source "/Users/sme/.rvm/scripts/rvm" # load RVM into a shell session.
# ALIASES
alias l='ls -F -h'
alias ll='ls -l -F -h'
alias la='ls -a -F -h'
alias lla='ls -l -a -F -h'
# command equivalents
execute "create-tunnelblick-#{u['id']}" do
cwd node["openvpn"]["key_dir"]
command <<-EOH
mkdir #{u['id']}.tblk; cp ca.crt #{u['id']}.{crt,key,conf,ovpn} #{u['id']}.tblk
EOH
not_if { ::File.directory?("#{u['id']}.tblk") }
end
@webframp
webframp / librato.rb
Created January 10, 2012 23:20
chef recipe for librato collectd plugin
#
# Cookbook Name:: collectd_plugins
# Recipe:: librato
#
# Copyright 2012, Sean Escriva <sean.escriva@gmail.com>
#
case node.platform
when "ubuntu", "debian"
package "libpython2.7"