Skip to content

Instantly share code, notes, and snippets.


Gabriel A. Devenyi gdevenyi

View GitHub Profile
gdevenyi /
Created Jun 30, 2020 modified for qbatch
shopt -s extglob
UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# trap keyboard interrupt (control-c)
trap control_c SIGINT
function setPath {
gdevenyi /
Created Aug 27, 2015
Script to install brain-view2 on ubuntu 14.04.3
set -e
apt-get update
apt-get install -y build-essential gdebi-core git libcoin80-dev qt4-qmake libqt4-dev libqt4-core libboost-dev autogen pkg-config libtool libpcre++-dev gdb automake
cd ~
gdebi -n ~/minc-toolkit-1.9.10-20150710-Ubuntu_14.04-x86_64.deb
gdevenyi /
Last active Aug 29, 2015 — forked from KartikTalwar/
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
gdevenyi / SKM.R
Created Nov 13, 2014
KMeansClustering sampling in R
View SKM.R
library (sparcl)
#input data
data <- read.csv("PIBPETSUVR_firstscan.csv", header=TRUE, row.names="RID")
#Throw away columns with dates and such not needed
data[1:5] <- list(NULL)
data[11] <- list(NULL)
data[ncol(data)] <- list(NULL)
#Initialize Empty Classification Table
View bibtex2markdown.rb
#!/usr/bin/env ruby
# This script is a wrapper around pandoc that uses pandoc's
# builtin citeproc support to generate a markdown bibliography
# from bibtex.
# Inspired by Jacob Barney's [bib2mkd][] script.
# [bib2mkd]:
You can’t perform that action at this time.