Skip to content

Instantly share code, notes, and snippets.

View Tknott95's full-sized avatar
🍀

TKnott Tknott95

🍀
View GitHub Profile
@Tknott95
Tknott95 / archimedes.MD
Last active August 11, 2024 03:31
P H A S E - C O N J U G A T I O N

- FREUDIAN PIPELINES PHAS CONJUGATION -

In ancient Greece, where wisdom glows, A mirror caught the sun's warm prose. Archimedes, with mind so keen, Saw secrets in the light’s bright sheen.

He pondered rays that danced and played, And how reflections never stayed. With each reflection, truth revealed,

@Tknott95
Tknott95 / git_misc_2gb_rec.MD
Last active August 5, 2024 05:00
2gbs limit git - History of all local ./.git commmits for repo rec over 2gbs init()

Back everything up first to safe locations. If github is deletd it can be revocerd in settings. This is for sendning up a large repo that somehow got removed from linking via obscure issues like old repo pushes with same name and no history so you are forced to push local> you will have a project over 2gbs so you will ruynb into a new issue.

OVER 2GBS AND REPO IS GONE + HISTORY BUT HAVE LOCAL .git WHAT DO I DO?

BACKUP VIA BELOW THEN FOLLOW STEPS BELOW FROM A STACKOVERFLOW REC. (in comments)

I AM DOING THIS FOR MY PROJECT THAT ALSO HAS GIT-LFS TRACKING AND OVER 140gbs.

Mount an external or an internal and make sure to format proper to transfer over 4gbs at a time. I can add a guide and link it here later for linux users. You can rsync remote or local. OR just tarball right into the internal/external as this was fastest for me.

@Tknott95
Tknott95 / toc_cli_theme.MD
Last active August 10, 2024 01:00
toc_cli_theme

TOC CLI THEME

  • ANY COLOR BASH FUNCTION ( EX: _p "1;37m" )
 _p() {
  export PS1="\n\[\033[38;5;230m\]\[\033[48;5;17m\]\t\[\033[0m\]\[\033[38;5;15m\]\[\033[48;5;-1m\].\[\033[0m\]\[\033[38;5;69m\]\u\[\033[0m\]\[\033[38;5;198m\]@\[\033[0m\]\[\033[38;5;74m\]\h\[\033[0m\]\[\033[38;5;15m\] \W\[\033[0m\]\[\033["$@"\] ︻デ═一 \[\033[0m\]"
 }
  • BLACK GUN export PS1="\n\[\033[38;5;230m\]\[\033[48;5;17m\]\t\[\033[0m\]\[\033[38;5;15m\]\[\033[48;5;-1m\].\[\033[0m\]\[\033[38;5;69m\]\u\[\033[0m\]\[\033[38;5;198m\]@\[\033[0m\]\[\033[38;5;74m\]\h\[\033[0m\]\[\033[38;5;15m\] \W\[\033[0m\]\[\033[1;30m\] ︻デ═一 \[\033[0m\]"
@Tknott95
Tknott95 / aes256cbc.js
Last active May 4, 2024 19:52
runemilio reverse engineer aes-256-cbc wallet encodings
const crypto = require('crypto');
// will give example strings later
const hexString = "";
const base64String = "";
const encryptedData = "";
// Convert hexadecimal string to a buffer for the key
const keyBuffer = Buffer.from(hexString, 'hex');
@Tknott95
Tknott95 / gist:0f3d0bd9adabff6cc97a8e9c68507788
Last active October 2, 2023 00:27
external hdd restore write from read-only

ls -la <path-to-external>

example ls -la /dev/sda

sudo mount -o remount,uid=1000,gid=1000,rw <path-to-external>

example ls -la sudo mount -o remount,uid=1000,gid=1000,rw /dev/sda

this is after I already mounted mount /dev/sda /run/media/x4

@Tknott95
Tknott95 / install.sh
Last active August 29, 2023 09:58
Quick install Model Quantized huggingface via pip
#!/bin/sh
pkgs=(
"huggingface_hub"
"python-dotenv" "openai"
"torch torchvision torchaudio"
"bitsandbytes"
"accelerate>=0.20.3"
"git+https://github.com/huggingface/transformers"
)
@Tknott95
Tknott95 / install.sh
Created August 8, 2023 21:47
install.sh way of doing 00
#!/bin/sh
pkgs=("huggingface_hub" "python-dotenv" "openai")
for pkg in "${pkgs[@]}"; do
echo -e '\n INSTALLING: ' + $pkg
pip install $pkg
done
@Tknott95
Tknott95 / nvidia_set.sh
Last active March 5, 2024 18:42
shell script clocking SETTERS (from honeybadgerminer aka platform137)
#!/bin/bash
# p - power draw | NVIDIA-SMI
# t - temp threshold | NVIDIA-SMI
# f - fan speed | NVIDIA-SETTINGS
# m - memory transfer rate offset | NVIDIA-SETTINGS
# g - graphics clock offset | NVIDIA-SETTINGS
# NEEDS TO BE REFACTORED AS THIS IS SLOPPY CODE
@Tknott95
Tknott95 / nvidia_get.sh
Last active August 25, 2023 05:06
shell script clocking GETTERS (from honeybadgerminer akja platform137)
#!/bin/bash
# f - is fan speed by provding a gpu-index-#
# l - list amount of GPUs
# m - memory clock
# g - graphics clock
# p - power draw
# @TODO - NEED A SCRIPT TO PULL TEMP LIMIT
# CODE NEEDS TO BE REFACTORED THIS IS SLOPPY
addr1q8aez3jp4m2zzangdhvux0952hhnsp6w3mep7xzsru7mmxneddtv450pl94c7n6xtlnp9dgwksv5z4aczj575jjgk9esn9x8ur