Skip to content

Instantly share code, notes, and snippets.

View robin-collins's full-sized avatar
:shipit:
I may be slow to respond.

Robin Collins robin-collins

:shipit:
I may be slow to respond.
View GitHub Profile
@robin-collins
robin-collins / ComfyUI-folder_paths.py
Created June 12, 2024 22:37
Why IPAdapter model loader wont find any models
# add the following
folder_names_and_paths["ipadapter"] = ([os.path.join(models_dir, "ipadapter")], supported_pt_extensions)
@robin-collins
robin-collins / userscript.js
Last active September 2, 2024 10:01
Claude.ai-ChatDownloader - userscript to download claude.ai chats to a text file.
// ==UserScript==
// @name Claude.ai-ChatDownloader
// @namespace http://tampermonkey.net/
// @version 1.9
// @description Download all chats from Claude.ai as a single file
// @match https://claude.ai/*
// @match https://claude.ai/chats
// @match https://claude.ai/chat/*
// @grant GM_setValue
// @grant GM_getValue
@robin-collins
robin-collins / $PROFILE.ps1
Last active December 3, 2023 08:37
powershell deferred execution - aka fast profile startup
$Deferred = {
. "/home/freddie/.local/share/chezmoi/PSHelpers/Console.ps1"
. "/home/freddie/.local/share/chezmoi/PSHelpers/git_helpers.ps1"
# ...other slow code...
}
# https://seeminglyscience.github.io/powershell/2017/09/30/invocation-operators-states-and-scopes
@robin-collins
robin-collins / windows-11-activation.txt
Created October 7, 2023 11:05
Windows 11 Activation
# How to Activate Windows 11 for FREE
## Step 1: Click on the Start button, search for “cmd“, and click on “Run as Administrator“.
## Step 2: Type: slmgr /ipk [KEY]
Replace the [KEY] with your key as per your windows version as mentioned below.
The following is the list of Windows 11 Volume license keys.
* Home: TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
function activatevenv() {
# Check if a virtual environment is already activated
if [ -z "$VIRTUAL_ENV" ]; then
# Names of possible virtualenv directories
VIRTUALENV_DIRS=("venv/" "env/" ".env/" ".venv/" "${PWD##*/}")
for dir in "${VIRTUALENV_DIRS[@]}"; do
if [[ -d "${dir}" ]]; then
# Found a possible venv directory
@robin-collins
robin-collins / pveam-download-all.sh
Last active December 1, 2022 23:46
Proxmox: Download all LXC templates to STORAGE
#!/bin/bash
STORAGE=hdd;available=$(pveam available | awk '{print $2}');array=(${available//$'\n'/ });for download in "${array[@]}"; do echo "Downloading ${download}"; timeout 180 pveam download "${STORAGE}" "${download}"; done;
// ==UserScript==
// @name Firefox noVNC Paste for Proxmox
// @namespace http://tampermonkey.net/
// @version 0.3
// @description Pastes text into a noVNC window (for use with Proxmox specifically)
// @author Chester Enright
// @match https://*
// @include /^.*novnc.*/
// @require http://code.jquery.com/jquery-3.3.1.min.js
// @grant none