Skip to content

Instantly share code, notes, and snippets.

@nemanjam
nemanjam / hn-get-github-links.js
Last active June 6, 2025 14:00
Get all *.github.io and github.com/* links
#!/bin/bash
# ChatGpt broken, do not use
# bash <(wget -qO- https://gist.githubusercontent.com/nemanjam/c41296abb03eb76eb36c3e687f2fee81/raw/nvm-latest-lts.sh)
set -e
# Load nvm
export NVM_DIR="$HOME/.nvm"
# shellcheck source=/dev/null
@nemanjam
nemanjam / update-node.sh
Created August 18, 2026 09:55
Install latest Node.js LTS version and remove older versions. UNTESTED
#!/usr/bin/env bash
# Install latest Node.js LTS version and remove older versions.
# UNTESTED
set -e
# Make sure NVM is available
export NVM_DIR="${NVM_DIR:-$HOME/.nvm}"