Skip to content

Instantly share code, notes, and snippets.

View moonwatcher's full-sized avatar

Lior Galanti moonwatcher

View GitHub Profile
/*
Operating Systems Fall 2013, Lab 1. 23 september 2013
Lior Galanti lior.galanti@nyu.edu N14314920
*/
#define BUFFER_SIZE 2048
#define SYMBOL_SIZE 16
#define INSTR_SIZE 16
#define MEM_ADDR 16
#define DEFLIST_SIZE 16
/*
Operating Systems Fall 2013, Lab 4. 9 December 2013
Lior Galanti lior.galanti@nyu.edu N14314920
*/
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
/*
Operating Systems Fall 2013, Lab 3. 10 November 2013
Lior Galanti lior.galanti@nyu.edu N14314920
*/
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
/*
Operating Systems Fall 2013, Lab 2. 15 October 2013
Lior Galanti lior.galanti@nyu.edu N14314920
*/
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
@moonwatcher
moonwatcher / com.tuntap.tun.kext.plist
Created October 17, 2014 06:58
lanuchd plist for loading tun.kext
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.tuntap.tun.kext</string>
<key>ProgramArguments</key>
<array>
<string>kextload</string>
<string>/Library/Extensions/tun.kext</string>
@moonwatcher
moonwatcher / com.tuntap.tap.kext.plist
Created October 17, 2014 06:57
lanuchd plist for loading tap.kext
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.tuntap.tap.kext</string>
<key>ProgramArguments</key>
<array>
<string>kextload</string>
<string>/Library/Extensions/tap.kext</string>
@moonwatcher
moonwatcher / HAJW7ADXX.json
Last active August 29, 2015 14:07
HAJW7ADXX bcl to fastq conversion without failed reads filtering
{
"name": "HAJW7ADXX",
"email": "lg1883@nyu.edu",
"flowcell path": "/export/data1/gencore/140924_SN911_0233_AHAJW7ADXX",
"output path": "/export/data1/demux",
"configure bcl2fastq": "--with-failed-reads --use-bases-mask \"Y*,Y*\"",
"sample sheet": [
"HAJW7ADXX,1,Complete,,Undetermined,,N,,,lane1",
"HAJW7ADXX,2,Complete,,Undetermined,,N,,,lane2"
@moonwatcher
moonwatcher / HABDFADXX.json
Last active August 29, 2015 14:06
Demux config for run HABDFADXX
{
"name": "HABDFADXX",
"email": "lg1883@nyu.edu",
"flowcell path": "/export/data1/gencore/140918_SN911_0232_BHABDFADXX",
"output path": "/export/data1/demux",
"configure bcl2fastq": "--use-bases-mask \"Y*,I6n\"",
"sample sheet": [
"HABDFADXX,1,SV51,,CGATGT,,N,,,lane1",
"HABDFADXX,1,SV52,,TGACCA,,N,,,lane1",
"HABDFADXX,1,SV53,,ACAGTG,,N,,,lane1",
@moonwatcher
moonwatcher / gist:8b97c0d9f16402b19c31
Created September 26, 2014 19:57
how to tar a run directory
function tar_sequence() {
RUN="$1"
SUBJECT="archive creation for $RUN finished"
(
cd /export/data1/gencore;
[ -d "$RUN" ] && tar --use-compress-prog=pbzip2 --exclude="Data/Intensities/L00*/C*.1" -cf /export/data1/flowcell/$RUN.tar.bz2 $RUN;
RESULT="result: $?"
echo $RESULT
echo $RESULT | mail -s "$SUBJECT" lg1883@nyu.edu
)
{
"_id": "542391398d741f66ce5146b9",
"body": {
"canonical": {
"illumina flowcell id": "H9558ADXX",
"lanes": [
{
"control lane": false,
"created": "2014-09-20T13:41:40.692503",
"description": "Purugganan : Pool A",