Done with Fedora 35 i3 spin on X230 laptop. Kind of a build log.
BTRFS with subvolumes, using Custom. Encryption with LUKS2 enabled.
- /
- /home
| { | |
| "name": "Iris Rev. 4", | |
| "vendorProductId": 3406840406, | |
| "macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], | |
| "layers": [ | |
| [ | |
| "MT(MOD_LALT,KC_ESC)", | |
| "KC_1", | |
| "KC_2", | |
| "KC_3", |
| (setq inhibit-startup-screen t) | |
| (menu-bar-mode 0) | |
| (tool-bar-mode 0) | |
| (scroll-bar-mode 0) | |
| (setq ido-enable-prefix t) | |
| (ido-mode 1) | |
| ;; Line numbers + its colour | |
| ;;(set-face-foreground 'line-number-current-line "#FFFF00") |
| // ==UserScript== | |
| // @name Copr RPM Spec Quickview | |
| // @namespace nick@windblume | |
| // @match https://copr.fedorainfracloud.org/coprs/*/*/ | |
| // @grant none | |
| // @version 0.1.0 | |
| // @author Nicholas Tay <[email protected]> | |
| // @description Quickly jump to the spec file for COPR packages (on the project's package page) | |
| // @homepage https://gist.github.com/nicholastay/7a8d7883bb7e30ac36da344746b6126a | |
| // @license Zlib |
| segment .text | |
| global _start | |
| _start: | |
| mov rax, 60 | |
| mov rdi, 0 | |
| syscall |
| // AoC 2021 for fun in JS (real implementation in rust on my git repo) | |
| // Probably not going to do this past first few days | |
| // -- Day 1 -- | |
| // Part 1 | |
| input.split('\n').map(Number).map((x, i, arr) => x > arr[i-1]).filter(x => x).length | |
| // Part 2 | |
| input.split('\n').map(Number).map((x, i, arr) => arr[i+1] + arr[i-1] > arr[i-1] + arr[i-2]).filter(x => x).length | |
| // -- Day 2 -- |
| astyle \ | |
| --mode=c \ | |
| --style=linux \ | |
| --indent=tab=4 \ | |
| --break-one-line-headers \ | |
| --keep-one-line-blocks \ | |
| --align-pointer=name \ | |
| --pad-comma \ | |
| --pad-header \ | |
| --unpad-paren \ |
| sed -i 's/^mirrorlist=/#mirrorlist=/g;s/^#baseurl.*\/\(.*\)\/$basearch.*/baseurl=https:\/\/mirror.aarnet.edu.au\/$contentdir\/$releasever\/\1\/$basearch\/os\/\nbaseurl=https:\/\/rockylinux.mirror.digitalpacific.com.au\/$releasever\/\1\/$basearch\/os\//g' /etc/yum.repos.d/Rocky-*.repo |
Just some random programs in porth because I saw Tsoding's videos/stream and I thought it looked cool.
Licence: MIT
| # Place in `.bashrc` or similar for easy access! | |
| # (This script was made because I didn't really trust running a random .ps1 script every time, and it's hard | |
| # for me to audit those. This is much simpler and doesn't involve executing a script off a URL.) | |
| # | |
| # Last updated for 4.1 updated wish page | |
| genshinlog() { | |
| GENSHIN_INSTALL_DIR="/c/Games/Genshin Impact" | |
| LATEST_CACHE="$(find "$GENSHIN_INSTALL_DIR"'/Genshin Impact game/GenshinImpact_Data/webCaches' -maxdepth 1 -type d -name '2.*' | sort | tail -1)" | |
| grep -aoP 'https://hk4e-api-os.hoyoverse.com/.+?/getGachaLog.+?&game_biz=hk4e_global' "$LATEST_CACHE/Cache/Cache_Data/data_2" | tail -1 | tee /dev/tty | clip |