Skip to content

Instantly share code, notes, and snippets.

View AchmadGozali8's full-sized avatar
πŸ‡
Make it simple

Ichal AchmadGozali8

πŸ‡
Make it simple
View GitHub Profile
# Rename the local branch to the new name
git branch -m <old_name> <new_name>
# Delete the old branch on remote - where <remote> is, for example, origin
git push <remote> --delete <old_name>
# Or shorter way to delete remote branch [:]
git push <remote> :<old_name>
# Prevent git from using the old name when pushing in the next step.
@AchmadGozali8
AchmadGozali8 / Python or pip process are killed in virtualenv (Apple M1 chip).txt
Last active August 9, 2021 07:22
Python/pip process are killed in virtualenv (Apple M1 chip)
This issue happen cos of the different architecture between "x86_64" and "arm 64", there is 2 way you can solve the issue.
First:
https://stackoverflow.com/questions/66860350/python-pip-process-are-killed-in-virtualenv-apple-m1-chip
Second:
https://medium.com/swlh/run-x86-terminal-apps-like-homebrew-on-your-new-m1-mac-73bdc9b0f343
- Copy file
1. docker cp file.txt <ubuntuContainerID>:/
@AchmadGozali8
AchmadGozali8 / Remove merged branch
Last active September 26, 2020 12:50
Sometimes we are working on a lot of different branch, so we need to cleaned it up if that branch was merged
git branch --merged | egrep -v "(^\*|master|dev|develop)" | xargs git branch -d
@AchmadGozali8
AchmadGozali8 / 1.gif
Last active August 16, 2019 19:18
first
1.gif
@AchmadGozali8
AchmadGozali8 / 2.gif
Last active August 16, 2019 18:59
second
2.gif
@AchmadGozali8
AchmadGozali8 / Adjust screen split pane size in termux
Created April 16, 2019 04:25
Adjusct screent split pane size in termux (Mac)
Mackbook
- You can use Ctrl+B, then Esc + (arrow key)
@AchmadGozali8
AchmadGozali8 / 00_etc-hosts.md
Created March 28, 2019 18:33 — forked from mul14/00_etc-hosts.md
/etc/hosts for Vimeo, Netflix, Reddit, and Imgur.

Unblock Vimeo, Netflix, Reddit, dan Imgur

Saya support Internet Positif untuk memblokir porn, situs judi, dan hal-hal ilegal lainnya. Tapi pemerintah dan ISP sangat konyol karena tidak mengizinkan akses ke Vimeo, Reddit, Imgur, Netflix--yang mana bukanlah situs dengan konten utama ilegal.

Linux / BSD / macOS

Tambahkan list di bawah ke /etc/hosts.

Windows