Skip to content

Instantly share code, notes, and snippets.

View thewhodidthis's full-sized avatar
🔘

Sotiri Bakagiannis thewhodidthis

🔘
View GitHub Profile
@thewhodidthis
thewhodidthis / Ivory.terminal
Last active May 4, 2024 05:00
Material flavored Terminal.app theme
<?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>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMS
AAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGrCwwXGBkeHygwMThVJG51bGzV
DQ4PEBESExQVFlYkY2xhc3NbTlNDb2xvck5hbWVcTlNDb2xvclNwYWNlXU5TQ2F0YWxv
Z05hbWVXTlNDb2xvcoAKgAMQBoACgARWU3lzdGVtXxAndW5lbXBoYXNpemVkU2VsZWN0
@thewhodidthis
thewhodidthis / script
Last active May 4, 2024 04:57
Batch remove mp3 meta tags using ffmpeg
#!/bin/bash
for f in *.mp3; do
ffmpeg -i "$f" -map 0:a -codec:a copy -map_metadata -1 "${f%.*}-out.mp3"
done
@thewhodidthis
thewhodidthis / script.sh
Last active May 4, 2024 04:56
Turn mp4 video into animated gif using ffmpeg
#!/bin/sh
# Helps turn videos into gif loops
# Usage:
# ./gloop input.mp4 palette.png output.gif
# Reference:
# http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html
# Shortcut
@thewhodidthis
thewhodidthis / script.sh
Last active May 4, 2024 04:56
Turn mp4 video into gif strip using ffmpeg and IM
#!/bin/sh
# Helps turn videos into gif strips
# Usage:
# ./gfilm input.mp4 output.gif
# Reference:
# https://imagemagick.org/script/montage.php
# Shortcut
@thewhodidthis
thewhodidthis / script.sh
Last active May 4, 2024 04:53
Generate iconset for png on macOS
#!/bin/sh
# Helps produce iconsets
# Usage:
# ./gicns input.png output.icns
# Reference:
# http://stackoverflow.com/questions/12306223/how-to-manually-create-icns-files-using-iconutil
# Shortcut
@thewhodidthis
thewhodidthis / Makefile
Last active December 1, 2023 12:38
PPM byte beat maker
# The filenaming timestamp
D?=$$(date +"%Y%m%d%s")
# Pixmap dimensions
W?=64
H?=64
# How many pixels?
S?=$$(($W * $H - 1))
# Out image dimensions
w?=192
h?=192
@thewhodidthis
thewhodidthis / app.webmanifest
Last active September 13, 2023 19:52
This site is down
{
"background_color": "#fff",
"description": "Web dev job gone south.",
"display": "fullscreen",
"icons": [
{
"purpose": "maskable",
"sizes": "192x192",
"src": "icon.png",
"type": "image/png"
@thewhodidthis
thewhodidthis / Makefile
Last active September 4, 2023 15:33
FMU MP3 episode download, edit, and archive
YEAR?=$$(date +%Y)
UUID?=$$(python -c "import uuid; print(uuid.uuid4())")
ITEM?=justmoreidlechatternot
BOOM?=$(notdir $(CURDIR))
SHOW?=WA
NAME?=$$(date +%Y%m%d%s)
run: get cut mp3 put
@rm -rf episode.mp3 *.wav
put:
@thewhodidthis
thewhodidthis / Makefile
Last active May 28, 2023 20:28
Worley noise maker
# The filenaming timestamp
D?=$$(date +"%Y%m%d%s")
# How many feature points?
R?=10
# Pixmap dimensions
W?=80
H?=45
# How many pixels?
S?=$$(($W * $H - 1))
# Out image dimensions
@thewhodidthis
thewhodidthis / Makefile
Last active May 17, 2023 19:11
Extremely random pixel sorted image maker
# The filenaming timestamp
D?=$$(date +"%Y%m%d%s")
# Pix or bitmap dimensions
W?=80
H?=45
# How many numbers total?
S?=$$(bc <<< "3 * $W * $H")
# How many samples?
G?=$$(bc <<< "3 * $H")
# Out image dimensions