Skip to content

Instantly share code, notes, and snippets.

View alexg9010's full-sized avatar

Alexander Blume alexg9010

View GitHub Profile
@atomashevic
atomashevic / zedR.md
Created July 22, 2024 11:45
R REPL in Zed (Linux)

Run R code in ZED

Tested using Zed 0.144.4 on Ubuntu 22.04.4 LTS.

  1. Download the Ark R kernel 0.1.117
  2. Run the binary: ark --install
  3. Run jupyter-kernelspec list and find the path to ARK kernel
  4. Open ZED and install R Extension
  5. Open ZED and edit settings and insert the following code (update the exact path to Ark)
@krisleech
krisleech / renew-gpgkey.md
Last active June 1, 2025 14:40
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@rnwolf
rnwolf / spacemacs-keybindings.md
Last active October 28, 2024 02:30 — forked from kiambogo/spacemacs-keybindings
spacemacs keybindings that i need to learn
@slavailn
slavailn / annotate_MACS2_peaks.R
Created November 18, 2017 00:12
Annotate MACS2 peaks using ChIPpeakAnno
library("ChIPpeakAnno")
library("GenomicRanges")
library("org.At.tair.db")
library("TxDb.Athaliana.BioMart.plantsmart28")
library("biomaRt")
# Annotate genomic intervals in bed format using ChIPpeakAnno
# This script was designed for Arabidopsis, but can be easily changed for
# any other organism available through biomaRt
@soxofaan
soxofaan / README.md
Last active May 2, 2025 22:26
Simple pretty CSV and TSV file viewer.
@andrewparkermorgan
andrewparkermorgan / rnaseq.R
Created March 16, 2016 15:25
Make coverage plots with splice-junction arcs in R using Bioconductor packages and ggplot2/grid.
# rnaseq.R
# plots related to RNAseq data
library(GenomicAlignments)
library(GenomicRanges)
library(ggplot2)
library(grid)
#library(gtable) # for combining plots vertically
#' Make a 'sashimi plot': coverage plus splice events
@wizioo
wizioo / gitignore_per_git_branch.md
Last active April 24, 2025 04:55
HowTo have specific .gitignore for each git branch

How to have specific .gitignore for each git branch

Objective

My objective is to have some production files ignored on specific branches. Git doesn't allow to do it.

Solution

My solution is to make a general .gitignore file and add .gitignore.branch_name files for the branches I want to add specific file exclusion. I'll use post-checkout hook to copy those .gitignore.branch_name in place of .git/info/exclude each time I go to the branch with git checkout branch_name.

@uupaa
uupaa / image.resize.in.github.flavored.markdown.md
Last active May 28, 2025 00:06
image resize in github flavored markdown.

Image source

https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png

Try resize it!

  • ![](https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png | width=100)
@hotoo
hotoo / convert.sh
Last active April 15, 2023 01:15
convert vimwiki to markdown: `sed -f ex -i *.md`
#!/usr/bin/env bash
for x
do
filename=$(echo $x|sed -e "s/\.wiki$/.md/")
sed -f ex $x > $filename
done
@nathanhaigh
nathanhaigh / interleave_fastq.sh
Last active February 21, 2025 10:46
Interleave reads from 2 FASTQ files and output to STDOUT.
#!/bin/bash
# Usage: interleave_fastq.sh f.fastq r.fastq > interleaved.fastq
#
# Interleaves the reads of two FASTQ files specified on the
# command line and outputs a single FASTQ file of STDOUT.
#
# Can interleave 100 million paired reads (200 million total
# reads; a 2 x 22Gbyte files), in memory (/dev/shm), in 6m54s (414s)
#
# Latest code: https://gist.github.com/4544979