This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| EXTENSIONSDIR="/usr/lib/firefox-addons/extensions" | |
| TMP="/tmp/firefox-extension-install-temp" | |
| [ x"$1" == "x" ] || [ ! -f $1 ] && echo "Specify valid .xpi file as argument." && exit 1 | |
| sudo rm -rf $TMP 2>/dev/null | |
| mkdir -p "$TMP" | |
| trap "sudo rm -rf $TMP 2>/dev/null" 1 2 3 15 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| shell=$(basename $SHELL) | |
| # Exit if we don't support your shell | |
| if [ $shell != "zsh" -a $shell != "bash" ]; then | |
| printf "This script only works if you're using zsh or bash\n" | |
| exit 1 | |
| fi | |
| # Crash if the asdf or direnv commands already exist, or if ~/.asdf, ~/.envrc or ~/.tool-versions already exist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Format | |
| Host alias | |
| HostName myserver.com | |
| User username | |
| IdentityFile ~/.ssh/mykey | |
| # Usage: `ssh alias` | |
| # Alternative: `ssh -i ~/.ssh/mykey [email protected]` | |
| Host myrepos | |
| HostName github.com |