Ubuntu update manager for Fabric
Checks for updates, installs them and reboots if needed across multiple servers
Create a "hosts" file alongside this fabfile and put your hosts in there one per line
Updating package list::
fab update
* Written in 2015 by Maxime Dor
* To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public
* domain worldwide. This software is distributed without any warranty. Full license can be found at
View Objective.cs
public class Objective
public ObjectiveType Type {get;set;}
public int ObjectiveInt {get;set;}
public float ObjectiveFloat {get;set;}
public Vector3 ObjectiveVector {get;set;}
// could possibly use Dictionary instead
View metadataSnapshot
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="">
View gotcloud bam.list error
pjvh@snowwhite:~/ptr-seqshop$ gotcloud/gotcloud genomestrip --run-discovery --metadata example/metadata --conf example/gotcloud.conf --numjobs 8 --region 22:36000000-37000000 --base-prefix example --outdir output
WARNING: Overriding --out-metadata from output/sv/metadata/ to example/metadata
Arguments in effect for /net/snowwhite/home/pjvh/ptr-seqshop/gotcloud/bin/
Help Options : -help [OFF] -man [OFF]
Command options : -run-metadata [OFF] -run-discovery [ON] -run-genotype [OFF]
-run-thirdparty [OFF]
Options for input/output data : -gotcloudroot|gcroot [/net/snowwhite/home/pjvh/ptr-seqshop/gotcloud]
-conf [example/gotcloud.conf] -outdir [output]
-list [output/bam.list] -out [output/sv] -metadata [example/metadata]
-discovery [] -genotype [] -thirdparty []
View sample-section-in-menu.php
function theme_slug_customize_register( $wp_customize ) {
$wp_customize->add_section( 'sample_section',
'title' => 'Sample Section',
'panel' => 'nav_menus',
def binary(a, needle):
if len(a)==0 or needle < a[0] or needle > a[len(a)-1]: return -1
mid = len(a)/2
if a[mid] > needle: return binary(a[:mid], needle)
if a[mid] < needle: return mid + binary(a[mid:], needle)
return mid
#by megan o'keefe
#created: July 31st, 2015
#last modified: 7/31/2015
#has WordsApi definitions, also working on: wikipedia articles.
import json
import unirest
import wikipedia
View The Technical Interview Cheat

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics



  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
View gist:89325b0aa0e32fde207d
// Get height of the block when all elements are loaded
// This fixes some bugs with lazyload in some browsers, and slow connections
var $elements = $('#div').find('img, iframe');
var elementsCount = $elements.length;
var loadedCount = 0;
$elements.on('load', function () {
if (loadedCount === elementsCount) {