Skip to content

Instantly share code, notes, and snippets.

@fabiolib
fabiolib / keyboard-layout-editor.com.code.json
Last active July 2, 2020 09:14
Keyboard Layout Editor Map for capslock_remap script
["Esc",{x:1},"F1","F2","F3","F4",{x:0.5},"F5","F6","F7","F8",{x:0.5},"F9","F10","F11","F12",{x:0.25},"PrtSc","Scroll Lock","Pause\nBreak"],
[{y:0.5},"¬\n`","!\n1","\"\n2","£\n3","$\n4","%\n5","^\n6","&\n7","*\n8","(\n9",")\n0","_\n-","+\n=",{w:2},"Backspace",{x:0.25},"Insert","Home","PgUp",{x:0.25},"Num Lock","/","*","-"],
[{w:1.5},"Tab",{t:"#712cc9"},"Q\n\n\n\n\n\n\n\n\nTab","W\n\n\n\n\n\n\n\n\nCls",{t:"#000000"},"E","R","T",{t:"#712cc9"},"Y\n\n\n\n\n\n\n\n\nPgUp",{c:"#adadad"},"U\n\n\n7\n\n\n\n\n\nHome",{sm:"cherry",fa:[0,0,0,0,0,0,0,0,0,8]},"I\n\n\n8\n\n\n\n\n\n↑",{sm:"",f:3},"O\n\n\n9\n\n\n\n\n\nEnd",{c:"#cccccc",t:"#000000"},"P","{\n[","}\n]",{x:0.25,t:"#712cc9",f:3,w:1.25,h:2,w2:1.5,h2:1,x2:-0.25},"Enter\n\n\n\n\n\n\n\n\nCtrl+",{x:0.25,t:"#000000"},"Delete","End","PgDn",{x:0.25},"7\nHome","8\n↑","9\nPgUp",{h:2},"+"],
[{c:"#712cc9",w:1.75},"Caps Lock",{c:"#cccccc",t:"#712cc9",f:3},"A\n\n\n\n\n\n\n\n\nPrv",{f:3},"S\n\n\n\n\n\n\n\n\nNxt",{f:3},"D\n\n\n\n\n\n\n\n\nWin",{t:"#000000"},"F","G",{t:"#712cc9",f:3
@fabiolib
fabiolib / export-chrome-bookmarks.js
Last active June 30, 2020 14:27 — forked from bgrins/export-chrome-bookmarks.js
Reminder of how to export bookmarks from Chrome as text.
/*
Export bookmarks from Chrome as text.
Go to Bookmarks Manager->Organize->Export to HTML file.
Then open that file, open console and run this command:
*/
[].map.call(document.querySelectorAll("dt a"), function(a) {
return a.href
}).join("\n");
@fabiolib
fabiolib / capslock_remap_alt.ahk
Last active July 1, 2020 15:16 — forked from Danik/capslock_remap_alt.ahk
Autohotkey Capslock Remapping Script. Makes Capslock function as a modifier key to get cursor keys etc. on the left side of the keyboard. Added Alt-Tab function to mouse buttons.
; Autohotkey Capslock Remapping Script
; Danik
; More info at http://danikgames.com/blog/?p=714
; danikgames.com
;
; Functionality:
; - Deactivates capslock for normal (accidental) use.
; - Hold Capslock and drag anywhere in a window to move it (not just the title bar).
; - Access the following functions when pressing Capslock:
; Cursor keys - J, K, L, I
#!/usr/bin/env python
import re, sys
import argparse
# This script was written by David Molnar
# and downloaded from
# http://dm516.user.srcf.net/?p=314
# 2016-04-13
parser = argparse.ArgumentParser(description='From a FASTA-file with multiple >entries, filter by sequence ids using a regex.')
@fabiolib
fabiolib / SJtoBED12.bash
Last active October 7, 2022 02:52
Short bash script to convert STAR SJ.out.tab into BED format similar to TopHat junctions.bed
#!/bin/bash
##run from results directory
##Output BED file is sorted for indexing and loading into IGV
##awk for converting SJ.out.tab to bed12 format
##based on code originally published by frymor at http://seqanswers.com/forums/showthread.php?t=62896
for sj in */*SJ.out.tab
do
echo ${sj}
echo "Converting..."
awk \