- Install fnm (Fast Node Manager)
winget install Schniz.fnm
- configure fnm environment
fnm env --use-on-cd | Out-String | Invoke-Expression
- download and install Node.js
fnm use --install-if-missing 22
- Verify the right Node.js version is in the environment
node -v
-> should printv22.9.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get -y install postgresql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Stop all containers | |
docker stop `docker ps -aq ` | |
# Remove all containers | |
docker rm `docker ps -aq ` | |
# Remove all images | |
docker rmi -f `docker images -aq ` |
NewerOlder