Skip to content

Instantly share code, notes, and snippets.

View thimslugga's full-sized avatar
:octocat:

Adam Kaminski thimslugga

:octocat:
View GitHub Profile
@thimslugga
thimslugga / gist:2bd1cebede296bfe8129221c3012826b
Created February 12, 2026 13:39 — forked from rtrouton/gist:3ac68ac3770ab23ebae354c581f526b7
MigrateADMobileAccountToLocalAccount.command script
#!/bin/bash
# Modified 4/5/2019
Version=1.4
# Original source is from MigrateUserHomeToDomainAcct.sh
# Written by Patrick Gallagher - https://twitter.com/patgmac
#
# Guidance and inspiration from Lisa Davies:
# http://lisacherie.com/?p=239
#
# Modified by Rich Trouton
@thimslugga
thimslugga / active_directory_plug-in_helper.sh
Created February 12, 2026 13:38 — forked from macsimom/active_directory_plug-in_helper.sh
An attempt at a bandaid for AD bound Macs that lose their bind due to corrupted credentials
#!/bin/bash
# version 1.4 - Simon Andersen
# set -x
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
DSCONFIGADOUTPUT="$(dsconfigad -show -xml)"
COMPUTERACCOUNT="$(/usr/libexec/PlistBuddy -c "Print ':General Info:Computer Account'" /dev/stdin <<<"$DSCONFIGADOUTPUT")"
if [[ -z "$COMPUTERACCOUNT" ]]; then
echo "Fatal error - No computer account name found"
@thimslugga
thimslugga / Pretraining-LLM.md
Created February 10, 2026 03:50 — forked from ritwikraha/Pretraining-LLM.md
Pretraining of Large Language Models

Pretraining


A Map for Studying Pre-training in LLMs

  • Data Collection
    • General Text Data
    • Specialized Data
  • Data Preprocessing
    • Quality Filtering
  • Deduplication
@thimslugga
thimslugga / ai-agent-rule-instruction-context-files.md
Created February 4, 2026 18:09 — forked from 0xdevalias/ai-agent-rule-instruction-context-files.md
Some notes on AI Agent Rule / Instruction / Context files / etc

AI Agent Rule / Instruction / Context files / etc

Some notes on AI Agent Rule / Instruction / Context files / etc.

Table of Contents

@thimslugga
thimslugga / install-from-source.sh
Created January 21, 2026 13:36 — forked from zeroday0619/install-from-source.sh
git credential manager | Amazon Linux 2
#!/bin/sh
# halt execution immediately on failure
# note there are some scenarios in which this will not exit;
# see https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
# for additional details
set -e
is_ci=
for i in "$@"; do
@thimslugga
thimslugga / zsh-setup-guide.md
Created January 17, 2026 19:25 — forked from hx-natthawat/zsh-setup-guide.md
Ultimate Zsh Dev Setup with Pastel Colors + AI - nvm (lazy), Git, Oh My Zsh, Nerd Fonts, bat, fzf, eza, difftastic, GitHub Copilot CLI | 100+ shortcuts

Ultimate Zsh Development Environment Setup

A complete guide to set up a modern, powerful terminal environment for developers on macOS.

🎯 What You'll Get

  • Dual Theme System - Cyberpunk (neon) & Pastel (soft) themes with instant switching
  • nvm - Node Version Manager with lazy-loading (50-60% faster startup)
  • Git - Fully configured with delta, difftastic, and 40+ aliases
  • Oh My Zsh - 8 powerful plugins

Python Project Setup

Install UV

UNIX OS

To install:

curl -LsSf https://astral.sh/uv/install.sh | sh
@thimslugga
thimslugga / ms-windows-terminal-setup.md
Last active January 2, 2026 19:42 — forked from tonysneed/windows-terminal-setup.md
Windows Terminal Setup

Windows Terminal Setup

Overview

winver
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

Perfetto for upstream kernel development

Perfetto is super useful for understanding interactions between the kernel and applications. Outside of Android and ChromeOS, though it's use isn't as common. This doc tries to provide a basic walk through to get started using perfetto for upstream kernel development with classic linux distros, potentially running under qemu.

Install perfetto

Grab the latest linux- tarball: https://github.com/google/perfetto/releases

Often the tests I’m tracing need to run as root, so because of this, I copied the binaries in the tarball to /usr/local/bin/ and chmod +x the binaries to make

Running Windows 10/11 Guest with GPU Passthrough using laptop running Fedora

Abstract

This is a full guide for people who wanted to set up Windows 10/11 VM with QEMU/KVM hypervisor enhancements for a laptop that is configured with hybrid graphics card like Intel/AMD + NVIDIA. This process will take about 1 to 2 hours, depending on your system's performance and your patience =)

There is another comprehensive guide you can follow here (shoutout to asus-linux team who made supergfxctl which is a very important tool for this guide). It is more up-to-date than mine. I would probably incorporate those information into my guide, but you are welcome to use this one as a reference!

Before we proceed:

  • This guide is exclusively for Fedora users because this distro is quite different to set up than other distro such as Arch. I would say Arch is easier to setup than Fedora, but sometimes you like to use Fedora than Arc