Skip to content

Instantly share code, notes, and snippets.

@joshlarsen
joshlarsen / ssh.sh
Created June 14, 2022 01:22
gcloud ssh port forwarding
gcloud compute ssh --ssh-flag="-L 5555:localhost:5432" "instance-1"
@joshlarsen
joshlarsen / tmux.conf
Last active July 4, 2022 16:03
tmux config
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# color terminal
set -g default-terminal "xterm-256color"
# Disable mouse mode
@joshlarsen
joshlarsen / deploy.sh
Last active September 2, 2022 03:11
Basic Jekyll Deploy Action
#!/bin/bash
set -e
DEST="${JEKYLL_DESTINATION:-_site}"
REPO="https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
BRANCH="gh-pages"
BUNDLE_BUILD__SASSC=--disable-march-tune-native
echo "Installing gems..."