Skip to content

Instantly share code, notes, and snippets.

View julianxhokaxhiu's full-sized avatar
🚀
Impossible Is Nothing.

Julian Xhokaxhiu julianxhokaxhiu

🚀
Impossible Is Nothing.
View GitHub Profile
@julianxhokaxhiu
julianxhokaxhiu / compact-wsl2-disk.ps1
Created March 16, 2025 15:19
Compact a WSL2 Arch distro image file
# This script is useful if you want to compact your VM disk file to the minimum size possible
# Use this script in combination with compact_vm_disk ( https://github.com/julianxhokaxhiu/dotfiles/blob/master/.zshrc#L231-L235 ) for best results
$ErrorActionPreference = "Stop"
# The array containing the files to compress
$files = @()
# The folders where to look for files
$wsl_folders = @(
# WSL OSes from the Windows Store
@julianxhokaxhiu
julianxhokaxhiu / .zshrc
Created August 30, 2024 10:28 — forked from bmhatfield/.zshrc
OSX Keychain Environment Variables
# If you use bash, this technique isn't really zsh specific. Adapt as needed.
source ~/keychain-environment-variables.sh
# AWS configuration example, after doing:
# $ set-keychain-environment-variable AWS_ACCESS_KEY_ID
# provide: "AKIAYOURACCESSKEY"
# $ set-keychain-environment-variable AWS_SECRET_ACCESS_KEY
# provide: "j1/yoursupersecret/password"
export AWS_ACCESS_KEY_ID=$(keychain-environment-variable AWS_ACCESS_KEY_ID);
export AWS_SECRET_ACCESS_KEY=$(keychain-environment-variable AWS_SECRET_ACCESS_KEY);
@julianxhokaxhiu
julianxhokaxhiu / Makefile
Last active May 13, 2023 22:39
Quickly publish online a localhost tunnel using tunnel.pyjam.as and a Makefile
###############################################################################
# ENVIRONMENT CONFIGURATION
###############################################################################
MAKEFLAGS += --no-print-directory
SHELL=/bin/bash
# Use default as default goal when running 'make'
.PHONY: default
.DEFAULT_GOAL := default
@julianxhokaxhiu
julianxhokaxhiu / DisableMicrosoftEdgeHubsSidebar.mobileconfig
Last active March 16, 2023 09:18
Hide the Edge 111 Bing toolbar icon on Windows and Mac
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>HubsSidebarEnabled</key>
<false/>
<key>PayloadDisplayName</key>
@julianxhokaxhiu
julianxhokaxhiu / create-iso.sh
Created October 31, 2022 12:31
Simple bash script to create a Bootable ISO from macOS Ventura Install Image from Mac App Store
#!/usr/bin/env bash
#===========================================================================
# Works only with the official image available in the Mac App Store.
# Make sure you download the official installer before running this script.
#===========================================================================
# Change this at your desire. Sometimes this works out of the box, sometimes not.
# Default size: ~16 GB
DISK_SIZE="15361m"
@julianxhokaxhiu
julianxhokaxhiu / jenkins-start-maintenance.groovy
Created July 27, 2022 10:08
Put Jenkins in maintenance mode ( prevent new jobs to be run, hold them in queue )
import jenkins.model.Jenkins;
// Start Jenkins in maintenance mode
Jenkins.instance.doQuietDown();
@julianxhokaxhiu
julianxhokaxhiu / README.md
Last active March 31, 2025 22:41
Windows 11 24H2 - Create local account on first boot and other useful tricks

Create a local account on Windows 11 24H2 clean install ( and first boot ):

NEW METHOD

Feel free to try this method if it works, if not switch back to the one below.

  1. Reach the country selection window
  2. Press Shift + F10
  3. Type start ms-cxh:localonly
  4. Follow the account creation window, then finally hit Next
@julianxhokaxhiu
julianxhokaxhiu / Dockerfile
Last active June 16, 2022 15:09
Docker compose example project with proxy support
FROM alpine:latest
@julianxhokaxhiu
julianxhokaxhiu / README.md
Created May 24, 2022 10:53
OnePlus 5 (cheesebuger) ih8sn.conf
@julianxhokaxhiu
julianxhokaxhiu / create-iso.sh
Last active June 18, 2023 08:11
Simple bash script to create a Bootable ISO from macOS Monterey Install Image from Mac App Store
#!/usr/bin/env bash
#===========================================================================
# Works only with the official image available in the Mac App Store.
# Make sure you download the official installer before running this script.
#===========================================================================
# Change this at your desire. Sometimes this works out of the box, sometimes not.
# Default size: ~16 GB
DISK_SIZE="15361m"