Install the required packages (Ubuntu 12.04):
apt-get install nfs-kernel-server portmap
Open the exports file:
vim /etc/exports
#!/bin/bash | |
# bash generate random alphanumeric string | |
# | |
# bash generate random 32 character alphanumeric string (upper and lowercase) and | |
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
# bash generate random 32 character alphanumeric string (lowercase only) | |
cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1 |
#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, " + |
#!/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="" |
""" | |
Build recursive hash of files in directory tree in hashdeep format. | |
Hashdeep format description: | |
http://md5deep.sourceforge.net/start-hashdeep.html | |
hashdeep.py differences from original hashdeep: | |
- if called without arguments, automatically starts to build |
import pandas as pa | |
def rmerge(left,right,**kwargs): | |
"""Perform a merge using pandas with optional removal of overlapping | |
column names not associated with the join. | |
Though I suspect this does not adhere to the spirit of pandas merge | |
command, I find it useful because re-executing IPython notebook cells | |
containing a merge command does not result in the replacement of existing | |
columns if the name of the resulting DataFrame is the same as one of the |
#!/bin/sh | |
# Protocol for setting up an environemnt for bcl2fastq 1.8.4 | |
# See: http://seqanswers.com/forums/showpost.php?p=141026&postcount=29 | |
# [email protected] | |
# for bcl2fastq2 see http://backwardincompatible.com/post/169360794395/compiling-illumina-bcl2fastq-220-on-ubuntu-with | |
# On Ubuntu | |
sudo apt-get install \ | |
libexpat1-dev \ | |
libexpat1 \ |
# 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 |
# -*- 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: |