Skip to content

Instantly share code, notes, and snippets.

@lxe
lxe / README.md
Last active February 27, 2023 14:59
Portable Hex Beam - K6LXE

Portable Hex Beam - K6LXE

THIS IS A VERY EARLY UNREFINED PROTOTYPE -- NO MEASUREMENTS AND TOLERANCES ARE A BIT WACKY

Pictures and measurements are coming soon.

Parts

image

@ageis
ageis / YubiKey-GPG-SSH-guide.md
Last active March 16, 2024 13:18
Technical guide for using YubiKey series 4 for GPG and SSH

YubiKey 4 series GPG and SSH setup guide

Written for fairly adept technical users, preferably of Debian GNU/Linux, not for absolute beginners.

You'll probably be working with a single smartcard, so you'll want only one primary key (1. Sign & Certify) and two associated subkeys (2. Encrypt, 3. Authenticate). I've published a Bash function which automates this slightly special key generation process.

@anthony-kam
anthony-kam / smartctl_script.sh
Created October 25, 2016 15:46
Check SMART with software or hardware raid (MegaRaid)
#!/bin/bash
## Prerequisites :
# smartmontools - Sudo command & espacially (sudo /usr/sbin/smartctl).
# MegaCli (MegaRAID) if needed.
# HP ACU Cli (HP RAID) if needed.
## Inside your file /etc/sudoers:
# backup ALL= NOPASSWD: sudo /sbin/MegaCli -pdlist -a0
# backup ALL= NOPASSWD: sudo /usr/sbin/smartctl
@ckandoth
ckandoth / tcga_pancanatlas_mc3_work_log.txt
Created May 2, 2016 16:03
Fetch VCFs generated by TCGA PancanAtlas MC3 unified variant calling effort and curate
# GOAL: Fetch VCFs generated by TCGA PancanAtlas MC3 unified variant calling effort and curate
##########
## DATA ##
##########
# Data from DNANexus/UCSC came in as 3 batches. Batches 1 and 2 had GATK cocleaned bams available,
# while batch 3 needed realignment. Batch 1 had RNA (to run radia), batch 2 didn't. Kyle Elrott
# is the point person for these batches. Available on GChat.
# Batches were later merged by Singer Ma at DNANexus, into a single folder called full_v1.
@PhirePhly
PhirePhly / beacon_and_remove.sh
Created August 22, 2015 03:44
Short exec file for APRX to wrap a beacon file to delete it upon beaconing
#!/bin/bash
BEACONFILE="./beaconfile.txt"
if [ -f $BEACONFILE ]; then
cat ./beaconfile.txt
rm ./beaconfile.txt
fi
@matthewmueller
matthewmueller / osx-for-hackers.sh
Last active April 21, 2024 03:30
OSX for Hackers (Mavericks/Yosemite)
# OSX for Hackers (Mavericks/Yosemite)
#
# Source: https://gist.github.com/brandonb927/3195465
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Ask for the administrator password upfront
@purohit
purohit / convert snps.data to BED file
Last active June 10, 2016 02:53
awk script to parse i-prefixed SNPs from https://api.23andme.com/res/txt/snps.data to a BED file
awk 'BEGIN{OFS="\t"}; NR>=5 { chrName=$3; if ($3 ~ "MT") chrName ="M"; if ($4 && $2 ~ "^i") print "chr" chrName, $4, $4, $2}' snps.data > BEDfile
@RichMorin
RichMorin / demo.css
Created March 19, 2012 16:20
Hive Plot Demo Rework
/* demo.css */
.axis {
stroke: #000;
stroke-width: 1.5px;
}
#demo_1 svg, #demo_2 svg { border: solid 1px #ccc; }