Skip to content

Instantly share code, notes, and snippets.

View ronaldsuwandi's full-sized avatar
🙃

Ronald Suwandi ronaldsuwandi

🙃
View GitHub Profile
@ronaldsuwandi
ronaldsuwandi / References
Last active June 8, 2020 03:19
Various Postgres Stats SQL Queries
https://www.datadoghq.com/blog/postgresql-monitoring/
https://www.datadoghq.com/blog/postgresql-monitoring-tools/
@ronaldsuwandi
ronaldsuwandi / .bash_prompt
Last active November 12, 2018 07:44
Personal bash prompt
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
@ronaldsuwandi
ronaldsuwandi / exercise-equivalent-binary-trees.go
Last active June 8, 2017 02:40
Go Tour: Web Crawler (channel approach) + Equivalent Binary Trees
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
@ronaldsuwandi
ronaldsuwandi / .bashrc
Created April 1, 2016 09:49
Prompt for bashrc
# because color + coffee is awesome
PS1=$'\e[39m\u@\h:\e[32m\w\e[39m \u2615 \uFE0F '

Source

OS X

Configuration ~/Library/Preferences/<PRODUCT><VERSION>

Caches ~/Library/Caches/<PRODUCT><VERSION>