Skip to content

Instantly share code, notes, and snippets.

View jamesbrink's full-sized avatar
💭
:trollface:

James Brink jamesbrink

💭
:trollface:
View GitHub Profile
@jamesbrink
jamesbrink / .env
Last active December 10, 2024 02:57
Attendize setup
ATTENDIZE_DEV=false
ATTENDIZE_CLOUD=false
APP_NAME=Attendize
APP_ENV=local
APP_DEBUG=true
APP_URL=https://localhost:8043
LOG_CHANNEL=stack
@jamesbrink
jamesbrink / hmm
Last active February 19, 2025 23:00
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\Setup\MoSetup" /v AllowUpgradesWithUnsupportedTPMOrCPU /t REG_DWORD /d 1 /f
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig" /v BypassTPMCheck /t REG_DWORD /d 1 /f
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig" /v BypassSecureBootCheck /t REG_DWORD /d 1 /f
:: Download Windows 11 ISO using curl (run in PowerShell or Command Prompt)
curl -L -o Win11.iso "https://software-download.microsoft.com/download/sg/444969d5-f34g-4e03-ac9d-1f9786c69161/202111191455.0_x64.iso"
:: Mount the ISO
powershell -command "Mount-DiskImage -ImagePath (Join-Path $pwd 'Win11.iso')"
@jamesbrink
jamesbrink / create_context_model.sh
Created April 15, 2025 16:59
Quickly create Ollama models with extended context sizes from existing models
#!/usr/bin/env bash
# Script to create an Ollama model with a custom context window size
# Usage: ./create_context_model.sh <source_model> <context_size_in_k>
# Example: ./create_context_model.sh qwen2.5-coder:14b 32
set -e
# Check if Ollama is installed
if ! command -v ollama &> /dev/null; then
echo "Error: Ollama is not installed or not in PATH"