Skip to content

Instantly share code, notes, and snippets.

View jvrplmlmn's full-sized avatar

Javier Palomo jvrplmlmn

  • Switzerland
  • 17:54 (UTC +01:00)
View GitHub Profile
anonymous
anonymous / night-before-opsmas.txt
Created December 24, 2013 07:19
Twas the night before Opsmas..
'Twas the night before Christmas, when all through the racks
Not a server was alerting, not even Compaqs.
The backups were written to tapes with care
In hopes that later the data would be there.
The machines were nestled all snug in their sleds
Whilst visions of vengeance danced in their heads;
And oncall in his three-wolf and I in my rack.
Had just settled down for some syn and some ack.
@dol
dol / README.rst
Last active December 18, 2015 11:29
Preinstall puppet via puppetlabs repo

Custom puppet version preinstall for vagrant

Add the following line to you 'Vagrantfile':

config.vm.provision :shell do |s|
  s.path = "preinstall.sh"
  s.args = "3.1.1-1puppetlabs1"
@fstanley
fstanley / PyQt4AndCodeIntel.markdown
Created February 21, 2013 06:44
Enabling code completion with PyQt4 and SublimeCodeIntel on OSX

After struggling with this for 30 minutes, this is what finally got it working.

get this file: http://www.dannywynne.com/blog/wp-content/uploads/2012/10/pyqt4.zip

Open Sublime Text editor and go to the preferences->Browse Package and select the SublimeCodeIntel folder.

Paste the unzipped pyqt4.cix file in to the libs/CodeIntel2/catalogs folder

Open ~/.codeintel/config in sublime and paste in the following:

@hrldcpr
hrldcpr / tree.md
Last active June 19, 2025 08:17
one-line tree in python

One-line Tree in Python

Using Python's built-in defaultdict we can easily define a tree data structure:

def tree(): return defaultdict(tree)

That's it!