# 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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import torch | |
import safetensors | |
import safetensors.torch | |
import os | |
MODEL_KEYS = [ | |
"model.", | |
"first_stage_model", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import os | |
from scipy.io import wavfile | |
import pyroomacoustics as pra | |
frame_len = 80 | |
mu = 30 # higher value can give more suppression but more distortion | |
thres = 0.01 # threshold between (signal+noise) and noise | |
# How many frames to look back for the noise floor estimate. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: all | |
become: yes | |
gather_facts: false | |
vars: | |
tasks: | |
- name: Check that the /etc/docker/daemon.json exists | |
stat: | |
path: /etc/docker/daemon.json | |
register: stat_result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Java.perform(function() { | |
var surface_view = Java.use('android.view.SurfaceView'); | |
var set_secure = surface_view.setSecure.overload('boolean'); | |
set_secure.implementation = function(flag){ | |
console.log("setSecure() flag called with args: " + flag); | |
set_secure.call(false); | |
}; |
NewerOlder