Skip to content

Instantly share code, notes, and snippets.

View Airr's full-sized avatar
🎯
Focusing

Airr

🎯
Focusing
View GitHub Profile
@Airr
Airr / ip.go
Created March 9, 2019 08:18
Public IP - Using Go "net" package
package main
import (
"context"
"fmt"
"log"
"net"
)
func main() {
@Airr
Airr / Dark.md
Created January 16, 2023 05:11 — forked from rounk-ctrl/Dark.md
Win32 Dark Mode

Dark Mode APIs.

API Signatures.

ShouldAppsUseDarkMode()

Checks whether system is using dark mode or not.
Signature:

using fnShouldAppsUseDarkMode = bool (WINAPI*)(); // ordinal 132

AllowDarkModeForWindow(In HWND hWnd, In bool allow)

@Airr
Airr / readme.en.md
Created July 9, 2023 15:51 — forked from CombinedEffort/readme.en.md
How to run Windows 11 on ARM in QEMU 6.1 on Apple Silicon Mac

How to run Windows 11 on ARM in QEMU 6.1 on Apple Silicon Mac

  1. Follow the excellent gist here, up to and including step 7 : https://gist.github.com/niw/e4313b9c14e968764a52375da41b4278

  2. I converted my VHDX to qcow2 - I doubt if that's significant, but YMMV:

./qemu-img convert -p -O qcow2 ~/Windows11_InsiderPreview_Client_ARM64_en-us__22454-orig.VHDX Windows11.img
  1. Run qemu with a slightly modified command-line. It may not be the most efficient, but it worked for me:
@Airr
Airr / mdbootstrap-template-cdn.html
Created August 28, 2023 14:47 — forked from mrmccormack/mdbootstrap-template-cdn.html
MDBootsrap CDN Starter Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>UNTITLED</title>
<!-- Font Awesome -->
<!-- Bootstrap core CSS -->
#!ipxe
# 2021-01-19
# made by https://github.com/beta-tester
# for project https://github.com/beta-tester/RPi-PXE-Server
########################################################################
### CHAIN LOAD SERVER VERSION OF iPXE
:begin_ipxe_chainload_serverversion