Skip to content

Instantly share code, notes, and snippets.

View arag0re's full-sized avatar
🍫
i may be slow to respond

arag0re.eth arag0re

🍫
i may be slow to respond
View GitHub Profile
@Grayda
Grayda / WIN11-INSTALL.txt
Last active April 19, 2025 08:50
Autopilot / Intune onboarding BadKB scripts
REM This script automates the Windows 11 installation from a USB stick.
REM You'll probably need to adjust the delays to match your hardware,
REM because each machine takes a different amount of time to load various screens
DEFAULTDELAY 300
REM Move to the locale selector and select English (Australia), then press Next and then Install Now
TAB
STRING English (Australia)
ALT N
@almas
almas / ubuntu-on-mbp-a1707.md
Last active April 15, 2025 10:08 — forked from rob-hills/ubuntu-22.04-mbp-a1707.md
Ubuntu LTS on MacBook Pro 2017 (A1707, MBP 14,3)(T1 chip)

Summary

Notes to install Ubuntu 22.04.4LTS (Upgraded to 24.04LTS) up and running on my 2017 MacBook Pro 15 inch (MacBookPro14,3).

Now everything except the TouchID (Fingerprint), Suspend and Hibernation seems to work for me.

About Ubuntu 24.04LTS: I tried to install Ubuntu 24.04 and didn't have success. There was a crash issue during installation. https://bugs.launchpad.net/subiquity/+bug/2065310 But I installed 22.04 and upgraded it to the 24.04LTS later and it working same as 22.04.4.

Useful References (not mentioned in the text)

@arag0re
arag0re / Microsoft.PowerShell_profile.ps1
Created January 2, 2022 19:45
Microsoft.PowerShell_profile.ps1
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost') {
Import-Module PSReadLine
}
Import-Module -Name Terminal-Icons
@plembo
plembo / ghpwithnamecheap.md
Last active April 8, 2025 03:29
GitHub Pages with Namecheap custom domain

Using GitHub Pages with a custom domain: Namecheap Edition

As often happens, I found the official documentation and forum answers to be "close, but no cigar", and so had to experiment a little to get things working.

The main problem for me was a lack of concrete configuration examples. That's not entirely GitHub's fault: having migrated from Google Domains to Namecheap in the middle of this project, I was once again reminded of how many different ways there are to do things in the name service universe [1].

Although you'd think the simplest setup would be to merely configure for the subdomain case (https://www.example.com), in my experience using the apex domain (https://example.com) instead resulted in fewer complications.

Procedure

So here's my recipe for using a custom domain with GitHub pages where Namecheap is the DNS provider:

@taoyuan
taoyuan / generate_self_signed_certification.md
Last active April 27, 2025 09:04
Generation of a Self Signed Certificate

Generation of a Self Signed Certificate

Generation of a self-signed SSL certificate involves a simple 3-step procedure:

STEP 1: Create the server private key

openssl genrsa -out cert.key 2048

STEP 2: Create the certificate signing request (CSR)

openssl req -new -key cert.key -out cert.csr
@arag0re
arag0re / create_iso_catalina.sh
Last active May 20, 2023 22:39
create-iso-from-dmg
#!/usr/bin/env bash
# Bail at first Catalina ISO creation error
set -e
hdiutil create -o ~/Downloads/Catalina.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach ~/Downloads/Catalina.cdr.dmg -noverify -mountpoint /Volumes/install_build
sudo ~/Downloads/"Install macOS Catalina".app/Contents/Resources/createinstallmedia --volume /Volumes/install_build --nointeraction
hdiutil detach "/Volumes/Install macOS Catalina"
hdiutil convert ~/Downloads/Catalina.cdr.dmg -format UDTO -o ~/Downloads/Catalina.iso
mv ~/Downloads/Catalina.iso.cdr /Volumes/"USB_STICK_NAME"/Catalina.iso
rm ~/Downloads/Catalina.cdr.dmg
@arag0re
arag0re / razer_off.sh
Last active August 21, 2021 15:26
toggle-razer-on-off
echo "Razer Synapse Off"
sleep 3
sudo sed -i -e 's/<false/<true/' /Library/LaunchAgents/com.razer.rzupdater.plist
echo "Now rebooting!"
sleep 3
sudo reboot
@StevenACoffman
StevenACoffman / Homoglyphs.md
Last active April 26, 2025 07:11
Unicode Look-alikes

Unicode Character Look-Alikes

Original Letter Look-Alike(s)
a а ạ ą ä à á ą
c с ƈ ċ
d ԁ ɗ
e е ẹ ė é è
g ġ
h һ
@aslafy-z
aslafy-z / docker-compose-systemd-unit.md
Last active February 23, 2024 15:59 — forked from mosquito/README.md
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/[email protected]

[Unit]
Description=%i service with docker compose
# Requires=docker.service
# After=docker.service
@OothecaPickle
OothecaPickle / gist:408e292e323b5a72019d502709d6f4cd
Last active February 14, 2025 02:55
Windows 7 All Online/Offline [Retail-MAK] Activation Keys
10: https://jike.info/topic/2631/win-10-rtm-professional-retail-oem-mak/1889?lang=en-US&page=95
9GHCK-43HBY-V9KPP-F3MHQ-33JR9
https://jike.info/post/29684
https://cony.fun/blog/38.html
https://jike.info/topic/5078/windows-7-sp1-ultimate-retail/44?lang=en-US&page=3
Windows 7 All Online/Offline [Retail-MAK] Activation Keys
=================================================================================
. Run "Command Prompt" as Administrator
. slmgr.vbs -ipk Product Key