Skip to content

Instantly share code, notes, and snippets.

View elipapa's full-sized avatar

Eliseo Papa elipapa

View GitHub Profile
@kogakure
kogakure / .gitignore
Last active November 19, 2024 13:22
Git: .gitignore file for LaTeX projects
*.acn
*.acr
*.alg
*.aux
*.bak
*.bbl
*.bcf
*.blg
*.brf
*.bst
@joemiller
joemiller / raid_ephemeral.sh
Last active October 23, 2023 21:53
detect all ephemeral disks on EC2 then stripe together in a raid-0 vol mounted at /mnt
#!/bin/bash
#
# this script will attempt to detect any ephemeral drives on an EC2 node and create a RAID-0 stripe
# mounted at /mnt. It should be run early on the first boot of the system.
#
# Beware, This script is NOT fully idempotent.
#
METADATA_URL_BASE="http://169.254.169.254/2012-01-12"
@elipapa
elipapa / com.elipapa.keychains-backup.plist
Last active August 4, 2019 19:10
launchd job that i use to back up mac os x keychains to an encrypted disk image.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.elipapa.keychain-backup</string>
<key>OnDemand</key>
<true/>
<key>ProgramArguments</key>
<array>
@renzok
renzok / fasta2tsv.awk
Last active October 7, 2015 13:14
fasta to TSV
awk 'BEGIN{RS=">"}NR>1{sub("\n","\t"); gsub("\n",""); print $0}'
@elipapa
elipapa / _Setup_new_laptop.md
Last active February 26, 2024 04:27
Steps to set up a new osx laptop for data science and computational biology work

Set up a new os x laptop

Steps to setup a new OS X laptop with a data science & computational biology development environment.

Last updated: 7 Jan 2017 macOS: Yosemite => Sierra

Sure you could try to do this from dotfiles, but historically something has broken and required manual input anyway. So, inspired by the pragmatism of paul irish bash setup script and a few other gists written in markdown like this, I rolled my own.

Some design considerations:

@beaverb1ll
beaverb1ll / ExportChromePasswords.js
Last active January 18, 2017 12:00 — forked from cmatskas/ExportChromePasswords.js
ExportChromePasswords.js
var decryptedRow="";
var pm = PasswordManager.getInstance();
var model = pm.savedPasswordsList_.dataModel;
var pl = pm.savedPasswordsList_;
for(i=0;i<model.length;i++){
PasswordManager.requestShowPassword(i);
};
setTimeout(function(){
decryptedRow += '"hostname","username","password","formSubmitURL","httpRealm","usernameField","passwordField"';
for(i=0; i<model.length; i++){
@elipapa
elipapa / ensemblmysql2JSON.py
Created May 8, 2018 15:56
Build a JSON lookup table for all genes in ensembl
'''
standalone script to create a genes JSON object.
'''
#!/usr/bin/env python3
import os
import time
import pandas as pd
from sqlalchemy import create_engine