This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# StupidifyQuotes: turn “typographical quotes” into "typewriter quote" | |
# The Unicode Consortium prefers "smart quotes" and musicbrainz and beets are | |
# following this. | |
# I Disagree | |
# this will modify incoming metadata, and also provide a stupidify-quotes | |
# command to edit existing items | |
# https://www.unicode.org/charts/PDF/U0000.pdf | |
# for double quote " U+0022, unicode 16.0 says |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
# shellcheck disable=SC2120 | |
h () { | |
# if arguments, print them | |
[ $# == 0 ] || echo "$*" | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [OPTION]... <album> <mixcloud url> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:latest | |
# gluetun doens't support post vpn up scripts | |
# this will cron and run a script on change, at most once every hour | |
# TODO: confirm that it's not once every 2 cause it runs once every 1, | |
# but bash script also has a too recent check | |
# use this like: | |
# ip_bullshit: | |
# network_mode: service:vpn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Description: allmailfrom modifies header now | |
https://github.com/bruceg/nullmailer/pull/84 | |
Author: Mark <[email protected]> | |
Index: nullmailer-2.2/doc/nullmailer-inject.1 | |
=================================================================== | |
--- nullmailer-2.2.orig/doc/nullmailer-inject.1 | |
+++ nullmailer-2.2/doc/nullmailer-inject.1 | |
@@ -218,6 +218,10 @@ to queue the formatted message. | |
When reading the following files, a single line is read and stripped | |
of all leading and trailing whitespace characters. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | |
set +e | |
read -r -d '' backups <<'EOF' | |
[ | |
{ "src": "/home/mark/sync" }, | |
{ "src": "/home/mark/projects" }, | |
{ "src": "/home/mark/beatSaber" }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ctype.h> | |
// based on https://stackoverflow.com/q/54500648/2423187 | |
void hexDump(const uint8_t* data, int len) | |
{ | |
int i; | |
unsigned char bufferLine[17]; | |
for (i = 0; i < len; i++) { | |
if ((i % 16) == 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
"cigar", | |
"rebut", | |
"sissy", | |
"humph", | |
"awake", | |
"blush", | |
"focal", | |
"evade", | |
"naval", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# read google authenticator database and output TOTP codes. | |
# /data/data/com.google.android.apps.authenticator2/databases/databases | |
#import qrcode | |
import sqlite3 | |
import pyotp | |
from tabulate import tabulate | |
conn = sqlite3.connect('databases') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* List out all files in a google drive to a spreadsheet. | |
* You have to modify the filter stuff at line 15 because it will | |
* timeout eventually before it's done, so you have to target what you list. | |
* | |
* When you download the spreadsheet as csv it has \r\n | |
* | |
* cat file.csv | dos2unix | xargs -d '\n' -L1 rm -f | |
**/ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
cd $(dirname "$0") | |
# to get auth key go to | |
# https://developers.google.com/calendar/v3/reference/events/list?apix_params=%7B%22calendarId%22%3A%22i3detroit.org_188da54r5a9rejlbnsedft642ok0m%40resource.calendar.google.com%22%2C%22maxResults%22%3A5000%7D | |
# open console | |
# select api key auth only | |
# make request |
NewerOlder