Skip to content

Instantly share code, notes, and snippets.

View ronaldsuwandi's full-sized avatar
🙃

Ronald Suwandi ronaldsuwandi

🙃
View GitHub Profile
@ronaldsuwandi
ronaldsuwandi / settings
Last active April 11, 2021 03:54
IntelliJ IDEA JVM Options
-Xms2g
-Xmx2g
-XX:ReservedCodeCacheSize=1024m
-XX:+UseG1GC
-XX:+UseCompressedOops
-Dsun.io.useCanonCaches=false
@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>

@ronaldsuwandi
ronaldsuwandi / tmux.conf
Last active September 10, 2024 09:53
Personal tmux.conf (updated for 3.2)
###########
# 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
@ronaldsuwandi
ronaldsuwandi / config.fish
Last active July 30, 2021 07:54
My personal fish shell config for OS X. Supports git branch (fast git checks), virtualenv (if installed) and Kubernetes current context
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
@ronaldsuwandi
ronaldsuwandi / .gitconfig
Last active April 21, 2021 23:13
My personal gitconfig
[user]
name = Ronald Suwandi
email = [email protected]
[core]
excludesfile = ~/.gitignore_global
editor = subl -n -w # sublime text
[diff]
tool = default-difftool