Skip to content

Instantly share code, notes, and snippets.

View genevera's full-sized avatar

genevera (she/her) genevera

  • Queens, NY
View GitHub Profile
@sanguivore-easyco
sanguivore-easyco / peft.py
Last active January 28, 2025 19:12 — forked from edicam/peft.py
Script to convert the conceptmod safetensors slider to an usable .safetensors slider
import os.path
from collections import OrderedDict
from safetensors.torch import save_file, load_file
import torch
state_dict=load_file("path to your slider.safetensors")
alpha_keys = [
'lora_unet-single_transformer_blocks-0-attn-to_q.alpha',
@edicam
edicam / peft.py
Created September 24, 2024 15:26
Script to convert the .pt slider to an usable .safetensors slider
import os.path
from collections import OrderedDict
from safetensors.torch import save_file
import torch
state_dict=torch.load("path to your slider.pt")
alpha_keys = [
'lora_unet_single_transformer_blocks_0_attn_to_q.alpha'
@av
av / bbh_256.yml
Created September 22, 2024 10:56
Example Harbor Bench tasks file - 256 tasks from Big Bench Hard
- tags:
- bbh
question: >-
Complete the rest of the sequence, making sure that the parentheses are
closed properly. Input: { < { { [ ] } } { < [ { { < > } } [ ( ) ( ) ] [ [ [
[ ( { < ( < ( [ ] ) > ) > } ) ] ] ] ] ] ( ) ( [ ] { } ) > } > [ { ( ( ) ) }
]
criteria:
correctness: 'The answer is }'
- tags:
@av
av / mmlu_256.yaml
Created September 12, 2024 16:17
Harbor MMLU 256
- tags:
- ori_mmlu-global_facts
question: >-
<instructions>Carefully read the question and the options provided. Choose
the option that best answers the question.</instructions>
<question>As of 2017, the share of deaths in Greenland by suicide is
about</question>
<options><option>A: 3.60%</option>
@arenasys
arenasys / prune.py
Last active January 3, 2023 14:01
prune.py
#!/usr/bin/python
import torch
import safetensors
import safetensors.torch
import os
MODEL_KEYS = [
"model.",
"first_stage_model",
// ==UserScript==
// @name hCAPTCHA solver
// @namespace hCAPTCHA solver
// @version 1.0
// @description Automatically solves hCAPTCHAs in browser
// @author Abdul Rehman Sheikh - engageub
// @licence MIT
// @match *://*/*
// @grant GM_xmlhttpRequest
// @grant GM_setValue
# 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
@origamiofficial
origamiofficial / Hcaptcha Solver with Browser Trainer(Automatically solves Hcaptcha in browser).user.js
Last active December 10, 2024 14:02
Hcaptcha Solver with Browser Trainer(Automatically solves Hcaptcha in browser) by Md ubeadulla | Note: This script is solely intended for the use of educational purposes only and not to abuse any website. This script uses audio in order to solve the captcha. Use it wisely and do not abuse any website. Click "Raw" to install it on Tampermonkey
// ==UserScript==
// @name Hcaptcha Solver with Browser Trainer(Automatically solves Hcaptcha in browser)
// @namespace Hcaptcha Solver
// @version 10.0
// @description Hcaptcha Solver in Browser | Automatically solves Hcaptcha in browser
// @author Md ubeadulla
// @match https://*.hcaptcha.com/*hcaptcha-challenge*
// @match https://*.hcaptcha.com/*checkbox*
// @grant GM_xmlhttpRequest
// @grant GM_setValue
@sts10
sts10 / rust-command-line-utilities.markdown
Last active October 12, 2025 00:58
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool

Fix magisk stock backup does not exist

# put stock boot.img into /sdcard/boot.img

# get sha1
adb shell
su
SHA1=$(cat $(magisk --path)/.magisk/config | grep SHA1 | cut -d '=' -f 2)