Skip to content

Instantly share code, notes, and snippets.

@dergachev
dergachev / ssh-forward-clipboard.md
Last active April 5, 2026 06:25
Forward your clipboard via SSH reverse tunnels

Exposing your clipboard over SSH

I frequently administer remote servers over SSH, and need to copy data to my clipboard. If the text I want to copy all fits on one screen, then I simply select it with my mouse and press CMD-C, which asks relies on m y terminal emulator (xterm2) to throw it to the clipboard.

This isn't practical for larger texts, like when I want to copy the whole contents of a file.

If I had been editing large-file.txt locally, I could easily copy its contents by using the pbcopy command:

@davfre
davfre / git_cheat-sheet.md
Last active February 26, 2026 16:40
git commandline cheat-sheet
@daler
daler / gffutils-flybase-convert.py
Last active October 6, 2017 16:11
Convert FlyBase GFF to GTF.
#!/usr/bin/env python
import os
import logging
from collections import Counter
import gffutils
from gffutils.create import logger
logger.setLevel(logging.INFO)
usage = """
@davfre
davfre / bamfilter_oneliners.md
Last active December 9, 2025 09:48
SAM and BAM filtering oneliners
@lonetwin
lonetwin / Git dot files management
Last active April 29, 2025 08:27
A simple way to manage dotfiles with git without silly symlinks and special tools. Just use negative matches in your .gitignore !
I like to manage dotfiles without having to mess with silly symlinks or having
to install/configure specific dotfile managament tools. So here's what I did:
$ cd ~
$ git init .
$ echo '*' > .gitignore # ignore all files by default
$ echo '!.bashrc' >> .gitignore # ...and then tell git what files not to *not* ignore
$ # ...add other files you may want to track to *not* ignore
$ git add .bashrc # now actually add the files to git
$ git add .gitignore # add the .gitignore to git
@jwreagor
jwreagor / EmacsKeyBinding.dict
Created March 20, 2014 18:41
Global Emacs Key Bindings for OS X
{
/* 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.
*
* BEWARE:
* 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
@seandavi
seandavi / STAR.rules
Created October 2, 2014 15:07
snakemake rules for running STAR rna-seq aligner--not at all general, though
rule rnaalignment:
input: lambda wildcards: source2fastq(wildcards)['fastq']
output: "bam/{source}/RNA/aligned.bam", "bam/{source}/RNA/Chimeric.out.sam"
params: batch="-q ccr -l nodes=1:gpfs:g128",outdir="bam/{source}/RNA"
priority: 10
threads: 32
version: "2.4.0a"
run:
read1 = ",".join(input[0::2])
read2 = ",".join(input[1::2])
@kevinelliott
kevinelliott / osx-10.10-setup.md
Last active April 7, 2026 23:34
Mac OS X 10.10 Yosemite Setup

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

@yannabraham
yannabraham / doseResponsePython.ipynb
Last active March 13, 2026 14:16
How to do Dose/Response curve fitting in Python for Drug Discovery
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Git Cheat Sheet

Commands

Getting Started

git init

or