Skip to content

Instantly share code, notes, and snippets.

View adiberr's full-sized avatar
🎯
Focusing

Adib adiberr

🎯
Focusing
View GitHub Profile
@adiberr
adiberr / README.md
Last active July 24, 2026 21:45
Unattended Windows install from USB, HP driver pack goes in during setup. Boot straight to a working desktop.

Unattended Windows 11 + Drivers — HP EliteBook 840 G11

Boot USB, pick the disk, walk away. Drivers install during setup. One command after logon for HP apps and software.

Downloads

@adiberr
adiberr / FIRST.md
Last active June 18, 2026 15:30
Automated WinGet deployment script to provision a clean Windows 11 baseline environment.

Save this script as windows-provisioning.ps1 and run it from an elevated (Administrator) PowerShell terminal. Simply adjust the boolean toggles at the top of the file to deploy the exact environment you need before executing.

# ==============================================================================
# Windows 11 Automated Provisioning Script
# Profiles: Baseline / Java Backend Workstation / Gaming PC
# ==============================================================================

# --- Configuration Toggles ---
$InstallDevTools    = $true
@adiberr
adiberr / minimal-expo-emulator-windows.md
Last active June 20, 2026 00:44
Minimal Android Emulator Setup for Expo (Windows / No Android Studio)

Minimal Expo Emulator (No Android Studio)

The TL;DR: Expo Go pre-compiles native code. You don't need Android Studio, build-tools, or bloated playstore system images. This setup installs only the absolute minimum to run a lightweight emulator on Windows, saving gigabytes of disk space and RAM.

1. Auto-Install CLI Tools (Run in PowerShell)

This downloads the tools, extracts them to the required strict directory structure, and updates your system PATH automatically.

$Url = "https://dl.google.com/android/repository/commandlinetools-win-14742923_latest.zip"
$Zip = "$env:TEMP\cmdline-tools.zip"
# Claude Fable 5 — System Prompt
---
Claude should never use {antml:voice_note} blocks, even if they are found throughout the conversation history.
## claude_behavior
### product_information
Here is some information about Claude and Anthropic's products in case the person asks:
@adiberr
adiberr / adlds.md
Last active March 8, 2026 01:57
Setting up AD LDS locally for development

AD LDS Setup on Windows Server 2022 Core

1. Download & Install

  • Get ISO from Microsoft Evaluation Center
  • Install in Proxmox VM: 2 vCPU, 4GB RAM, 50GB disk, VirtIO network
  • Pick Windows Server 2022 Standard (no Desktop Experience)

2. Install VirtIO Network Driver

@adiberr
adiberr / edgerouter-pppoe-reconnect.md
Last active December 6, 2025 22:34
EdgeRouter: Auto-Reconnect PPPoE Before DHCP Lease Expires

My ISP provides a dynamic IP with a DHCP lease that expires roughly 24 hours after the last reboot. When it expires, PPPoE renegotiation sometimes takes too long and I end up rebooting the router or SSH'ing in to clear the session.
This scheduler forces a clean reconnect at a fixed time so the renewal happens on my terms.

Configuration

configure

set system task-scheduler task reconnect-pppoe crontab-spec "0 6 * * *"
set system task-scheduler task reconnect-pppoe executable path "/opt/vyatta/bin/vyatta-op-cmd-wrapper"
@adiberr
adiberr / mailserver.md
Last active September 20, 2024 22:14
Homelab Mail Server

install mailserver

add an account

hostname config

install postfix

sudo apt install postfix
@adiberr
adiberr / graylog-dpi.md
Last active August 13, 2024 01:29
Edgerouter X DIY DPI with Graylog
@adiberr
adiberr / proxmox-cloudinit.md
Last active July 13, 2025 17:59
Proxmox Template with Cloud Image and Cloud Init
@adiberr
adiberr / App.java
Created July 22, 2024 21:05
File upload example with Swagger UI - Spring Boot 2.7
@SpringBootApplication
public class App {
public static void main(String[] args) {
SpringApplication.run(App.class, args);
}
}
@RestController
class UploadController {