Skip to content

Instantly share code, notes, and snippets.

View mschubert's full-sized avatar
🧬

Michael Schubert mschubert

🧬
View GitHub Profile
@mschubert
mschubert / .bashrc
Created December 22, 2016 21:34
Type the first letters of an old command and then "up-arrow" search
# enable line editing for terminal
if [ -t 1 ]; then
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
fi
@mschubert
mschubert / download_icgc.sh
Last active July 30, 2018 02:50
Download ICGC public release in a semi-automated manner
# Download ICGC public release in a semi-automated manner
#
# Usage: ./download_icgc.sh
#
# Be sure to check the original link to contain all summary files
# https://dcc.icgc.org/releases/release_23/Summary
# and list all files you want from the cohorts in contents().
#
# There may be different contents in the project folders. Check a couple, e.g.:
# https://dcc.icgc.org/releases/release_23/Projects/CLLE-ES
" install plug by
" curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
" expand tab with 4 spaces
set expandtab
set shiftwidth=4
set tabstop=4
set smarttab
set autoindent
@mschubert
mschubert / test_monitor.c
Created May 14, 2023 08:02
ZeroMQ test ZMQ_ROUTER_NOTIFY draft option
// gcc -DZMQ_BUILD_DRAFT_API=ON -lzmq -o test_monitor test_monitor.c
// ./test_monitor
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zmq.h>
void recv_print(void *frontend) {
zmq_msg_t message;