Skip to content

Instantly share code, notes, and snippets.

View bukanspot's full-sized avatar
🧩
I Love Random People

Indra Wahyu bukanspot

🧩
I Love Random People
View GitHub Profile
@bukanspot
bukanspot / arduino.json
Last active April 6, 2024 00:56
vscode configuration for arduino nano
{
"configuration": "cpu=atmega328old",
"board": "arduino:avr:nano",
"port": "COM8",
"sketch": "src\\main\\main.ino",
"output": "src\\main\\build"
}
@bukanspot
bukanspot / .basha_md
Created April 23, 2023 11:34
Create a new directory and jump into it immediately
md () { mkdir "$1" && cd "$1" ; }
@bukanspot
bukanspot / script.sh
Last active March 20, 2024 09:30
Automatically push directory to GitHub using cronjob
#!/usr/bin/env sh
directory=<working-directory>
cd $directory
git pull origin main -q
result=$(git status --porcelain | wc -l)
if [[ $result -eq 0 ]] ; then
exit 0
fi
@bukanspot
bukanspot / .zshrc
Created October 9, 2021 16:12
.zshrc
PROMPT="╭─ 🍔 ${current_dir} ${git_branch}
╰─•$PR_PROMPT "
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
@bukanspot
bukanspot / .bashrc
Last active April 3, 2024 20:50
emoticon customization in bash terminal
# Customize On Here #
emoticon_normal=🍔;
emoticon_error=🐷;
emoticon_notcomplete=🐶;
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples