Skip to content

Instantly share code, notes, and snippets.

View lyjia's full-sized avatar

Tom C lyjia

View GitHub Profile
#!/usr/bin/env bash
set -e
# example llama.cpp cmdstring:
# ./main -m ~/data/ml/LLaMA/LLaMA-7B-ggml-model-q4_0.bin -n 256 --repeat_penalty 1.0 --color -i -r "User:" -f prompts/chat-with-bob.txt
### CONFIGURATION ###
# Set the following to match your location for compiled llama.cpp
LLAMA_DIR=~/src/llama.cpp
LLAMA_BIN=main
#!/usr/bin/env ruby
#
# This script extracts cue points ("locators" in Ableton's parlance) from an Ableton Live set to a more-easily readable
# format, like cuesheet .cue files.
#
# The 'thor' gem is used for command-line argument processing, so you will need to install it by running:
#
# gem install thor
#
# Example usage:
#!/usr/bin/env ruby
# Converts a playlist exported from Rekordbox in "KUVO TXT" format to a more useful format of Artist - Title
# (C) 2022 Lyjia
require 'csv'
src = ARGV[0]
buf = ""
raise "Give me a file to process!" if src.nil?
raise "File '#{src}' does not exist!" unless File.exist?(src)
@lyjia
lyjia / reverb_drum_machine_complete_collection_extractor.rb
Created November 22, 2021 00:29
Very simple script for extracting Reverb.com Drum Machines The Complete Collection to a more sane and useful folder structure, without all the redundant verbiage and better more-useful filenames
#!/usr/bin/env ruby
# Very simple script for extracting Reverb.com Drum Machines The Complete Collection
# to a more sane and useful folder structure, without all the redundant verbiage and better more-useful
# filenames
#
# To run this:
# 1) Extract the provided zip into a folder
# 2) Extract all those subzips into their own folders (be sure to target the root folder as they have
# their own subfolders)
@lyjia
lyjia / fixflpreviews.py
Last active November 24, 2019 03:43
A script for fixing broken plugin preview images for FL Studio.
#!/usr/bin/env python3
###############################################################################
# fixflpreviews.py
###############################################################################
# https://gist.github.com/lyjia/ca341d38388b6b1802eafcab0890fe31
#
# How to use:
# 1. download this file and save it in your FLStudio "Plugin Database" folder
# 2. Make sure you have python 3 installed
# 3. Run this script by double-clicking on it or navigating to your "Plugin
@lyjia
lyjia / bresenham.c
Created August 22, 2017 22:54
bresenham.c
/********************************************************************
* *
* Curve Rasterizing Algorithm *
* *
********************************************************************/
/**
* @author Zingl Alois
* @date 22.08.2016
* @version 1.2
@lyjia
lyjia / reclaimWindows10.ps1
Created January 7, 2017 20:17 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <[email protected]>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
@lyjia
lyjia / TomsFreshFilter.filter
Last active May 22, 2017 04:46
Toms Fresh (Path of Exile) Filter
# Script edited with Filtration - https://github.com/ben-wallis/Filtration
# Tom's Fresh Filter v1.2.20170521
# Section: Legacy League
# Leaguestones?
Show
Class "Leaguestones"
SetTextColor 255 229 181
SetBackgroundColor 34 63 92