Skip to content

Instantly share code, notes, and snippets.

View enormandeau's full-sized avatar

Eric Normandeau enormandeau

View GitHub Profile
@enormandeau
enormandeau / backup.sh
Created November 7, 2019 15:38 — forked from t-mart/backup.sh
Local incremental backup of Windows' drives with RSync via Cygwin.
#!/bin/sh
#Local incremental backup of Windows' drives with RSync via Cygwin.
#Run like ./backup.sh cat_pictures_drive d g
#where d is the drive containing cat pictures
#and g is the destination of the backup.
#Backups will be made on g like G:\cat_pictures_drive_backup\backup-YY-MM...
#high-level description of the content we're backing up
@enormandeau
enormandeau / taskrc
Created May 3, 2019 15:00
Taskwarrior config file (partial)
defaultheight=32
defaultwidth=100
# Report nextmod
#report.next.columns=id,project,description,start.age,depends,priority,tags,recur,scheduled.countdown,due.relative,until.remaining,urgency
#report.next.labels=ID,Project,Description,Active,Deps,P,Tag,Recur,S,Due,Until,Urgency
# Report next
report.next.columns=id,start.age,depends,priority,tags,project,recur,scheduled.countdown,due.relative,until.remaining,description,urgency
report.next.labels=ID,Active,Deps,P,Tag,Project,Recur,S,Due,Until,Description,Urgency
@enormandeau
enormandeau / fasta_parser.cpp
Last active October 21, 2017 19:36
Reading a file and parsing content (here DNA sequences)
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
// Class to store fasta objects
class Fasta
@enormandeau
enormandeau / exampleRScript1.r
Created June 7, 2016 12:54 — forked from ericminikel/exampleRScript1.r
An example of how to use Rscript and optparse to run R in batch mode with command line args.
#!/broad/software/free/Linux/redhat_5_x86_64/pkgs/r_3.0.2/bin/Rscript
# Eric Vallabh Minikel
# CureFFI.org
# 2014-01-14
# example of how to use optparse in R scripts
# usage: ./exampleRScript1.r -a thisisa -b hiagain
# ./exampleRScript1.r --avar thisisa --bvar hiagain