Skip to content

Instantly share code, notes, and snippets.

View Kiritow's full-sized avatar
⚔️
Fighting in Sword Art Online

Kirito Kiritow

⚔️
Fighting in Sword Art Online
View GitHub Profile
@Kiritow
Kiritow / oh-my-zsh-guide.md
Created May 10, 2024 13:47
oh-my-zsh fresh install

Install omz and dependencies

#!/bin/bash
sudo apt update && sudo apt install -y zsh curl git
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Install Plugins

@Kiritow
Kiritow / oni-mod-list-syncer.js
Last active June 26, 2024 17:50
oni-mod-list-syncer
const { readFileSync, writeFileSync } = require("fs");
const { parseSaveGame } = require('oni-save-parser');
const modsFileContent = JSON.parse(readFileSync('mods.json', {
encoding: 'utf-8',
}))
console.log('parsing game... (this might take a while)')
const gameSave = parseSaveGame(readFileSync('QueencardWorld5.sav').buffer, {
versionStrictness: 'none'
})
#!/bin/bash
set -euxo pipefail
FRPC_TXT=$(cat <<-END
[Unit]
Description=frp client service for %i
After=network.target
[Service]
Type=simple
@Kiritow
Kiritow / mdisk.sh
Created December 5, 2020 09:21
WSL mount ramdisk, usb with DrvFs
#!/bin/sh
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <Disk> <MountPoint>\n\nEXAMPLE\n$0 H:\\\\ /mnt/h"
exit 1
fi
echo "mount -t drvfs $1 $2 -o metadata,uid=1000,gid=1000"
mount -t drvfs $1 $2 -o metadata,uid=1000,gid=1000
echo "mount returns $?"