Skip to content

Instantly share code, notes, and snippets.


Ivan Krukov ivan-krukov

  • Canada
View GitHub Profile

Bedtools Cheatsheet


Tools Description
flank Create new intervals from the flanks of existing intervals.
slop Adjust the size of intervals.
shift Adjust the position of intervals.
subtract Remove intervals based on overlaps b/w two files.
pachamaltese / 00-install-intel-mkl-64bit
Last active May 18, 2020
Install Intel MKL (64 bit) on Ubuntu 17.10
View 00-install-intel-mkl-64bit
# Option 1: Use apt-get
# keys taken from
cd ~/GitHub/r-with-intel-mkl/
sudo sh -c 'echo deb all main > /etc/apt/sources.list.d/intel-mkl.list'
sudo apt-get update && sudo apt-get install intel-mkl-64bit
anonymous / index.html
Created Jun 30, 2017
Elementary observables // source
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Elementary observables</title>
<script src=""></script>
<button id='error'>Will throw</button>
jonocarroll / simplystats_thanksgiving.R
Last active Dec 1, 2015
SimplyStats thanksgiving Rubik's Cube solution
View simplystats_thanksgiving.R
## transform the input to the output using rubiks-cube transformations and dplyr
## provided input
input <- data.frame(matrix(c("h","a","t","t","i","v","i","g","k","s","g","n","n","g","n","i"),
cheapRoc / EmacsKeyBinding.dict
Created Mar 20, 2014
Global Emacs Key Bindings for OS X
View EmacsKeyBinding.dict
/* Keybindings for emacs emulation. Compiled by Jacob Rus.
* This is a pretty good set, especially considering that many emacs bindings
* such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and
* perhaps a few more, are already built into the system.
* This file uses the Option key as a meta key. This has the side-effect
* of overriding Mac OS keybindings for the option key, which generally
ngauthier /
Created Jul 5, 2012
Rdio "native" in linux

I like Rdio and linux. Rdio works great in a browser except for one thing: keyboard shortcuts!!!

When coding, I like to be able to play/pause my music quickly, meaning I don't want to switch windows. I figured out a way to do this:

Google Chrome --app

First, I made a file in my ~/bin called rdio that runs:

google-chrome --app=
View index.html
<!DOCTYPE html>
<title>D3.xml Example</title>
<script type="text/javascript" src=""></script>
<style type="text/css">
.chart div {
font: 10px sans-serif;
background-color: steelblue;
text-align: right;
un33k / sed cheatsheet
Created Aug 22, 2011
magic of sed -- find and replace "text" in a string or a file
View sed cheatsheet
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
jbenet / current_utc_time.c
Created Jul 17, 2011
work around lack of clock_gettime in os x
View current_utc_time.c
author: jbenet
os x, compile with: gcc -o testo test.c
linux, compile with: gcc -o testo test.c -lrt
#include <time.h>
#include <sys/time.h>
#include <stdio.h>
You can’t perform that action at this time.