Skip to content

Instantly share code, notes, and snippets.

@eelfroth
eelfroth / cmus-status-display
Created October 18, 2019 17:21
simple cmus cover art
#!/bin/sh
#
# cmus-status-display
#
# Usage:
# in cmus command ":set status_display_program=cmus-status-display"
#
# This scripts is executed by cmus when status changes:
# cmus-status-display key1 val1 key2 val2 ...
#
@eelfroth
eelfroth / partition layouts
Last active June 11, 2019 23:13
ideas for how to partition a workstation
- file system
architectures
- flat
-system
- kernel
- usr
- .config
- .local
- media
- logical
@eelfroth
eelfroth / orca_microcode.md
Last active May 27, 2019 20:20
Orca Microcode
@eelfroth
eelfroth / ddt
Created May 7, 2019 17:52
ddate in YYMDD format
#!/usr/bin/python2
#pip install ddate
from ddate.base import DDate
def ddt():
dd = DDate()
day = str(dd.day_of_season).zfill(2)
SEASONS = { 0: "C", 1: "D", 2: "V", 3: "B", 4: "A"}
season = SEASONS[dd.season]
@eelfroth
eelfroth / 404scraper.sh
Last active August 31, 2019 16:35
script for automatically saving 404 pages
#!/bin/bash
### 404 SCRAPER ###
# this script reads hostnames from stdin (newline separated)
# it sends a request for a nonesense file to each host
# on a 404 response the message body is saved to ./scraped404s/
path="this-path-probably-doesnt-exist"
@eelfroth
eelfroth / circles.pde
Last active September 9, 2018 16:42
circle fractal generator
// this is Processing source code
// get the IDE at processing.org
// and type in this little program
// tweak the numbers to explore...
float S = 1; //step
float W = 10; //weight
float A = 255; //alpha
float R = PI/3; //rotation
float M = 0; //modulo