Skip to content

Instantly share code, notes, and snippets.

View emi80's full-sized avatar

Emilio Palumbo emi80

View GitHub Profile
@emi80
emi80 / n50.py
Created April 12, 2022 14:52 — forked from dinovski/n50.py
calculate N50 from fasta/contigs file
#!/usr/bin/env python
## calculate N50 from fasta file
## N50 = contig length such that half of the contigs are longer and 1/2 of contigs are shorter
import commands
import sys
import os
from itertools import groupby
import numpy

Keybase proof

I hereby claim:

  • I am emi80 on github.
  • I am epalumbo (https://keybase.io/epalumbo) on keybase.
  • I have a public key ASA4MQRG_8QXtAGEGj33_GZ9xl4FkFTLB3kdsvRXbHlSfQo

To claim this, I am signing this object:

@emi80
emi80 / Arch-ZFSRoot-on-dm-crypt-UEFI.md
Created April 2, 2019 09:48 — forked from kdwinter/Arch-ZFSRoot-on-dm-crypt-UEFI.md
ZFSRoot installation over a dm-crypt volume for Arch Linux (UEFI)

Install Arch Linux on root ZFS filesystem

Pre-installation

Download Arch linux

https://archlinux.org

Create bootable USB (don't add partition number!)

@emi80
emi80 / mock_oauth_test.go
Created February 28, 2019 10:06 — forked from iheanyi/mock_oauth_test.go
Simple Mock OAuth Test for SPA + API Go application
import (
headspin "github.com/iheanyi/headspin-backend"
"github.com/labstack/echo"
"golang.org/x/oauth2"
"log"
"net/http"
"net/http/httptest"
"strings"
"testing"
)
@emi80
emi80 / docker-cross-device-link.md
Created December 13, 2018 12:40 — forked from Francesco149/docker-cross-device-link.md
docker error creating new backup file '/var/lib/dpkg/status-old': Invalid cross-device link
@emi80
emi80 / delete-dockerhub-images.sh
Created December 5, 2018 14:32 — forked from jriguera/delete-dockerhub-images.sh
Delete Docker images on DockerHub
#!/bin/bash
# Based on kizbitz/dockerhub-v2-api-organization.sh at https://gist.github.com/kizbitz/175be06d0fbbb39bc9bfa6c0cb0d4721
# Example for the Docker Hub V2 API
# Returns all images and tags associated with a Docker Hub organization account.
# Requires 'jq': https://stedolan.github.io/jq/
# set username, password, and organization
UNAME=""
UPASS=""
@emi80
emi80 / dvtm-cheat-sheet
Created December 15, 2017 16:03 — forked from shreyasrk/dvtm-cheat-sheet
dvtm cheat sheet
`dvtm` is one simple, easy-to-use terminal multiplexer.
Commonly used Options:
-v prints version information to standard output, then exits.
-m <mod> set default modifier at runtime.
-d escdelay set the delay ncurses waits before deciding if a character that
might be part of an escape sequence is actually part of an
escape sequence.
-h nnn set the scrollback history buffer size at runtime.
@emi80
emi80 / launch-ec2.sh
Last active March 24, 2017 10:57 — forked from pditommaso/launch-ec2.sh
Launch a AWS EC2 instance and wait until the SSH connection is available
#!/bin/bash
set -e
set -u
X_AMI=${1:-ami-7da1921b}
X_TYPE=${2:-t2.large}
X_SUBNET=${3:-subnet-05222a43}
echo "~~ N G S '1 7 - W O R K S H O P ~~"
echo ""