Skip to content

Instantly share code, notes, and snippets.

View kernkraft235's full-sized avatar

kernkraft kernkraft235

View GitHub Profile
/*
By kenharris from TypingMind Discord.
TypingMind Extension: Model Search & Full Model Names
Model Search Functionality: The model selector now includes a search
bar at the top. You can easily search and filter models by typing in
their names
## Download SD's models, loras, textual inversions to Runpod's machine
# Checkpoints
cd /workspace/stable-diffusion-webui/models/Stable-diffusion
wget -O AbsoluteReality.safetensors https://civitai.com/api/download/models/132760?type=Model&format=SafeTensor&size=pruned&fp=fp16
wget -O RealisticVision-v51.safetensors https://civitai.com/api/download/models/130072?type=Model&format=SafeTensor&size=full&fp=fp16
wget -O CyberRealistic.safetensors https://civitai.com/api/download/models/114429?type=Model&format=SafeTensor&size=pruned&fp=fp32
wget -O EpicRealism.safetensors https://civitai.com/api/download/models/127742?type=Model&format=SafeTensor&size=pruned&fp=fp16
wget -O MajicMIX.safetensors https://civitai.com/api/download/models/94640?type=Model&format=SafeTensor&size=pruned&fp=fp16
wget -O URPM.safetensors https://civitai.com/api/download/models/15640?type=Model&format=SafeTensor&size=full&fp=fp16
@kernkraft235
kernkraft235 / Install WSL2.md
Created November 1, 2024 14:40
Install WSL2.md

Official Documentation

Mega easy way that should work:

  1. Install Ubuntu from the Microsoft Store
  2. Once it's done installing open the Ubuntu app

A terminal window should pop up that has the following contents:

Installing, this may take a few minutes...

Acessing your Windows Files from within WSL

You can access you Windows folders at /mnt/c/Users/$WIN_USER I have set the environment variable to always equal your actual Windows username

For convenience I made symbolic links in your Linux home directory to your Windows home dir and your Downloads folder Use the command 'ls' to see whats in your home directory

Python

I have initialized a virtualenv that automatically starts when you load your shell This is useful so that you can install pip packages psuedo-globally without interferring with the system Python install

@kernkraft235
kernkraft235 / opnsense-i226-nic-tunables.md
Last active October 8, 2024 14:03 — forked from jorisvervuurt/opnsense-i226-nic-tunables.txt
OPNsense - Intel i226 NIC tunables
@kernkraft235
kernkraft235 / EmulateTyping.ahk
Created August 16, 2024 04:14 — forked from JamoCA/EmulateTyping.ahk
AutoHotKey Script to emulate typing. Use CTRL+SHIFT+V to paste clipboard character-by-character as if typing.
^+v:: ; paste text and emulate typing (CTRL+SHIFT+V)
AutoTrim,On
string = %clipboard%
Gosub,ONLYTYPINGCHARS
StringSplit, charArray, string
Loop %charArray0%
{
this_char := charArray%a_index%
Send {Text}%this_char%
Random, typeSlow, 1, 3

iTerm integrated AI Assistant Advisor.

You are a built-in assistant in a terminal emulator. The specific terminal app is "iTerm2.app" on macOS. I am on the most recent version with a macbook pro m3 MAX. I have homebrew installed. I am comfortable in the commandline and don’t have any data on the machine that isnt backed up. I prefer standardized terminal programs I get from homebrew that act like linux. I also have docker installed. I am learning python, so when something I’m requesting is best served with a python script due to special needs like complexity, specialty, or portability. \n\n

My goal is: $GOAL. \n\n

Host based rules (if hostname contains these fragments): \n

charwin0 = macOS on arm cpu (apple silicon), latest version (default host, applies most of the time) \n alder = proxmox 8.2, debian-like, usually link local \n

@kernkraft235
kernkraft235 / README.txt
Last active August 13, 2024 17:02
HardLinker macOS Finder Service
# Hardlinker Finder Service
# What are hardlinks?
Hardlinking is a way to create a reference to a file without duplicating the file. This is useful for saving space on your hard drive. You can create as many hardlinks to a file as you want and they will all point to the same file, but they will appear as separate files in the Finder. When you modify one of the hardlinks, the changes will be reflected in all of the hardlinks so it's a good idea to only use them for files that you don't plan on modifying.
# What it does
When you run this service on a file or files it will create a hardlink to the file and place it in a special directory on the Desktop. They will be organized by filetype, by original location, and by time of creation. If you are hardlinking on a different disk like an external disk, the hardlink will be placed in a special directory at the root of the disk and an alias will be placed in the special directory on the Desktop.
@kernkraft235
kernkraft235 / mstconfig_show_confs.md
Last active August 13, 2024 02:12
mellanox connectx-4 SR-IOV

MSTCONFIG OPTIONS

List of configurations the device mt4117_pciconf0 may support

Use this command mlxconfig -d mt4117_pciconf0 show_confs

MODULE POWER

MODULE_MAX_POWER_OVERRIDE_M0=<BINARY> Max consumption power allowed, from thermal perspective, for module cage.

@kernkraft235
kernkraft235 / bootstrap.fish
Last active June 4, 2024 11:50
universal bootstrap for Linux/macOS (fish based)
#!/usr/bin/env fish
echo "en_US.UTF-8 UTF-8" | sudo tee /etc/local.gen
# Install iTerm shell integration
curl -L https://iterm2.com/shell_integration/install_shell_integration_and_utilities.sh|bash
# Installing rust stable minimal toolchain
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $HOME/.local/bin/rustup.sh
chmod +x $HOME/.local/bin/rustup.sh