Skip to content

Instantly share code, notes, and snippets.

View redthing1's full-sized avatar

red thing redthing1

  • the eternal wonders of space
  • California
View GitHub Profile
@Artefact2
Artefact2 / README.md
Last active April 6, 2025 06:45
GGUF quantizations overview
@hugsy
hugsy / binja_rpyc_snippet.py
Last active September 6, 2024 16:05
Run Binary Ninja headlessly using RPyC
import binaryninja
import threading
import typing
import logging
import rpyc
import rpyc.utils.helpers
import rpyc.utils.server
if typing.TYPE_CHECKING:
import rpyc.core.protocol
@QuietNoise
QuietNoise / auto_filename.py
Last active February 16, 2025 07:02 — forked from robertguetzkow/auto_filepath.py
Blender add-on for automatic unique output file name generation based on the current timestamp
# Inspired by original code by Robert Guetzkow: https://gist.github.com/robertguetzkow/8dacd4b565538d657b72efcaf0afe07e
# If you want save still image renders (F12) you must have at least one File Output node connected to image output in your compositor.
# The node's name will be prepended to the filename as well as the timestamp.
# The timestamp is created when the job is started and not when the frame is rendered thus for animation renders the timestamp
# will be the same for all frames.
# There is also an option to put entire animation renders in its own timestampted subfolder and to give animation frames a prefix.
bl_info = {
"name": "Auto-Filename",
@kaiokendev
kaiokendev / 4Bit Lora Trainer Notebook.ipynb
Last active October 16, 2023 17:26
4-bit LoRA Training Notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@redthing1
redthing1 / wget-snapshotpage.md
Created October 23, 2022 01:38 — forked from dannguyen/wget-snapshotpage.md
Use wget to snapshot a page and its necessary visual dependencies

Use wget to mirror a single page and its visible dependencies (images, styles)

Money graphic via State of Florida CFO Vendor Payment Search

Graphic via State of Florida CFO Vendor Payment Search (flair.myfloridacfo.com)

This is a quick command I use to snapshot webpages that have a fun image I want to keep for my own collection of WTFViz. Why not just right-click and save the image? Oftentimes, the webpage in which the image is embedded contains necessary context, such as captions and links to important documentation just incase you forget what exactly that fun graphic was trying to explain.

@moyix
moyix / codegen_gptj_convert.py
Created July 22, 2022 19:33
Convert a SalesForce CodeGen model's weights to plain GPT-J
#!/usr/bin/env python
import argparse
import torch
from transformers import GPTJForCausalLM, GPTJConfig
# Note: these need the git version of Transformers as of 7/22/2022
from transformers import CodeGenTokenizer, CodeGenForCausalLM
from transformers import CODEGEN_PRETRAINED_MODEL_ARCHIVE_LIST
parser = argparse.ArgumentParser('Convert SalesForce CodeGen model to GPT-J')
@BlueSwordM
BlueSwordM / Simple SVT-AV1 Beginner Guide Part 1.md
Last active February 28, 2025 13:18
Simple SVT-AV1 Beginner Guide Part 1

Since we're dealing with simpler AV1 encoding, that does mean we'll be eskewing aomenc-av1, since it requires 2-pass encoding to be able to take advantage of it, and I use it externally since I have access to a special build.

Now, let's get on with the simple guide.

You'll first need to be reasonably competent with command line builds or use a recent up to date ffmpeg GUI with support for SVT-AV1.

As such, I would recommend getting a master git ffmpeg build for the operating system of your choice right here:

https://github.com/BtbN/FFmpeg-Builds

@KarthickSudhakar
KarthickSudhakar / kvm_export_import.sh
Last active March 27, 2025 10:01
Bash script to import and export KVM virtual machine
#!/usr/bin/env bash
# ----------------------------------------------------------------------------------------------------
# AUTHOR : KARTHICK S
# PURPOSE : THIS SCRIPT WILL EXPORT/IMPORT THE CONFIG AND VM DISK.
#
# usage:
# export function will take care of exporting the necessary for all VM. Run as "<scriptname.sh> export"
# import function will take care of importing the necessary for all VM. Run as "<scriptname.sh> import"
#
@WolfgangSenff
WolfgangSenff / gist:168cb0cbd486c8c9cd507f232165b976
Last active February 15, 2025 13:44
Godot 4.0 Migration/Upgrade guide
## For a beginner-friendly version of the following (more advanced users likely will get better use of the below,
## if you're just starting out...), see this new gist:
## https://gist.github.com/WolfgangSenff/0a9c1d800db42a9a9441b2d0288ed0fd
This document represents the beginning of an upgrade or migration document for GDScript 2.0 and Godot 4.0. I'm focusing on 2D
at the moment as I'm upgrading a 2D game, but will hopefully have more to add for 3D afterward.
## If you want more content like this, please help fund my cat's medical bills at https://ko-fi.com/kyleszklenski - thank you very much! On to the migration guide.
@keilmillerjr
keilmillerjr / convert_manjaro_to_arch_linux.md
Last active November 23, 2024 15:53
Convert Manjaro to Arch Linux

Convert Manjaro to Arch Linux

Conversion Script

  1. Download, make, and run script.
$ git clone https://github.com/kskeigrshi/manjaro-to-archlinux.sh
$ cd manjaro-to-archlinux.sh
$ makepkg
$ ./to_arch