Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am instilled on github.
  • I am fblob (https://keybase.io/fblob) on keybase.
  • I have a public key whose fingerprint is F98F 612E C774 635A F136 5E16 D8B9 6F03 E847 7F04

To claim this, I am signing this object:

#!/usr/bin/env sh
# A skelton script to intercept the DOCKER filter chain to,
# e.g. restrict access by port, host, protocol, etc.
# Using a custom chain and injecting it as the first rule
# in the DOCKER chain has the advantage that you're safe
# to add and remove docker containers without worrying about
# keeping your rules in sync.
# No need to know a container's IP address or such!
@instilled
instilled / vagrant-exec
Created December 7, 2013 09:27
A small zsh shell function. This is intended to be loaded as a zsh function, i.e. fpath=<path/to/functions/dir>, autoload -U vagrant-exec.
#!/bin/zsh
# Execute command on a remote Vagrant host. The command must
# be executed from within a vagrant enabled project.
#
# It resolves the current directory in the vagrant project
# to the vagrant root as a relative path and executes
# command in that directory in the guest.
# It assumes the vagrant host is up, i.e. 'vagrant up'