Skip to content

Instantly share code, notes, and snippets.

View README.md

Void Linux Macbook Air 2013

Flash installer:

$ dd if=void-live-x86_64-musl-20181111.iso of=/dev/X bs=1m

login as root:voidlinux

Base Install:

@jaredculp
jaredculp / fb.rb
Created Jan 26, 2019
Delete Facebook: export birthdays
View fb.rb
require 'net/http'
class Birthday
def initialize(date, name)
@date = date
@name = name
end
def ics
"BEGIN:VEVENT\r\nDTSTART;VALUE=DATE:#{@date}\r\nRRULE:FREQ=YEARLY\r\nSUMMARY:Birthday #{@name}\r\nEND:VEVENT\r\n"
View flac-tagger.sh
#!/usr/bin/env bash
album_field() {
field=$1
metaflac --show-tag="$field" "$(find . -type f -name '01*flac')" | cut -d= -f2
}
track_field() {
field=$1
track=$2
View das_download.rb
#! /usr/bin/env ruby
# usage:
# $ das_download.rb
require "mechanize"
require "fileutils"
class DasDownloader
attr_reader :agent, :email, :password
@jaredculp
jaredculp / dmb-analysis.py
Last active May 21, 2020
Web scraper to grap all setlists from http://dmbalmanac.com and output to CSV file. Invoked via `python dmb-scraper.py START_YEAR END_YEAR OUTPUT_FILENAME`. To get song counts invoke `python dmb-analysis.py DATA_FILENAME`.
View dmb-analysis.py
import csv
import sys
from collections import Counter
with open (sys.argv[1], 'rb') as csvfile:
reader = csv.reader(csvfile, delimiter='\t')
reader.next()
songs = [row[4] for row in reader]
You can’t perform that action at this time.