Skip to content

Instantly share code, notes, and snippets.

@callunaborealis
callunaborealis / README.md
Last active June 25, 2022 16:58
Setting up SS14 (for Damocles)
@callunaborealis
callunaborealis / Regenerating GRUB MKConfig.md
Last active October 3, 2022 15:57
Personal notes to set up Arch Linux
# root@archiso 

fdisk -l # List disk drives

mount /dev/XXXXX /mnt # Mount Linux root
mount /dev/XXXXX /mnt/efi # Mount Windows EFI Boot
mount /dev/XXXXX /mnt/efi # Mount XBOOTLDR (Linux extended boot)
swapon /dev/XXXX # Mount swap drives if any
@callunaborealis
callunaborealis / .bash_profile
Last active May 18, 2022 12:46
Bash Profile (Arch Linux)
alias cp='cp -iv' # Preferred 'cp' implementation
alias mv='mv -iv' # Preferred 'mv' implementation
alias mkdir='mkdir -pv' # Preferred 'mkdir' implementation
alias ll='ls -FGlAhps' # Preferred 'ls' implementation. Refer to http://linuxcommand.org/man_pages/ls1.html to configure further.
# cd() { builtin cd "$@"; ll; } # Always list directory contents upon 'cd'
# Make Bash autocomplete
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
@callunaborealis
callunaborealis / node-env.md
Created November 4, 2021 08:32
Setting up node environment for Windows
  • Open Powershell and run as an administrator.
  • Install Chocolatey.
    • If you want to install Chocolately on another folder, run the below command first (evaluate carefully):
Set-Variable -Name "ChocolateyInstall" -Value (Read-Host -Prompt "Install location")
New-Item $ChocolateyInstall -Type Directory -Force
[Environment]::SetEnvironmentVariable("ChocolateyInstall", $ChocolateyInstall, "User")
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))

Source: https://superuser.com/questions/693466/how-do-i-install-chocolatey-in-a-different-location-than-standard-say-even-on

@callunaborealis
callunaborealis / witcher-attack-calc.js
Last active August 31, 2021 13:52
Witcher Attack Calculator Foundry Macro
const tokens =
canvas && canvas.tokens && canvas.tokens.controlled
? canvas.tokens.controlled
: [];
if (!tokens[0] || !tokens[0].actor) {
ui.notifications.info("Select a token on the map first.");
return;
}
@callunaborealis
callunaborealis / foundryvtt_README.md
Last active June 26, 2021 09:46
Setting up FoundryVTT on Ubuntu 20.04.2.0 LTS (Focal Fossa)

Setting up FoundryVTT on Ubuntu 20.04.2.0 LTS (Focal Fossa)

  • Create new Ubuntu 20 instance for the Foundry server.
  • sudo apt install unzip
  • Install FoundryVTT.
  • Add start.sh script
# Start running the server (sudo needed to use 443 and 80)
cd foundryvtt && sudo nohup node resources/app/main.js --dataPath=$HOME/foundrydata &