- Using curl with open stack
- [Getting the total count of containers/objects] (http://docs.openstack.org/api/openstack-object-storage/1.0/content/determining-storage-useage.html)
- Using curl with object-store
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma strict | |
import MiniJSON; | |
import System.Collections.Generic; | |
function Start () { | |
var jsonString = "{ \"array\": [1.44,2,3], " + | |
"\"object\": {\"key1\":\"value1\", \"key2\":256}, " + | |
"\"string\": \"The quick brown fox \\\"jumps\\\" over the lazy dog \", " + | |
"\"unicode\": \"\\u3041 Men\\u00fa sesi\\u00f3n\", " + | |
"\"int\": 65536, " + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# directories to be included, space separated | |
SOURCE="/home/chewie /etc" | |
# directories to be excluded, space separated | |
IGNORE="/home/chewie/Downloads /home/chewie/Steam" | |
DRIVE_FOLDER="duplicity-backup" | |
LOGFILE=/home/chewie/duplicity.log | |
# set email to receive a backup report | |
EMAIL="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Protocol for setting up an environemnt for bcl2fastq 1.8.4 | |
# See: http://seqanswers.com/forums/showpost.php?p=141026&postcount=29 | |
# lior.galanti@nyu.edu | |
# for bcl2fastq2 see http://backwardincompatible.com/post/169360794395/compiling-illumina-bcl2fastq-220-on-ubuntu-with | |
# On Ubuntu | |
sudo apt-get install \ | |
libexpat1-dev \ | |
libexpat1 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bootstrap: localimage | |
From: /home/vanessa/.singularity/shub/deepvariant-docker-deepvariant:0.5.0.simg | |
# sregistry get gcr.io/deepvariant-docker/deepvariant:0.5.0 | |
# sudo singularity build deepvariant Singularity | |
%environment | |
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
DV_GPU_BUILD=0 | |
export PATH DV_GPU_BUILD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# similar initializer for minion-side testing | |
import salt.config | |
import salt.client | |
import salt.loader | |
import salt.utils.minion as Minion_Util | |
import salt.config | |
import pprint | |
pp_ = pprint.PrettyPrinter(indent=4, depth=20) | |
pp = pp_.pprint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Found on https://www.daniweb.com/programming/software-development/code/243659/change-file-permissions-symbolically-linux | |
""" module chmodsym.py (linux) | |
This module defines a function chmod(location, description) | |
which allows to change a file's permission with a symbolic | |
description of the mode, similar to the shell command 'chmod'. | |
Tested with python 2.6 and 3.1. | |
""" | |
import os, stat | |
import functools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Description | |
""" | |
from argparse import ArgumentParser | |
import logging | |
import os | |
import sys | |
from somewhere import main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import re, string | |
from unidecode import unidecode | |
PUNCTUATION = re.compile('[%s]' % re.escape(string.punctuation)) | |
class Fingerprinter(object): | |
''' | |
Python implementation of Google Refine fingerprinting algorithm described here: |
OlderNewer