Skip to content

Instantly share code, notes, and snippets.

View nuga99's full-sized avatar
🎯
Focusing

Muhammad Ardivan Satrio Nugroho nuga99

🎯
Focusing
View GitHub Profile
@nuga99
nuga99 / summary.txt
Last active January 30, 2020 03:18
Scrum in Organization
########### Summary of SCRUM Guide ############
1. ======== SCRUM Maturity Models =======
--> Optimizing
--> Managed
--> Defined
--> Repeatable
Initial
@nuga99
nuga99 / .zshrc
Created September 22, 2019 17:49
Custom fzf + bat config zsh
...
...
export FZF_DEFAULT_OPTS="--ansi --preview-window 'right:60%' --preview 'bat --color=always --style=header,grid --line-range :300 {}'"
export ZSH=$HOME/.oh-my-zsh
...
plugins=(
git
extract
@nuga99
nuga99 / start.sh
Last active December 18, 2019 06:48
Iptables Configuration for Dockerize App
echo "{
\"iptables\": false
}" > /etc/docker/daemon.json
sed -i -e 's/DEFAULT_FORWARD_POLICY="DROP"/DEFAULT_FORWARD_POLICY="ACCEPT"/g' /etc/default/ufw
ufw reload
iptables -t nat -A POSTROUTING ! -o docker0 -s 172.17.0.0/16 -j MASQUERADE
@nuga99
nuga99 / README.md
Last active August 19, 2019 02:42
Change MAC Address
  1. Turn down the interface related to your PC/Laptop

sudo ip link set dev <interface> down

Example of <interface>: wlp4s0

  1. Change the MAC Address
@nuga99
nuga99 / README.md
Created July 11, 2019 17:49
Find all desire text using grep [Folder and Subfolder]
find . -type f -exec cat {} \; | grep "ui.ac.id"
@nuga99
nuga99 / .zshenv
Last active July 11, 2019 02:28
Pyenv Configure On Fedora 30
export PYENV_ROOT="$HOME"/.pyenv
export PATH="$PYENV_ROOT"/bin:"$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
eval "$(pyenv virtualenv-init -)"
@nuga99
nuga99 / iptables_clear_rules.sh
Last active December 18, 2019 06:50
Config iptables VNC blocked
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
@nuga99
nuga99 / .bashrc
Created June 20, 2019 02:41
Reduce Slow Terminal (NVM install) by create an Alias
#NVM LOADER FOR NODE AND NPM
alias load_nvm='export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"' # This loads nvm
alias node='unalias node npm && load_nvm && node'
alias npm='unalias node npm && load_nvm && npm'
@nuga99
nuga99 / solve.sh
Created June 17, 2019 15:35
[Solved] Ignoring ensurepip failure pip requires ssl/tls error in Debian Based (Ubuntu, Parrot, Debian, etc)
#!/bin/bash -e
# Note: it is a script to solve Ubuntu 18.04 LTS also Parrot OS 4.7
# different version of pythons compiling header confliction problems
#
# The idea is got from @JustAnotherArivist
# From URL: https://github.com/pyenv/pyenv/issues/945
#
# The script used in here is with slightly modifications
# to fit many different SSL header versions