Skip to content

Instantly share code, notes, and snippets.

View ssj71's full-sized avatar
💭
getting fat

ssj71

💭
getting fat
View GitHub Profile
@ssj71
ssj71 / timelog.sh
Last active February 1, 2023 19:53
Time Logging
#!/bin/bash
#spencer
# just run this when i3lock starts
d=$(date)
sleep 30
if killall -0 i3lock;
then
echo $d screen locked >> ~/timecard
else
@ssj71
ssj71 / note_drop.lua
Last active October 26, 2022 19:31
moony.lv2 random note drop
-- MIDI Note Event random dropper
---
-- This is an example that randomly doesn't let notes through.
-- affected MIDI channels
-- 0..15 or set to -1 to apply to events on all channels
local filter_chan = -1
-- affected note range(s)
-- string with comma-separated list of single MIDI note numbers or
-- ranges (min-max separated by a dash, whitespace is ignored)
@ssj71
ssj71 / busyinator.py
Last active March 23, 2022 20:39
Silly script to make your terminal look like you are busy building something
#!/usr/bin/env python3
import random
import string
from random import randrange
from time import sleep
class bcolors:
HEADER = '\033[35m'
OKBLUE = '\033[34m'
OKGREEN = '\033[32m'
@ssj71
ssj71 / bleedify.py
Created February 18, 2022 21:53
Image extrapolation to add bleed for card printing
#!/usr/bin/env python3
#copied from the example at https://scikit-image.org/docs/stable/auto_examples/filters/plot_inpaint.html
import numpy as np
import matplotlib.pyplot as plt
import sys
import fitz
from skimage.morphology import disk, binary_dilation
from skimage.restoration import inpaint
from skimage.transform import resize
@ssj71
ssj71 / lol.html
Last active February 1, 2023 16:30
Virtual Dice for when I play Loot of Lima solo
<!DOCTYPE html>
<html>
<head>
<title>Loot of Lima Solo Travel Edition!</title>
</head>
<body>
<iframe src = "https://www.kylegillingham.com/loot/" width = 100% height = "1100">
Sorry your browser does not support inline frames.
@ssj71
ssj71 / seamlessify.sh
Created April 9, 2020 23:54
Make an image seamless
#!/bin/bash
#make any image seamless by copying it backward (mirrored) and stitching the 2 copies together
#works on linux
convert $1 -flop tmp.png
convert $1 tmp.png +append output.png
rm tmp.png
feh output.png