Skip to content

Instantly share code, notes, and snippets.

@undergroundwires
undergroundwires / set-github-user.sh
Last active May 11, 2021 12:41
set-github-user
git config --local user.name "undergroundwires"
git config --local user.email "git@undergroundwires.dev"
# git config --local user.email "undergroundwires@users.noreply.github.com"
git remote set-url origin "ssh://git@github.com/USERNAME/REPOSITORY.git"
# Verify new remote URL
git remote -v
#!/usr/bin/env bash
# We parse parameter to ensure middleman.sh can be called using:
# 1. Double quoted parameter value chains
# E.g. "--parameter value" "--parameter2 value"
# Designed for GitHub actions as action.yml args is sent this way.
# Parameter value chains are parsed to send in unquoted format
# 2. Parameter value chain
# This is the normal usage, parameters are sent through as they are
# E.g. --parameter value --parameter2 value
@undergroundwires
undergroundwires / update-all-npm-dependencies.sh
Created October 22, 2020 16:03
update all npm depedendencies
npm i -g npm-check-updates
ncu -u
npm install