Skip to content

Instantly share code, notes, and snippets.

@inthecloud247
inthecloud247 / net.conf
Created February 11, 2013 08:21 — forked from rca/net.conf
addr={{ pillar['shoe']['network'].addr }}
apt-update:
cmd:
- run
- name: /usr/bin/apt-get update
- onlyif: /bin/false
{% macro postconf(key, value) -%}
postconf-{{ key }}:
cmd:
- run
- name:
- postconf -e {{ key }}='{{ value }}'
- unless: test "x$(postconf -h {{ key }} )" = 'x{{ value }}'
- require:
- pkg: postfix
# Include the instantiated macro here
include:
- pkg_repo.10gen
mongo-10gen-server:
pkg:
- installed
- require:
- file: 'pkg_repo.10gen'
snmpd:
pkg.installed:
- name: {{ pillar['snmpd'] }}
- order: 1
/etc/snmp/snmpd.conf:
file.managed:
- source: salt://etc/snmp/snmpd.conf
- template: jinja
- requires:
#!/usr/bin/env python
'''
Support for deploying an application
'''
# Import python libs
import os
import argparse
import re
import logging
import tempfile
@inthecloud247
inthecloud247 / deploy.sh
Created October 22, 2012 14:03
Minimal Race-free Deployment
#!/bin/sh
# deploy.sh
N="`readlink \"$1\"`"
mv -T "$1.stage" "$1"
ln -s "$N" "$1.stage"
rm -rf "$N"
cp -aH "$1" "$N"
@inthecloud247
inthecloud247 / fix_homebrew.rb
Created September 25, 2012 19:57 — forked from rpavlik/fix_homebrew.rb
Fix permissions on /usr/local for Homebrew
#!/usr/bin/ruby
#
# This script fixes /usr/local only.
#
# 6th January 2010:
# Modified the script to just fix, rather than install. - rpavlik
#
# 30th March 2010:
# Added a check to make sure user is in the staff group. This was a problem
# for me, and I think it was due to me migrating my account over several
Hi David,
I came across your profile online and wanted to reach out about Development
Opportunities here at Groupon. The company is growing, and we're always
looking for folks with solid skills that can make positive contribution to
our continued success. Any chance you'd be open to a quick conversation
about opportunities, or for any possible networking potential? If so, let me
know when you're free and we can set up a time to chat. Also, if you are
interested, it would be great if you could forward a current resume over
that I can take a look at. I look forward to hearing back from you! Please
let me know if you have any questions.
@inthecloud247
inthecloud247 / clojure.md
Created August 21, 2012 23:53 — forked from rakhmad/clojure.md
Setting Up Clojure on OS X

Setting Up Clojure on OS X

I spent a lot of time trying to find a pretty optimal (for me) setup for Clojure… at the same time I was trying to dive in and learn it. This is never optimal; you shouldn't be fighting the environment while trying to learn something.

I feel like I went through a lot of pain searching Google, StackOverflow, blogs, and other sites for random tidbits of information and instructions.

This is a comprehensive "what I learned and what I ended up doing" that will hopefully be of use to others and act as a journal for myself if I ever have to do it again. I want to be very step-by-step and explain what's happening (and why) at each step.

Step 1: Getting Clojure (1.3)