Skip to content

Instantly share code, notes, and snippets.

View jgillmanjr's full-sized avatar

Jason Gillman Jr. jgillmanjr

View GitHub Profile
@jgillmanjr
jgillmanjr / midinous_convert.py
Created May 20, 2023 02:45
Convert old style Midinous patches to new style
from pathlib import Path
import json
save_path = Path('D:/SteamLibrary/steamapps/common/Midinous/user/save') # Change to the appropriate directory
pointfile = 'nouspoint.nous'
pathfile = 'nouspath.nous'
perffile = 'performance.nous'
convert_dirs = [x for x in save_path.glob('*') if x.is_dir()]
@jgillmanjr
jgillmanjr / kilohearts backup.ipynb
Last active May 9, 2023 01:45
Kilohearts Backup (Windows)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jgillmanjr
jgillmanjr / connection_library.py
Created May 5, 2021 16:10
A dumb class to hold a library of connections to checkout and checkin for use with threaded applications
class ConnectionLibrary:
"""
A library to hold various connection objects for use by threads
"""
class LibraryConnection(TypedDict):
conn_obj: Any
available: bool
def __init__(self, conn_constructor: Callable, conn_params_dict: dict, connection_count: int):
"""
@jgillmanjr
jgillmanjr / gist:471a3ebd1c6a6c12755b2f963f8f1d6c
Created November 22, 2020 19:42 — forked from spudbean/gist:1558257
Look of disapproval and other emoticons
ಠ_ಠ
( ͡° ͜ʖ ͡°)
¯\_(ツ)_/¯
(╯°□°)╯︵ ┻━┻
http://www.fileformat.info/convert/text/upside-down.htm
WRTTN http://wrttn.me/30dbfd/
Unicode Emoticons
@jgillmanjr
jgillmanjr / audio2graph.ps1
Created August 22, 2020 18:24
FFMPEG Audio 2 Spectragraph
ffmpeg -i $args[0] -filter_complex "[0:a] showspectrum=s=1920x1080:slide=scroll:mode=combined:color=fruit:legend=disabled [v]" -map "[v]" -map 0:a -movflags faststart -c:v libx264 -b:v 10M -r 60 -c:a aac -b:a 512k $args[1]
#!/bin/bash
date
ffmpeg -i "$1" -filter_complex "[0:a] showspectrum=s=1920x1080:slide=scroll:mode=combined:color=fruit:legend=disabled [v]" -map "[v]" -map 0:a -movflags faststart -c:v libx264 -b:v 10M -r 60 -c:a aac -b:a 512k "$2"
date
@jgillmanjr
jgillmanjr / Build Michigan Cert Map.ipynb
Last active February 25, 2019 18:55
Build US Airman Database and Map
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jgillmanjr
jgillmanjr / parser_conv.py
Created October 20, 2018 05:06
Perl CIFP Parser main parser def conversion
# Parse the various parser pl files - because fuck manually working that shit if avoidable
# This is also making some horridly bad one-off assumptions. Not reusable *at all*
raw_parsers_pl = requests.get('https://raw.githubusercontent.com/jgillmanjr/parseCifp/master/parsers.pl').text.splitlines()
# Regexy shit
ntr_key_check_re = re.compile('\'([A-Z]*)\'')
sec_key_xit_re = re.compile('\}')
xit_key_check_re = re.compile('.*,')
has_sq_re = re.compile('\'')
parser_data_re = re.compile('.*([a-zA-Z]+:[0-9]+)')
@jgillmanjr
jgillmanjr / keybase.md
Created May 25, 2018 19:47
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@jgillmanjr
jgillmanjr / loader.py
Created April 5, 2017 06:33
Get into a django app from an external script - Django 1.10
import sys
import os
project_name = 'your_project'
project_path = '/your/path/here' # Or however you want to build it
project_settings_module = project_name + '.settings'
sys.path.append(project_path)
os.environ.setdefault('DJANGO_SETTINGS_MODULE', project_settings_module)