Skip to content

Instantly share code, notes, and snippets.

View willnode's full-sized avatar

Wildan M willnode

View GitHub Profile
@willnode
willnode / redox_m1.md
Last active May 31, 2025 22:07
Build Redox OS in MacOS Apple Silicon

This is a way to compile Redox OS in MacOS Apple Silicon using Podman.

WIP -- This gist is being updated to match with the book but specifics to MacOS Apple Silicon for top DX. For native bootstrap follow another gist (also WIP)

Clone

cd ~/Document
git clone https://gitlab.redox-os.org/redox-os/redox
cd redox
@willnode
willnode / 8to9.md
Last active April 8, 2025 22:13
Upgrade from Rocky Linux 8 to 9

Main article: https://computingforgeeks.com/upgrade-to-rocky-linux-9-from-rocky-linux-8/

There are some adjustment that I need to aware with. For instance I have to disable many old modules also upgrading my REMI and postgres data.

Using PHP from builtin rocky linux repo turns out have a devastating consequences... It's much better to move away from it and use remi repo.

dnf update -y 
REPO_URL="https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r"
@willnode
willnode / docker.md
Last active April 14, 2023 03:52
Installing Docker in Mac with sudo manually
sudo nano /Library/LaunchDaemons/com.docker.vmnetd.plist
<?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>Label</key>
@willnode
willnode / fix-win-security.ps1
Last active September 30, 2021 04:40
Fix Windows Security Missing in Windows 11
$manifest = (Get-AppxPackage Microsoft.SecHealthUI -AllUsers).InstallLocation + '\AppxManifest.xml';
Add-AppxPackage -DisableDevelopmentMode -Register $manifest;
@willnode
willnode / unicode-to-latex.json
Created September 19, 2021 18:35
Unicode to latex referencing https://github.com/JuliaLang/julia/blob/846492960fdbc9e3806e8bb8336cad4d559fa733/stdlib/REPL/src/latex_symbols.jl but with all unicode.xml combined and all possible latex included.
{
" ": ["\\space"],
"#": ["\\#"],
"$": ["\\textdollar"],
"%": ["\\%"],
"&": ["\\&"],
"'": ["\\textquotesingle"],
"*": ["\\ast"],
"‚": [","],
"−": ["-"],
@willnode
willnode / indonesian_geocodes.sql
Created September 19, 2021 12:27
Indonesian Geographical codes (until the village). Source unknown (I forgotten) probably from 2018 data AFAIK.
This file has been truncated, but you can view the full file.
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 10.4.13-MariaDB - mariadb.org binary distribution
-- Server OS: Win64
-- HeidiSQL Version: 11.1.0.6116
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
@willnode
willnode / 0-strapi-auto-permissions.md
Last active September 13, 2021 08:04
Strapi automatic permission sets

Strapi permissions and user roles are set using database, which will make your permission sets inconsistent.

Here make it automatic. Put these files in config/functions/

@willnode
willnode / update-pip3.8.sh
Created August 6, 2021 04:23
Update and Fix Python PIP on Linux Centos
pip --version
pip install -U pip
dnf reinstall python3.8 -y
alternatives --install /usr/bin/pip pip /usr/local/bin/pip3.8 1
alternatives --set pip /usr/local/bin/pip3.8
pip --version
@willnode
willnode / tex_glue_box
Last active August 2, 2021 01:31
TeX vs TEXDraw Glue Box Grid
Ord Op Bin Rel Open Close Punct Inner
Ord 0 1 2 3 0 0 0 1
Op 1 1 * 3 0 0 0 1
Bin 2 2 * * 2 * * 2
Rel 3 3 * 0 3 0 0 3
Open 0 0 * 0 0 0 0 0
Close 0 1 2 3 0 0 0 1
Punct 1 1 * 1 1 1 1 1
Inner 1 1 2 3 1 0 1 1
@willnode
willnode / snapshotall.ps1
Created April 16, 2021 03:33
Remove All Previous Snapshot then generate new ones in Digital Ocean
$sw = [Diagnostics.Stopwatch]::StartNew()
# Drop all existing snapshot
$snapshots = doctl compute snapshot list --format ID --no-header
foreach ($line in $snapshots) {
doctl compute snapshot delete $line -f
}
# List all droplets and create snapshot
$droplets = doctl compute droplet list --format ID,Name --no-header
foreach($line in $droplets) {