Skip to content

Instantly share code, notes, and snippets.

View Airr's full-sized avatar
🎯
Focusing

Airr

🎯
Focusing
View GitHub Profile
@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 -->
@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 / 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 / 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 / publicIP.go
Created March 8, 2019 08:07
PublicIP
// LINUX - MACOS ONLY
package main
import (
"fmt"
"log"
"os/exec"
"strings"
)
@Airr
Airr / downloadFile.go
Last active March 6, 2019 23:04
[go-downloadFile] Download file with realtime status #go
/*
Original code: https://golangcode.com/download-a-file-with-progress/
I added Filesize field to WriteCounter struct, and set that
field to the ContentLength of the file to download.
Changed download file to 100MB test file
Changed status to show amount downloaded and total size of download
*/
@Airr
Airr / PowerShell-profile.ps1
Created October 9, 2018 23:48 — forked from PierreMage/PowerShell-profile.ps1
Make your Windows command line better with doskey
# http://technet.microsoft.com/en-us/library/ee692685.aspx
# F7 = history
# Alt+F7 = history -c
# F8 = Ctrl+R
Set-Location C:
# Easier navigation
Set-Alias o start
function oo {start .}
@Airr
Airr / OS X network optimize.sh
Last active March 5, 2020 11:05 — forked from snoby/OS X network optimize.txt
OSX Sierra Network Performance Tweaks #macOS
#
# Reboot into recovery mode (cmd +r ) and in the terminal
#
nvram boot-args="serverperfmode=1 ncl=262144"
#reboot
#
# In regular mode
@Airr
Airr / MenuletDemo.m
Created June 1, 2018 21:56
"Menulet Demo": A Single Source CONSOLE OSX Objective C StatusBar App (NO IB/NIB/XIB/XCODE)
// "Menulet Demo": A Single Source CONSOLE OSX Objective C StatusBar App (NO IB/NIB/XIB)
// Copyright (c) 2018 Armando Rivera
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
@Airr
Airr / README.md
Created January 13, 2018 18:36 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet