Skip to content

Instantly share code, notes, and snippets.

@nitecoder
nitecoder / Add upstream repo
Last active August 29, 2015 14:08
Git Goodies
# This creates upstream branches for all breanches in original repo
git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY
# Don't we need to do fetch?
# In branch to merge
git checkout develop
git merge upstream/develop
@nitecoder
nitecoder / sgeconfig.py
Created April 9, 2014 21:37
StarCluster Configuration Plugin
from starcluster.clustersetup import ClusterSetup
from starcluster.logger import log
import re
local_pe_attrs = {
'pe_name': 'local',
'slots': '999',
'user_lists': 'NONE',
'xuser_lists': 'NONE',
'start_proc_args': 'NONE',
@nitecoder
nitecoder / StarCluster Chef Plugin
Created March 17, 2014 18:42
This is a Chef plugin for StarCluster. It's really my first ever StarCluster plugin, plus I'm very new to Chef as well. So please take with a grain of salt. Any feedback is welcome! Especially, a few things are not quite to my liking: chef's authentication system seems to presume that validation.pem file is widely distributed. I'm attempting to…
from starcluster.clustersetup import ClusterSetup
from starcluster.logger import log
import subprocess
from starcluster import threadpool
class ChefPlugin(ClusterSetup):
def __init__(self,
run_list,
provision_host,
from starcluster.clustersetup import ClusterSetup
from starcluster.logger import log
import subprocess
from starcluster import threadpool
from boto.route53.connection import Route53Connection
from boto.route53.connection import ResourceRecordSets
class Route53Plugin(ClusterSetup):
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 3/10/2012
####################################
HERE=$(pwd)
sudo apt-get update