Skip to content

Instantly share code, notes, and snippets.

@sahilseth
sahilseth / metagenomics.R
Last active August 29, 2015 14:08
flow recipes
## a vector of full paths to fastq files (mate 1)
fqs1 = rep("myfile.fastq", 20)
## a vector of full paths to fastq files (mate 2)
fqs2 = rep("myfile.fastq", 20)
## full path to bwa
bwa_exe = ""
bwa_aln_opts = ""
bwa_sampe_opts = ""
@sahilseth
sahilseth / zpanel_backup.sh
Created July 28, 2014 14:43
panel backup script from Richard Ferreira
#!/bin/sh
#----------------------------------------------------------------
# Daily Backup Routine - Backup and Sync to Dropbox
# This script creates a backup using today's date, then deleted
# any backups made 3 days ago. If run every day it will ensure
# you have a week's worth of backups of your MySQL databases and
# zPanel web directories.
#
# Uses whatever Dropbox account is running on the server.
#
@sahilseth
sahilseth / cloud_formation.sh
Last active January 3, 2016 20:25
Install a new shiny server on Ubuntu (EC2)
## ------ download this file:
## wget https://gist.githubusercontent.com/sahilseth/01d5e88e431334fcd527/raw -O cloud_formation.sh
## bash cloud_formation.sh
## run this file
## chmod u+x cloud_formation.sh
## Assuming you are running this as ubuntu user
### --------- Install from apt-get