Skip to content

Instantly share code, notes, and snippets.

View lackdaz's full-sized avatar

Seth Loh lackdaz

View GitHub Profile
@lackdaz
lackdaz / arm-node-yarn-install.sh
Created April 20, 2020 18:51
Example of remote curl bash script
curl -s https://gist.githubusercontent.com/lackdaz/15f929aeb0fee44369af1d96635769b8/raw/a23a0c604f1236cb1ae709da9930dc0922b6cdb0/install-node-yarn-arm.sh | bash /dev/stdin param1 param2
@lackdaz
lackdaz / better-git.sh
Last active December 9, 2025 09:53
An even better git lg
git config --global alias.tree "log --graph --all --pretty=format:'%C(magenta)%h%C(auto)%d %s %C(green)(%cr) %C(bold blue)%an%C(white)/%C(cyan)%cn'"
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@lackdaz
lackdaz / install-node-yarn-arm.sh
Last active January 9, 2022 13:44
Installs node and yarn on an arm64 (armv8) OS (Jetson Nano)
#!/bin/bash
set -e
## Check for versions compiled with ARM at http://nodejs.org/dist/
## Inspired by http://oskarhane.com/raspberry-pi-install-node-js-and-npm/
## Fill in the Node Version here:
##########################################################################
NODE_VERSION="v12.16.1"
##########################################################################
@lackdaz
lackdaz / alias_header.txt
Last active April 8, 2020 15:48
Edit/reload/list aliases conveniently
alias alias-ls='cat ~/.aliases | grep -i "^alias" | grep -v "#{3}" | awk -F"[ =]" '\''{print $2 "\t" substr($0, index($0, "#") + 1)}'\''' # List Aliases
alias alias-edit='vi ~/.aliases' # Edit aliases
alias alias-reload='source ~/.aliases' # Reload aliases after editing
@lackdaz
lackdaz / list_aliases.txt
Last active October 5, 2018 19:01
an alias to parse your .aliases file (or .bashrc, .profile) for aliases and their documentation
alias alias-ls='cat ~/.aliases | grep -i "^alias" | grep -v "#{3}" | awk -F"[ =]" '\''{print $2 "\t" substr($0, index($0, "#") + 1)}'\''' # List Aliases