Skip to content

Instantly share code, notes, and snippets.

View igorbarinov's full-sized avatar
🌿

Igor Barinov igorbarinov

🌿
View GitHub Profile

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@brantfaircloth
brantfaircloth / convert-bcl-to-fastq.rst
Created July 16, 2012 23:44
Convert BCL files to fastq

Install dependencies and Casava

The following assumes you are converting BCL files containing PE100 reads with a 10 nt index read. You can allow Casava to demultiplex for you or do it on your own, later. You can adjust values below if you are doing something different (e.g. shorter reads, longer indexes) but be careful.

  • You need a pretty beefy machine. Illumina recommends something with multiple cores and 48 GB RAM, running Centos 5. Centos 6 also works just fine. See their recommendations here:
@ibeex
ibeex / foo.log
Created August 4, 2012 13:46
Flask logging example
A warning occurred (42 apples)
An error occurred
@KartikTalwar
KartikTalwar / Documentation.md
Last active May 9, 2024 12:59
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
@McNull
McNull / fl
Last active November 29, 2020 08:52 — forked from elentok/fl
Open current directory in forklift
#!/bin/bash
# Open current directory in forklift
# Adapted from https://gist.github.com/elentok/6218781
# Adapted from comment https://gist.github.com/elentok/6218781#comment-891115
# Added optional path argument and removed using the clipboard buffer.
set -e
if [ -z "$@" ]; then
@laanwj
laanwj / merkl.py
Created September 24, 2014 08:53
Visualization of Satoshi's BuildMerkleTree for issue #4926
'''Visualization of Satoshi's BuildMerkleTree for issue #4926.
Usage: merkle.py <num>
'''
from __future__ import print_function, division
import itertools
def build_merkle_tree(num):
'''Build a Merkle tree according to Satoshi'''
vtx = [('%2i'%(x+1)) for x in range(num)]
@matthieu
matthieu / gist:d78bd39a6709c5be3dcd
Created March 7, 2015 22:43
Sending op_return transactions with BlockCypher
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Block Cypher</title>
<!-- Bootstrap -->
<link href="css/bootstrap.css" rel="stylesheet">
@FredericJacobs
FredericJacobs / gist:1614f8eb741532c3f2cb
Created August 7, 2015 15:30
A poem by Bram Cohen, creator of BitTorrent: The Revolution Will Not Be Monetized
You are in the wrong place
You aren't going to find what you came for
You might as well go home
You aren't going to get rich here
Because the revolution will not be monetized
The revolution will not have a multi-billion dollar addressable market
The revolution will not follow a freemium business model
The revolution will not come free to play
The revolution will not enroll in YCombinator
@dan-zheng
dan-zheng / pickWord.py
Last active September 27, 2020 21:19 — forked from ed-flanagan/LICENSE
Oren Tirosh’s mnemonic word list
#!usr/bin/env python
import random
def main():
wordFile = open("wordList.txt", "r")
words = wordFile.readlines()[2:]
wordFile.close()
print(random.choice(words).rstrip())
@punkdata
punkdata / git-get-files-by-size.py
Last active September 25, 2022 00:36
Git this script lists the files that are larger than the size you specify. Example use: python git-find-big-files.py fix-remove-files 1000000 (file size in MBs)
#!/usr/bin/python
# run the script: python git-find-big-files.py <the branch> <file size>
# Example use: python git-find-big-files.py fix-remove-files 1000000 (this value equals 1 Megabyte)
# the Fix-remove-files specifies the branch that you are cleaning
import os, sys
def getOutput(cmd):
return os.popen(cmd).read()