Skip to content

Instantly share code, notes, and snippets.

@antlauzon
antlauzon / drab.m
Created December 2, 2022 18:30
per-app spam filter for macos
// clang -g -O2 -Wall -framework Cocoa -framework Foundation -framework ApplicationServices ./drab.m -o drab
/*
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>color</key>
<array>
<string>Terminal</string>
</array>
@antlauzon
antlauzon / spam_domain_confetti.html
Created June 28, 2021 19:47
spam domain confetti
<html>
<head>
<title>spam domain confetti</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>
<canvas id="canvas" style="width:100%; height:100%" />
<script>
var canvas1, ctx, W, H;
if (screen.width >= 988) var mp = 150;
@antlauzon
antlauzon / shitgen.sh
Created May 12, 2021 19:18
shitcoin generator
#!/bin/bash
# shitcoin generator
# usage example:
# ./shitgen.sh shitcoin stc 9999
IFS=$'\n'
SED=sed
which gsed > /dev/null
if [[ $? == '0' ]]; then
SED=gsed
@antlauzon
antlauzon / discogs_data.ddl
Created March 16, 2021 03:47
discogs_data.ddl
CREATE EXTERNAL TABLE IF NOT EXISTS discogs.artist (
`id` int,
`name` string,
`realname` string,
`profile` string,
`data_quality` string
)
ROW FORMAT SERDE 'org.openx.data.jsonserde.JsonSerDe'
WITH SERDEPROPERTIES ('serialization.format' = '1', 'ignore.malformed.json' = 'true')
LOCATION 's3://{s3_bucket}/artist'
@antlauzon
antlauzon / railcar_reporting_mark_codes.tsv
Last active January 23, 2021 06:02
railcar_reporting_mark_codes.tsv
AA Ann Arbor Railroad
AALX Advanced Aromatics LP
AAMX ACFA Arrendadora de Carros de Ferrocarril S.A.
AAR Association of American Railroads
AATX Ampacet Corporation
AB Akron and Barberton Cluster Railway Company
ABB Akron and Barberton Belt Railroad Company
ABBX Abbott Labs
ABIX Anheuser-Busch Incorporated
ABL Alameda Belt Line
@antlauzon
antlauzon / geomancy.py
Created December 3, 2020 22:05
geomancy.py
import json
import sys
def print_figure(figure, on=' * ', off=' '):
for i in range(12):
if i % 3 == 0 and i != 0:
sys.stdout.write('\n')
sys.stdout.write(on if i in figure else off)
sys.stdout.write('\n')
@antlauzon
antlauzon / salisbury_transport.py
Last active January 18, 2023 06:02
Salisbury Obfsproxy Transport
#!/usr/bin/python
# -*- coding: utf-8 -*-
import uuid
from obfsproxy.transports.base import BaseTransport
from itertools import product
SALISBURY = 'salisbury'
@antlauzon
antlauzon / salisburobitussin.py
Created April 25, 2020 19:02
Salisbury Robitussin Witchcraft
import random
import subprocess
s = 'salisbury'
r = 'robitussin'
v = ['a', 'e', 'i', 'o', 'u', 'y']
def _pick(s, cs, vs, cov):
if len(cs) == 0:
return s
@antlauzon
antlauzon / crudg0r_bits.txt
Created December 10, 2019 21:00
Crudg0r Secops Amputation Technology
SafeEjectGPUAgent
bluetooth
CacheDelete
socketfilterfw
Air
ScopedBookmarkAgent
uninstall
ookmark
.xpc
ProtectedCloud
@antlauzon
antlauzon / wavdiffstat.sh
Created December 2, 2019 07:39
Waveform Diff Stats
#!/bin/bash
WORK_DIR="$(mktemp -d)"
IN_PATH1="$1"
IN_PATH2="$2"
IN_FN1=$(basename "$IN_PATH1")
IN_FN2=$(basename "$IN_PATH2")
cp "$IN_PATH1" "$WORK_DIR"
cp "$IN_PATH2" "$WORK_DIR"
IN_PATH1_TMP="$WORK_DIR/$IN_FN1"
IN_PATH2_TMP="$WORK_DIR/$IN_FN2"