Skip to content

Instantly share code, notes, and snippets.

@flewkey
flewkey / list.py
Created December 22, 2022 03:20
Call recording TUI
#!/bin/env python
from curses import wrapper
from datetime import datetime
from os import listdir, system
from os.path import isfile
recs = [f[:-4].split('-') for f in listdir() if isfile(f) and f.endswith('.mp3')]
recs.sort(key=lambda f:f[4], reverse=True)
def fmtnum(n):
return n[-10:-7]+'-'+n[-7:-4]+'-'+n[-4:]
def main(win):
@flewkey
flewkey / greek.c
Created March 2, 2020 16:25
I am not sorry
#include <stdio.h>
char* greek (int letr)
{
switch (letr) {
case 'a':
return "α";
case 'A':
return "Α";
case 'b':
@flewkey
flewkey / mamedl.py
Created July 1, 2019 01:03
Script to bulk download ZIP files from the Internet Archive. Definitely not used for downloading giant arcade ROM archives.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division
from bs4 import BeautifulSoup
import os
import re
import sys
import threading
if sys.version_info[0] < 3:
@flewkey
flewkey / getMapping.py
Last active January 23, 2020 23:36
A broken script to translate SRG names.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import csv
import win32clipboard
if sys.version_info[0] < 3:
import Tkinter as tk
else:
import tkinter as tk
@flewkey
flewkey / canvas.go
Last active December 17, 2018 11:58
A rushed "tool" for encoding and decoding Pxls canvases.
package main
import (
"fmt"
"os"
"strconv"
"image"
"image/png"
"image/color"
"encoding/hex"

Keybase proof

I hereby claim:

  • I am flewkey on github.
  • I am flewkey (https://keybase.io/flewkey) on keybase.
  • I have a public key ASCIwYZO0ngGZBwYU5lmSQoLVbHrtRBkyoQolAPaQSwgqQo

To claim this, I am signing this object: