Skip to content

Instantly share code, notes, and snippets.

@kaubu
kaubu / extract_dir.sh
Created September 27, 2023 17:16
Extract all zip files (made by 7zip) inside of a directory, in parallel
#!/bin/sh
ls *.zip | parallel -j+0 --eta '7z x {} >/dev/null'
@kaubu
kaubu / clean_cache.sh
Last active August 13, 2024 21:46
Cleans cache to get more story space on Arch-based Linux distributions
#!/bin/sh
# Remove old Haskell versions
ghcup gc --cache
# Clean pip cache
pip cache purge
# Remove packages cache
sudo pacman -Scc
yay -Scc
@kaubu
kaubu / vsb_characters.txt
Created August 16, 2023 13:37
VSBattles All Character Page Names for Special:Export
"Jerky" Johnson
"John Doe"
"Sweetie" Bitter Sweet
(´・ω・`)
10,000 Punch Man
1010
112 Ocean Avenue (The Amityville Horror)
170,000 Year Magicicada Nymph
1st Prize
2B (Soul Calibur)
@kaubu
kaubu / env.nu
Created August 8, 2023 12:18
To add Haskell Desktop to your path in Nushell, simply append this to your `env.nu`
$env.PATH = ($env.PATH | append /home/user/.cabal/bin)
$env.PATH = ($env.PATH | append /home/user/.ghcup/bin)
@kaubu
kaubu / codium_backup.sh
Created July 22, 2023 20:35
Commands to backup Codium
# Save your settings.json somewhere
# Get list of extensions
codium --list-extensions > extensions.txt
# Install extensions from list
cat extensions.txt | % { "codium --install-extension $_" }
@kaubu
kaubu / default_tz.sh
Last active July 21, 2023 15:16
Set the default global git tz to the default
git config --global log.date default
# Environmental variable
TZ=UTC
# Windows CMD and Powershell (for now), has to be ran as Administrator
setx TZ UTC /m
# Windows Powershell
$env:TZ = "UTC"
@kaubu
kaubu / settings.json
Created July 4, 2023 03:43
My VSCodium's settings.jsonf ile
{
"editor.rulers": [
79,
],
"editor.wordWrapColumn": 79,
"editor.mouseWheelZoom": true,
"editor.largeFileOptimizations": false,
"editor.unicodeHighlight.nonBasicASCII": false,
"redhat.telemetry.enabled": false,
"[html]": {
@kaubu
kaubu / .Xcompose
Last active December 1, 2023 03:08
Keybindings for WinCompose
# for Emacs: -*- coding: utf-8 -*-
#
# User-defined key sequences for WinCompose
# by Sam Hocevar <[email protected]>
#
# Key sequences have the following form:
#
# <Multi_key> <key>… : "resulting text"
#
Walking (Average Speed)
Walking (Maximum Speed)
Walking Carrying Weight (Average Speed)
Walking Carrying Weight (Maximum Speed)
Horseback Hourly (Average Speed)
Horseback Hourly (Maximum Speed)
Horseback Daily Min (Average Speed)
Horseback Daily Min (Maximum Speed)
Horseback Daily Max (Average Speed)
Horseback Daily Max (Maximum Speed)
We will not stop walking
Though the path may eventually fork.
It turns without stopping
and we never stop either.
But when the time comes,
when we learn fear and look back
…would we call that fate?