Skip to content

Instantly share code, notes, and snippets.

@antlauzon
antlauzon / ice_minus_studio_tips.txt
Last active June 30, 2017 21:03
Ice Minus Studio Tips
Ice Minus studio tips
(Knowledge Magazine Studio Equipment)
Ice Minus studio tips part 1
For those of you setting up a small studio or basic computer system for producing music there are a few things to consider
@antlauzon
antlauzon / btc_keygen.py
Created December 10, 2017 04:53
offline 'paper wallet' bitcoin address generator
import base58
import hashlib
from fastecdsa import curve
from fastecdsa import keys
updhsh = lambda h, s: [h.update(s), h][1]
b58chk = lambda s: base58.b58encode(bytes(hexbyt(s)))
concat = lambda s1, s2: "{}{}".format(s1, s2)
hexbyt = lambda s: bytes(bytearray.fromhex(s))
-....-
--./-././-/.-./--.
-.--/...-/../.-./..-.
...-/.-
-.-./..-/...-/-.--/-./--.-/.-./-.--/-.-./..-/...-/-./--..--
-./--.
-./.-
...-/.-/--./.-././..-./.-./.--./--./...-/-.../.-
.---/.-.
-././.-.
@antlauzon
antlauzon / rumsfeld.py
Created March 4, 2018 07:00
one can be sure that if there is anything true regarding existence of truth, it can be found here
# rumsfeld.py
# for the fbi
import itertools
import sys
intel = ['known', 'unknown']
detail = int(sys.argv[1]) if len(sys.argv) > 1 else 7
rumsfeldian = itertools.product
s = lambda k: print(' '.join([j for i in k for j in i]))
@antlauzon
antlauzon / aggrandizer.py
Created May 28, 2018 12:23
Thee, Aggrandizer
import nltk
import nltk.data
import string
import sys
from nltk.corpus import wordnet
def wordnet_pos(treebank_tag):
if treebank_tag.startswith('J'):
return wordnet.ADJ
@antlauzon
antlauzon / ssh-agent-pass.sh
Created August 9, 2018 07:10
Automate MacOS ssh-agent password entry
#!/bin/bash
IFS='
'
for key in $(cat ~/.ssh/keys); do
ssh-add -l | grep -E "$key |$key.fifo" > /dev/null
if [[ $? != 0 ]]; then
if [ ! -f $key.pass ]; then
@antlauzon
antlauzon / unpr.py
Created November 29, 2018 03:02
Recursively Unpack Archives
#!/usr/bin/env python3
import glob
import os
import logging
import multiprocessing
import re
import shutil
import sys
from pyunpack import Archive
@antlauzon
antlauzon / asciiwaveform.py
Created December 10, 2018 15:21
ASCII Waveform Generator
import argparse
import subprocess
import sys
import tempfile
def generate_view(infile, wave_width, wave_height):
_, datfilename = tempfile.mkstemp(suffix='.dat')
datfile = open(datfilename, 'r')
p = subprocess.Popen(['sox', infile, datfilename],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
@antlauzon
antlauzon / Tactical.ask
Created December 20, 2018 22:40
'Tactical' Ableton 10 Skin (use with Brightness 129, Color Intensity 9, Color Hue 16)
<Ableton MajorVersion="5" MinorVersion="10.0_370" SchemaChangeCount="1" Creator="Ableton Live 10.0.1d1" Revision="b8761d5b3a670e00b16e716b603a7c9f50dcfcb0">
<SkinManager>
<ControlForeground>
<R Value="210"/>
<G Value="210"/>
<B Value="210"/>
<Alpha Value="255"/>
</ControlForeground>
<TextDisabled>
<R Value="120"/>
@antlauzon
antlauzon / winmm_midi_latency_test.cpp
Created January 2, 2019 07:15
WinMM Midi Latency Test
#include <windows.h>
#include <stdio.h>
#include <mmsystem.h>
#include <mmreg.h>
#include <conio.h>
#define BUFFERSIZE 200
#define BUFFEROUTSIZE 120
#define NUM_SEND 500