Skip to content

Instantly share code, notes, and snippets.

@jarmitage
jarmitage / avril.tidal
Created April 14, 2020 20:37
Avril 14th
-- happy avril 14th :)))))))))))))))))))))))))))))))))))))))
do
let bars = 4
key = "8"
righthand = "[[4 -3] [0 _ _ _ _ _ 0]] [[-3, -8] [7 5 4 0]]"
lefthand = "[0 9 12 16] [4 12 16 19] [5 12 17 19] [2 12 17 16]"
d1 $ slow bars
$ stack [
n (righthand + key + "<24 36>/2"),
@birdsarah
birdsarah / forter-script-processed.js
Last active May 12, 2020 00:06
Source of https://15912b5d40f0.cdn4.forter.com/sn/15912b5d40f0/script.js on Mar 27, 2020 - formatted for readability and with some context added in top comment
/*
Found on mattressfirm.com
<script type="text/javascript" id="ftr__script" async="" src="https://15912b5d40f0.cdn4.forter.com/sn/15912b5d40f0/script.js"></script>
Then heavily processed using the code here: https://github.com/mozilla/script_review_utils/tree/master/wet-script
Objects are dereferenced essentially "wetting" the code and making many variables useless.
Tries to remove "unused" variable declarations to keep the code shorter.
This processing may well have bugs.
*/
@englehardt
englehardt / merge_org_lists.py
Created November 22, 2016 16:47
Python script used to generate `organizations.json` (https://gist.github.com/englehardt/a8ce765e410615de83bb40533b0eed29).
from collections import defaultdict
import json
import dill
import os
DATA_DIR = './'
WEBXRAY_LIST = 'webxray_orgs.json'
DISCONNECT_LIST = 'disconnect_list.json'
OUT_LIST = 'merged_organizations.dill'
@englehardt
englehardt / organizations.json
Created September 20, 2016 18:46
Domain to organization mapping created by merging d01f28c of Disconnect's list (https://github.com/disconnectme/disconnect-tracking-protection) with 28cb3aa of webXray's list (https://github.com/timlib/webXray/commits/master/webxray/resources/org_domains/org_domains.json)
{
"persianstat.com": ["persianstat.com"],
"marketgid": ["marketgid.com", "dt07.net", "dt00.net"],
"madvertise": ["madvertise.com"],
"voice2page": ["voice2page.com"],
"mixpanel": ["mixpanel.com"],
"automattic": ["wordpress.com", "polldaddy.com", "automattic.com", "wp.com", "gravatar.com", "intensedebate.com"],
"game advertising online": ["game-advertising-online.com"],
"adconion": ["amgdgt.com", "adconion.com", "smartclip.com", "euroclick.com"],
"sogou": ["sogou.com", "sogoucdn.com"],
@mlen
mlen / flac2alac
Last active May 8, 2024 15:36
FLAC to ALAC converter. Requires Mac OS X and `flac` binary installed (ie. via Homebrew: `brew install flac`).
#!/usr/bin/env bash
set -e
convert_to_alac() {
flac="$1"
aiff="${flac%.*}.aiff"
alac="${flac%.*}.m4a"
flac -s -d --force-aiff-format -o "$aiff" "$flac"
afconvert -f m4af -d alac "$aiff" "$alac"