Skip to content

Instantly share code, notes, and snippets.

View pvspain's full-sized avatar

Paul Spain pvspain

  • Melbourne, Australia
View GitHub Profile
@pvspain
pvspain / build-monorepo.sh
Last active March 3, 2024 09:39
build-monorepo
#! /usr/bin/env bash
# This script follows the construction of a monorepo using the facilities
# within npm. The reference, below, is a blog article, walking through
# the incremental process.
# https://daveiscoding.com/nodejs-typescript-monorepo-via-npm-workspaces
# This script deviates from the blog, where we use ES2022 and
# ECMAScript modules, and the package source code is located in the 'src'
# folder from the get-go.
@pvspain
pvspain / git-triangular-workflow.md
Last active January 16, 2024 01:33
git-triangular-workflow

Git "triangular" workflow

For hacking on open source projects (with a canonical upstream repository).

  • [Reference][1]

![Triangular workflow diagram][2]

Index

@pvspain
pvspain / howto-process-a-pull-request-locally.md
Last active November 7, 2023 02:20
howto-process-a-pull-request-locally
@pvspain
pvspain / bitbucket-443-ssh-config
Last active August 10, 2023 23:55
SSH config entry to connect to ssh-based Bitbucket Git repo URLs, when only port 443 (HTTPS) connections are available.
# Typically located at ~/.ssh/config
Host bitbucket.org
HostName altssh.bitbucket.org
Port 443
User git
IdentityFile ~/.ssh/id_ed25519
IdentitiesOnly yes
@pvspain
pvspain / new-ssh-user-keys.sh
Last active September 18, 2020 08:03
New ssh user keys
KEY_PATH="${HOME}/.ssh"
# No error if directory exists
mkdir --parents ${KEY_PATH}
pushd ${KEY_PATH} > /dev/null
# Create/overwrite RSA key pair (4096 bits)
echo -e 'y\n' | ssh-keygen -b 4096 -t rsa -N "" -f id_rsa > /dev/null
@pvspain
pvspain / powershell-symbolic-links.ps1
Last active June 23, 2021 22:09
Powershell filesystem symbolic links
@pvspain
pvspain / Microsoft.PowerShell_profile.ps1
Last active September 21, 2020 23:20
powershell profile incorporating git status
#! /usr/bin/env pwsh
function Prompt {
$promptColor,
$infoColor,
$warnColor,
$errorColor,
$defaultColor =
'Cyan',