Run:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
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:
- edit hosts file on macOS
Disable SIP (System Integrity Protection) berfungsi untuk menonaktifkan security dan membuat kita bisa melakukan banyak hal, terutama untuk memodifikasi file sistem.
Cara :
- Shutdown Mac
- Masuk ke Recovery (Turn on Mac and Hold Power Button for Apple Silicon Chip)
- Masuk ke Utilities
- Buka terminal
- Masukkan
csrutil disable
- Reboot
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.
- Install iTerm2 + Py Runtime Enabled
- Make alias on your zsh/bash ->
alias ss1='php -S localhost:8001 -t public'
- Create new .py script on iTerm2 Script Folder (
/Users/YourUser/Library/Application Support/iTerm2/Scripts
) (e.g: Launch Service #1) - Create your desired script, in my case looks like below script:
import iterm2
async def main(connection):
SIP must be disabled to get tccplus working.
TESTED on MBP M1 Pro, MacOS Ventura
Download : https://github.com/jslegendre/tccplus/releases/tag/1.0
Because tccplus need bundleID, you can get it by running this command:
grep 'BundleIdent' -A 1 /Applications/CleanShot\ X.app/Contents/Info.plist
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
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.
Last Tested: MBP M1 on Ventura (2023)
To run the application all you have to do is remove the quarantine attribute SIP attributes to it, by running:
sudo xattr -r -d com.apple.quarantine /Applications/<APP>.app
Insert your password.
Now run your app.