Skip to content

Instantly share code, notes, and snippets.

View ronaldsuwandi's full-sized avatar
🙃

Ronald Suwandi ronaldsuwandi

🙃
View GitHub Profile
@ronaldsuwandi
ronaldsuwandi / docker-compose.yml
Created December 22, 2020 05:17
Docker Compose for Jupyter Lab/Notebook (no token/password)
version: "3.9"
services:
jupyter:
image: jupyter/scipy-notebook
ports:
- "8888:8888"
volumes:
- ./notebooks:/home/jovyan/
environment:
@ronaldsuwandi
ronaldsuwandi / tmux.conf
Last active January 24, 2024 02:58
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 / .zshrc
Last active October 27, 2023 09:58
zshrc custom command (after installing oh my zsh and powershell10k)
plugins=(git zsh-autosuggestions zsh-syntax-highlighting ssh-agent)
alias ls="ls -lFh --color"
function command_not_found_handler() {
echo "zsh: command not found: $1\n"
figlet -froman lol - $1
}
@ronaldsuwandi
ronaldsuwandi / obsidian-minimal-theme-snippet.css
Last active June 27, 2023 06:26
Minor css snippet tweaks for Obsidian Minimal theme (dim non-focused pane, highlight sync icon). Works for Obsidian 1.2.8 (requires Electron v21 - Chrome 105+)
/* better contrast for status-bar */
.status-bar{
color: var(--tx2);
}
/* better contrast for status bar (sync button) */
:is(.theme-light, .theme-dark) :is(.sync-status-icon.mod-success, .sync-status-icon.mod-working) {
color: var(--tx2);
}
@ronaldsuwandi
ronaldsuwandi / .vimrc
Last active September 28, 2022 03:31
.vimrc file to display active window more obvious, enabled syntax highlighting and autoindent
" Reference: https://github.com/amix/vimrc/blob/master/vimrcs/basic.vim
" Enable filetype plugins
filetype plugin on
filetype indent on
" Better status when using window
" Reference: https://superuser.com/a/807010=
highlight StatusLineNC cterm=bold ctermfg=white ctermbg=darkgray
@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 / .gitignore_global
Created April 21, 2021 23:22
.gitignore file
# Created by https://www.toptal.com/developers/gitignore/api/go,python,node,java,intellij+all,sublimetext,visualstudiocode,xcode,maven,gradle
# Edit at https://www.toptal.com/developers/gitignore?templates=go,python,node,java,intellij+all,sublimetext,visualstudiocode,xcode,maven,gradle
### Go ###
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
@ronaldsuwandi
ronaldsuwandi / .gitconfig
Last active April 21, 2021 23:13
My personal gitconfig
[user]
name = Ronald Suwandi
email = ronald@ronaldsuwandi.com
[core]
excludesfile = ~/.gitignore_global
editor = subl -n -w # sublime text
[diff]
tool = default-difftool
@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 / cbz.sh
Last active September 30, 2020 06:52
Create .cbz file from directory
#!/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}"