Function | Shortcut |
---|---|
New Tab | ⌘ + T |
Close Tab or Window | ⌘ + W (same as many mac apps) |
Go to Tab | ⌘ + Number Key (ie: ⌘2 is 2nd tab) |
Go to Split Pane by Direction | ⌘ + Option + Arrow Key |
Cycle iTerm Windows | ⌘ + backtick (true of all mac apps and works with desktops/mission control) |
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
Host * | |
TCPKeepAlive yes | |
ServerAliveInterval 30 | |
ServerAliveCountMax 6 | |
Compression yes | |
ControlMaster auto | |
ControlPath ~/.ssh/cm_socket/%r@%h:%p | |
ControlPersist 1h |
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
#!/usr/bin/env bash | |
# https://betterdev.blog/minimal-safe-bash-script-template/ | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF |
I hereby claim:
- I am eubide on github.
- I am eubide (https://keybase.io/eubide) on keybase.
- I have a public key ASDXZz39MqttS4q2J7M0LQjPfTUWCR9Y4ndNWZNa6HQpYQo
To claim this, I am signing this object:
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
from unidecode import unidecode | |
import re | |
import sys | |
import inflection | |
import numpy as np | |
import math | |
from collections import defaultdict | |
# Using cosine_similarity, own faster implementation, inspired by | |
# https://towardsdatascience.com/calculating-string-similarity-in-python-276e18a7d33a |
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
-- .psqlrc | |
\set QUIET ON | |
\set PROMPT1 '(%n@%m:%>) %`date +%H:%M:%S` [%/] \n%x%# ' | |
\set PROMPT2 '> ' | |
\set PAGER OFF | |
\set HISTFILE ~/.psql_history- :HOST - :USER -:DBNAME | |
\set HISTSIZE 2000 | |
\set ECHO_HIDDEN OFF |