OS X
Configuration
~/Library/Preferences/<PRODUCT><VERSION>
Caches
~/Library/Caches/<PRODUCT><VERSION>
[user] | |
name = Ronald Suwandi | |
email = [email protected] | |
[core] | |
excludesfile = ~/.gitignore_global | |
editor = subl -n -w # sublime text | |
[diff] | |
tool = default-difftool |
function ls --description 'List contents of directory' | |
command ls -lFG $argv | |
end | |
function subl --description 'Launches sublime text in a new window' | |
command subl -n $argv | |
end | |
function code --description 'Launches visual code studio in a new window' | |
command code -n $argv |
########### | |
# general # | |
########### | |
# Replace C-b prefix with Alt+Space (so it won't clash with vim) | |
unbind C-b | |
set-option -g prefix M-Space | |
set-window-option -g mode-keys vi | |
# set-option -g default-shell /usr/local/bin/fish |
OS X
Configuration
~/Library/Preferences/<PRODUCT><VERSION>
Caches
~/Library/Caches/<PRODUCT><VERSION>
# because color + coffee is awesome | |
PS1=$'\e[39m\u@\h:\e[32m\w\e[39m \u2615 \uFE0F ' |
package main | |
import "fmt" | |
import "golang.org/x/tour/tree" | |
func WalkRecursive(t *tree.Tree, ch chan int) { | |
if t.Left != nil { | |
WalkRecursive(t.Left, ch) | |
} | |
ch <- t.Value |
-Xms2g | |
-Xmx2g | |
-XX:ReservedCodeCacheSize=1024m | |
-XX:+UseG1GC | |
-XX:+UseCompressedOops | |
-Dsun.io.useCanonCaches=false |
alias ls='ls -FGH' | |
alias ll='ls -l' | |
export JAVA_HOME=/Libary/Java/Home | |
kubecontext() | |
{ | |
if [[ -e ~/.kube/config && $(type -P kubectl 2>/dev/null) ]]; then | |
echo -n " [$(kubectl config current-context)]" | |
else |
https://www.datadoghq.com/blog/postgresql-monitoring/ | |
https://www.datadoghq.com/blog/postgresql-monitoring-tools/ |
#!/bin/bash | |
if [ -z "${prefix}" ]; then | |
echo "warn: prefix is not set" | |
fi | |
for f in *; do | |
if [ -d "${f}" ]; then | |
echo "Zipping ${f} to ${prefix}${f}.cbz" | |
zip -r "${prefix}${f}.cbz" "${f}" |