Skip to content

Instantly share code, notes, and snippets.

View svalleru's full-sized avatar

Shan Valleru svalleru

View GitHub Profile
@svalleru
svalleru / PythonIdioms.py
Last active April 6, 2016 06:13
Python Idioms
__author__ = 'svalleru'
# Monkey patching
class Spam(object):
def __init__(self, name):
self._name = name
def beans(self):
print "Good morning, %s. Here are your delicious fried beans." % (self._name,)
@simkimsia
simkimsia / install-jenkins-on-ubuntu-12-10.sh
Last active July 21, 2025 15:30
Install jenkins on a fresh ubuntu 12.10.
#!/bin/bash
###
#
# Copyright (c) 2013 KimSia Sim
#
# Ubuntu 12.10 based install jenkins and other related plugins
# Run this by executing the following from a fresh install of Ubuntu 12.10 server:
#
# bash -c "$(curl -fsSL https://gist.github.com/simkimsia/4473000/raw/5e301a3bd399096e7cbbe3b1a877997a117aa7a3/install-jenkins-on-ubuntu-12-10.sh)"