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 | |
deb="$(mktemp --suffix='.deb')" | |
curl --output "$deb" 'https://prerelease.keybase.io/keybase_amd64.deb' | |
sudo apt install "$deb" | |
run_keybase -g |
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 | |
# First argument passed to script is pgp key url | |
# Download key to memory with curl or wget (fallback) | |
key="$(curl -sSL "$1" 2>/dev/null || wget --quiet -O - "$1" 2>/dev/null)" | |
# Parse just the fingerprint and email, then separate into their own variables | |
both="$(gpg --show-keys --keyid-format=long --list-options show-only-fpr-mbox=yes <<< "$key")" | |
fingerprint="$(echo "$both" | cut -d' ' -f1)" | |
email="$(echo "$both" | cut -d' ' -f2)" |
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 | |
privdir="$(keybase config get -d -b mountdir)/private/$(keybase config get -d -b current_user)" |
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 | |
# | |
# Source this file with an to change the current prompt color | |
# No arguments for normal (green) and red (root) defaults | |
# Include an integer 0 - 255 after for an x256term color prompt | |
# | |
# You can also paste into .bashrc with $1 replace with an integer or variable | |
# | |
# Examples: | |
# |
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 | |
# | |
# Set a nonstandard resolution (ultrawide) interactively | |
# | |
### | |
# Define default resolution (and monitor ID if multiple monitors) | |
# Will be overridden is passed to script as arguments | |
# | |
# |
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 | |
# This script will perform the same function as `do-release-upgrade` when that tool is giving | |
# an error for an EOL verison of Ubuntu, or some other "cannot upgrade from <current> to <next>". | |
# It does this safely by downloading the release-upgrade meta-pacakge from your target distribution. | |
# | |
# See https://help.ubuntu.com/community/EOLUpgrades/ for more information. | |
# Make sure a release is given as argument | |
if [[ "$1" == "" ]]; then |
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
#KEYBASE_ALLOW_PTRACE= | |
#KEYBASE_ALLOW_ROOT= | |
#KEYBASE_API_DUMP= | |
#KEYBASE_API_TIMEOUT= | |
#KEYBASE_APP_TYPE= | |
#KEYBASE_ATTACHMENT_DISABLE_MULTI= | |
#KEYBASE_ATTACHMENT_HTTP_START= | |
#KEYBASE_AUTO_FORK= | |
#KEYBASE_AUTOSTART= | |
#KEYBASE_AVATAR_SOURCE= |
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 | |
# An nvidia and cuda installer for Ubuntu | |
# Set env DEBUG_MODE=1 (up to 4) for more verbosity | |
if [[ "$DEBUG_MODE" == "" ]] || [ $DEBUG_MODE ! -gt 0 ]; then export DEBUG_MODE=0; fi | |
# Set env ASSUME_YES=-y for less interactivity | |
if [[ "$ASSUME_YES" != "" ]]; then export ASSUME_YES="-y"; else export ASSUME_YES=''; fi | |
## Pretty Print |
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 | |
sudo apt install -y git curl openssl libssl-dev pkg-config # need rust v1.83 or better | |
if [[ "$(which rustc)" == "" ]]; then | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | |
. "$HOME/.cargo/env" # For sh/bash/zsh/ash/dash/pdksh | |
rustc --version | |
if [[ $? -ne 0 ]]; then | |
echo "Unknown problem installed rust (dependency). Exiting." | |
exit 1 |
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
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/$(basename $(curl -Ls -o /dev/null -w %{url_effective} https://github.com/nvm-sh/nvm/releases/latest))/install.sh | bash |