See all available environment variables: https://docs.aws.amazon.com/cli/latest/userguide/cli-environment.html
export AWS_DEFAULT_REGION=us-west-2
" My .vimrc for Vim, MacVim and Gvim/win32 | |
" 0. VUNDLE SETUP | |
" 1. FILE HANDLING | |
" 2. LOOK & FEEL | |
" 3. MAPPINGS | |
" 4. NETRW CFG | |
" 5. MACVIM | |
" 6. GVIM/WIN32 | |
" 7. SPELL & DICT |
#!/bin/bash | |
# | |
# https://support.1password.com/command-line-getting-started/ | |
# | |
# Full docs: https://support.1password.com/command-line/ | |
# | |
# gpg --receive-keys 3FEF9748469ADBE15DA7CA80AC2D62742012EA22 | |
# gpg --verify op.sig op | |
# |
See all available environment variables: https://docs.aws.amazon.com/cli/latest/userguide/cli-environment.html
export AWS_DEFAULT_REGION=us-west-2
-- AppleScript to copy a Safenet MobilePASS OTP. | |
-- | |
-- 'osascript ~/path/to/token.applescript' | |
-- Set 'passwd' to your MobilePASS passcode. | |
set passwd to "0000" | |
-- Start MobilePASS | |
tell application "MobilePASS" | |
activate | |
delay 1 |
#!/usr/bin/env bash | |
# Create new folder in ~/.vim/pack that contains a start folder and cd into it. | |
# | |
# Arguments: | |
# package_group, a string folder name to create and change into. | |
# | |
# Examples: | |
# set_group syntax-highlighting | |
# | |
function set_group () { |
#!/bin/sh | |
#File: clonevm.sh | |
#Version: 2020.09.23.A | |
#Author: www.grangerx.com | |
#Set debug = true to enable debug echoes. | |
debug=false | |
#For format: accepts same, zeroedthick, eagerzeroedthick, thin, rdm:dev, rdmp:dev, or 2gbsparse. | |
format="thin" |
Amethyst is a tiling window manager for MacOS. This cheat sheet is to support my attempt to remember all of the keyboard shortcuts that are useful for me. See Amethyst preferences for the full list, or to record/remap your own.
Shortcuts | Description |
---|---|
Option + Shift + Space | Cycle layout forward |
#!/bin/bash | |
echo "This will generate a new kube config for accessing your RKE-created kubernetes cluster. This script MUST be run on a Kubernetes node." | |
echo "Please enter the IP of one of your control plane hosts, followed by [ENTER]:" | |
read cphost | |
openssl genrsa -out kube-admin.key 2048 | |
openssl req -new -sha256 -key kube-admin.key -subj "/O=system:masters/CN=kube-admin" -out kube-admin.csr | |
sudo openssl x509 -req -in kube-admin.csr -CA /etc/kubernetes/ssl/kube-ca.pem -CAcreateserial -CAkey /etc/kubernetes/ssl/kube-ca-key.pem -out kube-admin.crt -days 365 -sha256 | |
sudo rm -f /etc/kubernetes/ssl/kube-ca.srl |