Linux:
ssh-keygen -t ed25519 && cat /home/YOUR_USERNAME/.ssh/id_ed25519.pub
MacOS:
ssh-keygen -t ed25519 && cat /Users/YOUR_USERNAME/.ssh/id_ed25519.pub
Copy the value from id_ed25519.pub
Linux:
ssh-keygen -t ed25519 && cat /home/YOUR_USERNAME/.ssh/id_ed25519.pub
MacOS:
ssh-keygen -t ed25519 && cat /Users/YOUR_USERNAME/.ssh/id_ed25519.pub
Copy the value from id_ed25519.pub
SET DNS:
sudo networksetup -setdnsservers Wi-Fi 8.8.8.8 8.8.4.4
sudo networksetup -setdnsservers Wi-Fi 1.1.1.1 1.0.0.1
Install phpmyadmin:
composer create-project phpmyadmin/phpmyadmin
Masuk ke folder:
cd phpmyadmin
Run:
php -S localhost:8000 -t .
sudo codesign --force --deep --sign - /Applications/NewApp.app
sudo codesign --force --sign - /Applications/NewApp.app/Contents/MacOS/NewApp
Im storing this because sometimes when i installed new updates on unverified apps i have to resign the code to allow it on any permission with tccp. This will be updated later with description, and with related cases.
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
rsync -Prave "ssh -l YOUR_SSH_USER -p YOUR_SSH_PORT" DIR_SOURCE REMOTE_TARGET_SOURCE
This is a tutorial how to create a command that runs/start any app with arguments with iTerm2 on MacOS In my case, i made a local php development server for quick start for working.
alias ss1='php -S localhost:8001 -t public'
/Users/YourUser/Library/Application Support/iTerm2/Scripts
) (e.g: Launch Service #1)import iterm2
async def main(connection):
Disable SIP (System Integrity Protection) berfungsi untuk menonaktifkan security dan membuat kita bisa melakukan banyak hal, terutama untuk memodifikasi file sistem.
Cara :
csrutil disable
Cara atasi file locked seperti file hosts
di /etc/hosts
atau file lainnya adalah dengan cara copy file tersebut ke tempat lain, kemudian replace
dengan file yg tidak locked menggunakan Touch ID atau Password (Admin).
FYI:
file yang ada di /etc/
seluruhnya di mirror ke /private/etc
Jadi yg diubah sebaiknya yg di /private/etc
saja agar file sistem aman di /etc
Tags:
Run:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Using Alias:
bash
:
echo "alias flushdns='sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder'" >> ~/.bashrc && source ~/.bashrc
or