Skip to content

Instantly share code, notes, and snippets.

View Ma5onic's full-sized avatar
🎧
Remixing

Ma5onic

🎧
Remixing
View GitHub Profile
@Ma5onic
Ma5onic / generating-synth-patches-with-ai.md
Created February 25, 2024 01:07 — forked from 0xdevalias/generating-synth-patches-with-ai.md
Some notes on generating software synthesizer patches with AI
@Ma5onic
Ma5onic / bank2qb.py
Last active May 16, 2023 00:36
script to help users format their CSV transactions for quickbooks
import csv
import re
import datetime
from collections import defaultdict
# Ask user for input
input_file = input("Enter the input file name (including .csv extension): ")
output_file_base = input("Enter the base of the output file name (without extension): ")
account_type_header = input("Enter the header for the account type column: ")
date_header = input("Enter the header for the date column: ")
@Ma5onic
Ma5onic / ipynb_2_py.py
Created March 3, 2023 16:12
Simple Python script that converts Python notebook files (.ipynb) to Python scripts (.py)
import os
import sys
import json
def ipynb_to_py(ipynb_file_path):
# Open the ipynb file and load its contents as JSON
with open(ipynb_file_path, 'r') as f:
nb = json.load(f)
# Create a new .py file with the same name as the ipynb file
# Script for converting a HF Diffusers saved pipeline to a Stable Diffusion checkpoint.
# *Only* converts the UNet, VAE, and Text Encoder.
# Does not convert optimizer state or any other thing.
# Written by jachiam
import argparse
import os.path as osp
import torch
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Ma5onic
Ma5onic / pytorch_tips_yt_follow.ipynb
Created September 21, 2022 16:31 — forked from ejmejm/pytorch_tips_yt_follow.ipynb
pytorch_tips_yt_follow.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Ma5onic
Ma5onic / Notes.md
Last active September 20, 2022 04:12
This script creates realistic mixes with stems from different songs.
@Ma5onic
Ma5onic / mount_qcow2.md
Created September 17, 2022 15:16 — forked from shamil/mount_qcow2.md
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
@Ma5onic
Ma5onic / Steam_Proton_Exe.md
Created September 3, 2022 07:26 — forked from michaelbutler/Steam_Proton_Exe.md
How to run another .exe in an existing proton wine prefix

Running games through Steam's Proton is great. But what if there is a secondary exe or configuration application bundled with the game? How can you launch it if Steam itself only launches the game?

Simply run this command in a terminal:

cd /path/to/steam/steamapps/compatdata/20920/pfx

STEAM_COMPAT_DATA_PATH="/path/to/steam/steamapps/compatdata/20920" WINEPREFIX=$PWD \
    "$HOME/.steam/root/steamapps/common/Proton 5.0/proton" run ./drive_c/path/to/custom_application.exe
@Ma5onic
Ma5onic / n64_tlb.txt
Created April 12, 2022 21:32 — forked from parasyte/n64_tlb.txt
N64 TLB
FORMATS
EntryLo0 & EntryLo1:
00 pppppppppppppppppppppppp ccc d v g
(32-bit: 2.24.3.1.1.1)
p = Page frame number; the upper bits of the physical address.
c = Specifies the TLB page coherency attribute. (See below)
d = Dirty. If this bit is set, the page is marked as dirty and, therefore, writable
This bit is actually a write-protect bit that software can use to prevent alteration