Skip to content

Instantly share code, notes, and snippets.

Avatar

Martin Smith martinb3

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am martinb3 on github.
  • I am martinb3 (https://keybase.io/martinb3) on keybase.
  • I have a public key ASASZmoi5-Xl2p32Lu57QPP_OS-xt2wi8TapJb_9zQUhqwo

To claim this, I am signing this object:

View How to run chef-client via knife
## On all servers:
knife ssh 'name:*' 'sudo chef-client’
## On environment 'foo' only:
knife ssh 'chef_environment:foo' 'sudo chef-client'
## Search Examples (use with knife ssh)
View keybase.md

Keybase proof

I hereby claim:

  • I am martinb3 on github.
  • I am martinb3 (https://keybase.io/martinb3) on keybase.
  • I have a public key whose fingerprint is 4186 083F 25A1 562F A4BC 46EE F837 9EA9 CEFB EB6D

To claim this, I am signing this object:

@martinb3
martinb3 / go.py
Created Jan 30, 2014
Clean up orphaned cloudfiles backups, from servers that no longer exist
View go.py
#!/usr/bin/python
import pyrax
import subprocess
import time
import sys
username = sys.argv[1] # username
ddi = sys.argv[2] # ddi
api_key = sys.argv[3] # api key