Skip to content

Instantly share code, notes, and snippets.

@iliion
iliion / install_zellij
Created January 26, 2024 15:33
Install [Zellij](https://zellij.dev/) multiplexer
#!/bin/env bash
if [ "$EUID" -ne 0 ]; then
echo "Installing system-wide apps requires sudo privileges. Do you have any?"
exit 1
fi
# Create a temporary directory
temp_dir=$(mktemp -d)
@iliion
iliion / install_node_js_windows.md
Last active October 28, 2024 09:53
Install Node.js v22.9.0 on Windows using fnm

Install NODE JS via Windows Powershell

  1. Install fnm (Fast Node Manager) winget install Schniz.fnm
  2. configure fnm environment fnm env --use-on-cd | Out-String | Invoke-Expression
  3. download and install Node.js fnm use --install-if-missing 22
  4. Verify the right Node.js version is in the environment node -v -> should print v22.9.0
@iliion
iliion / reproject.sh
Created November 13, 2024 18:53
Reproject geotiffs using gdalwarp
#!/bin/bash
set -x
set -e
set -u
set -o pipefail
# Check if the correct number of arguments is provided
if [ "$#" -ne 3 ]; then
echo "Usage: $0 <input_folder> <output_folder> <projection>"