Skip to content

Instantly share code, notes, and snippets.

View i8degrees's full-sized avatar

Jeffrey Carpenter i8degrees

View GitHub Profile
@BlueDrink9
BlueDrink9 / Readme.md
Created January 12, 2025 07:10
Extract iCloud passwords to csv on Windows (without Mac)

This script automates the extraction of icloud passwords on windows into a passwords.csv file, using Autohotkey to go through the entries, copy them to the clipboard with keyboard shortcuts, and write them to file.

Usage:

  1. Download and install icloud from the windows store. Do not open it yet.
  2. Once installed, run it as administrator for the first time, until you are signed in. (This fixes a bug where icloud says it is still initialising, every time you try to log in).
  3. Close icloud, then run it as a regular user. Open the keychain/passwords section in a new window.
  4. Download and install Autohotkey v1
  5. Download extract.ahk and run it with autohotkey
  6. Focus the icloud password window, at the first item.

Steam Client on APFS Case Sensitive Mac OS Drive

If you are using APFS Case Sensitive File system and trying to use Steam, it will flicker & silently fail or show the following error message:

steam requires that '~/library/application support/steam/steam.appbundle/steam/contents/macos' be on a case-insensitive filesystem.

To fix the issue, follow the instruction here.

Run from your user account, NOT ROOT!

Gigabytes (GB) Megabytes (MB) decimal Megabytes (MB) binary
1 GB 1,000 MB 1,024 MB
2 GB 2,000 MB 2,048 MB
3 GB 3,000 MB 3,072 MB
4 GB 4,000 MB 4,096 MB
5 GB 5,000 MB 5,120 MB
6 GB 6,000 MB 6,144 MB
7 GB 7,000 MB 7,168 MB
8 GB 8,000 MB 8,192 MB
@roolebo
roolebo / nvme-vf
Last active April 21, 2025 12:21
#!/bin/bash
# SPDX-License-Identifier: MIT
# Copyright (C) 2024 Roman Bolshakov.
# All rights reserved.
#
# The script was tested on Samsung PM173x with FW EPK9CB5Q and EPK9GB5Q.
#
# It's recommended to use at least VQ=3 VI=3 with PM173x for decent
# single-threaded I/O performance.
#
@i8degrees
i8degrees / serve_http.py
Last active May 25, 2024 22:35
Simple Python HTTP Server with multi-threading, partial-content and basic authentication support
#!/usr/bin/env python2
#
# 1. https://web.archive.org/web/20210123000445/https://gist.github.com/devgianlu/018b299f8817bf92350bf7bf70214e4d
# 2. https://github.com/devgianlu/Aria2App/wiki/Setup-HTTP-DirectDownload
#
# devgianlu/serve_http.py
# Forked from pankajp/serve_http.py
#
# Standard library imports.
@echoes341
echoes341 / 99-usbip.rules
Last active August 27, 2025 18:11
USB/IP Auto bind all usb devices (except one) and auto attach them on a windows client every 5 seconds
ACTION=="add", SUBSYSTEMS=="usb", ATTR{idProduct}!="XXXX", ATTR{idVendor}!="YYYY", RUN{program}+="/usr/sbin/usbip bind -b %k"
#!/bin/bash
set -e -o errexit -o pipefail -o nounset
###################################
# This script can be used by itself, but it's recommended that you read
# a tutorial on Proxmox forum first: https://forum.proxmox.com/threads/hey-proxmox-community-lets-talk-about-resources-isolation.124256/
###################################
# Do not modify these variables (set by Proxmox when calling the script)
vmId="$1"
@i8degrees
i8degrees / notify.py
Created May 1, 2023 08:55
Modern 'wall' command
# Sourced from https://gist.githubusercontent.com/badp/672546/raw/4c6bc7dee6d547d8a7f002ce95c9a66363108f6e/spam.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Licensed under MIT license: http://www.opensource.org/licenses/mit-license.php
import os, subprocess, sys
# thanks: Martin-Éric Racine, Roger Pate
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=433960
# http://chat.askubuntu.com/rooms/3/conversation/spam-py
#!/bin/bash
set -e -o errexit -o pipefail -o nounset
###################################
# This script can be used by itself, but it's recommended that you read
# a tutorial on Proxmox forum first: https://forum.proxmox.com/threads/hey-proxmox-community-lets-talk-about-resources-isolation.124256/
###################################
# Do not modify these variables (set by Proxmox when calling the script)
vmId="$1"
@indrekj
indrekj / truenas-kubectl.md
Last active March 21, 2025 03:25
How to acccess TrueNAS kubectl remotely?

How to acccess TrueNAS kubectl remotely from your local computer?

DISCLAIMER: This is an unofficial guide. If you mess things up then you may lock yourself out of TrueNAS or even worse, make it unusable. There's also no guarantee that this works in the future.

Through SSH

Currently the easiest way to access kubectl is through ssh and k3s tool. If you have ssh access enabled then you can ssh to your TrueNAS server and use it