Skip to content

Instantly share code, notes, and snippets.

View n4bb12's full-sized avatar

Abraham Schilling n4bb12

View GitHub Profile
@n4bb12
n4bb12 / CLI.sh
Last active January 27, 2024 15:58
Bash-based CLI template
#
# This makes the above functions work as CLI commands.
#
if [ -n "$1" ] && (type $1 2>&1) | grep -i function > /dev/null; then
$@
else
echo "Unknown command: $1"
commands=$(compgen -A function | tr '\n' ' ')
echo "All commands: $commands"
exit 1
@n4bb12
n4bb12 / msys.sh
Created July 30, 2020 12:29
Turn off POSIX-to-Windows path mangling
# Turn off POSIX-to-Windows path mangling
# https://github.com/git-for-windows/build-extra/blob/master/ReleaseNotes.md#new-features-61
export MSYS_NO_PATHCONV=1
@n4bb12
n4bb12 / Dockerfile
Last active November 2, 2018 07:44
Extend Verdaccio Docker Image
FROM verdaccio/verdaccio
RUN yarn add verdaccio-github-oauth-ui
ADD config.yaml /verdaccio/conf/config.yaml