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 / 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 / README.md
Created January 13, 2018 18:36 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@Airr
Airr / ST3-with-iCloud-Drive.sh
Created April 24, 2017 23:35 — forked from joeshub/ST3-with-iCloud-Drive.sh
Sync your Sublime Text 3 Settings using iCloud Drive on multiple Macs
# Notes
# Using iCloud Drive, you can sync your Sublime Text 3
# plugins and prefs so you can always have the same setup
# Prerequisites
# Make sure both machines have the latest version of OSX 10.10.x with
# Yosemite or higher and iCloud Drive turned on
# Quit ST3
@Airr
Airr / strings `which diskutil` | grep Usage
Created November 2, 2016 04:37
OS X Lion diskutil commands (documented and hidden)
Usage: diskutil coreStorage list
Usage: diskutil coreStorage info[rmation] [-plist]
Usage: diskutil coreStorage convert
Usage: diskutil coreStorage revert
Usage: diskutil coreStorage create lvgName
Usage: diskutil coreStorage delete lvgUUID
Usage: diskutil coreStorage addDisk lvgUUID NewMemberDeviceName
Usage: diskutil coreStorage removeDisk pvUUID
Usage: diskutil coreStorage deleteVolume lvUUID
Usage: diskutil coreStorage resizeVolume lvUUID size
@Airr
Airr / makeSwiftSoup.py
Created October 30, 2016 04:13 — forked from muxuezi/makeSwiftSoup.py
Web crawler of Swift iOS&OSX
# -*- coding: utf-8 -*-
#-------------------------------------------------------------------------
# Name: The-Swift-Programming-Language
# Purpose: Web crawler of Swift, Python is slow-------
#
# Author: muxuezi@gmail.com
#
# Created: 10/27/2014
# Copyright: (c) muxuezi 2014
# Licence: <All licence>
#!/bin/sh
# This is forked to fit MY needs. Please read through and edit at will.
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'