Some notes and tools for reverse engineering / deobfuscating / unminifying obfuscated web app code.
This file contains hidden or 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
| [Unit] | |
| Description=Set NVIDIA power limit above default | |
| [Service] | |
| Type=oneshot | |
| ExecStartPre=/usr/bin/nvidia-smi -pm 1 | |
| ExecStart=/usr/bin/nvidia-smi -pl 275 |
This file contains hidden or 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
| class HomePage extends HookWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| useEffect( | |
| () { | |
| // initState | |
| return () { | |
| // dispose | |
| }; | |
| }, |
This file contains hidden or 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
| # original post: https://rentry.org/sd-loopback-wave | |
| # original author: https://rentry.org/AnimAnon | |
| import os | |
| import platform | |
| import numpy as np | |
| from tqdm import trange | |
| import math | |
| import subprocess as sp | |
| import string | |
| import random |
This file contains hidden or 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
| PRESIGNED_URL="https://agi.gpt4.org/llama/LLaMA/*" | |
| TARGET_FOLDER="./" # where all files should end up | |
| declare -A N_SHARD_DICT | |
| N_SHARD_DICT["7B"]="0" | |
| N_SHARD_DICT["13B"]="1" | |
| N_SHARD_DICT["30B"]="3" | |
| N_SHARD_DICT["65B"]="7" |
This file contains hidden or 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
| #!/bin/bash | |
| # Ollama Model Export Script | |
| # Usage: bash ollama-export.sh vicuna:7b | |
| # SPDX-License-Identifier: MIT (https://ncurl.xyz/s/o_o6DVqIR) | |
| # https://gist.github.com/supersonictw/f6cf5e599377132fe5e180b3d495c553 | |
| # Interrupt if any error occurred | |
| set -e | |
| # Declare |
This file contains hidden or 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
| -- vim: tabstop=2 shiftwidth=2 expandtab | |
| -- We almost always start by importing the wezterm module | |
| local wezterm = require 'wezterm' | |
| -- Define a lua table to hold _our_ module's functions | |
| local module = {} | |
| -- Returns a bool based on whether the host operating system's | |
| -- appearance is light or dark. | |
| function module.is_dark() |
This file contains hidden or 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
| --- | |
| services: | |
| webui: | |
| image: ghcr.io/open-webui/open-webui:main | |
| ports: | |
| - 8080:8080/tcp | |
| environment: | |
| - OLLAMA_BASE_URL=http://ollama:11434 | |
| volumes: | |
| - /var/opt/data/ollama/webui:/app/backend/data |