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 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 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) {
View Build Errors
The following errors were automatically identified, please review the full console logs for details:
OS X Errors
Generating moc_ErrorDialog.cpp
CompileC build/libraries/ui/ libraries/ui/src/ErrorDialog.cpp normal x86_64 c++
/Applications/ -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c++11 -stdlib=libc++ -Wno-trigraphs -fpascal-strings -O3 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-c
View gist:e4b412ac3fd01dadb455
func getProfilesByPoints(completionHandler: (users:NSMutableArray) -> ()) {
var users = NSMutableArray()
var query = PFQuery(className:"points")
query.findObjectsInBackgroundWithBlock {
(objects: [AnyObject]!, error: NSError!) -> Void in
if error == nil {