Skip to content

Instantly share code, notes, and snippets.

View MSayib's full-sized avatar
Big dreamer, Long life learner ⭐️

Sayib MSayib

Big dreamer, Long life learner ⭐️
View GitHub Profile
@MSayib
MSayib / codesign.md
Created December 12, 2023 02:43
Apple Signature Signing
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.

@MSayib
MSayib / GitCommitEmoji.md
Created December 7, 2023 03:10 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@MSayib
MSayib / quickruniterm2.md
Created October 9, 2023 07:31
Quick Start PHP Dev MacOS

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):
@MSayib
MSayib / sip.md
Created October 9, 2023 07:12
Enable/Disable SIP MacOS

Enable/Disable SIP

Disable SIP (System Integrity Protection) berfungsi untuk menonaktifkan security dan membuat kita bisa melakukan banyak hal, terutama untuk memodifikasi file sistem.

Cara :

  1. Shutdown Mac
  2. Masuk ke Recovery (Turn on Mac and Hold Power Button for Apple Silicon Chip)
  3. Masuk ke Utilities
  4. Buka terminal
  5. Masukkan csrutil disable
  6. Reboot
@MSayib
MSayib / modifylockedfile.md
Created October 9, 2023 02:44
Cara ubah locked file di MacOS

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
@MSayib
MSayib / flushdns.md
Created October 9, 2023 02:41
Flush DNS MacOS

Run: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

@MSayib
MSayib / tccp.md
Last active October 11, 2023 02:24
Manual allow or disallow privacy and security service permission on MacOS

SIP must be disabled to get tccplus working.

TESTED on MBP M1 Pro, MacOS Ventura

STEP 1

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
@MSayib
MSayib / unquarantine.md
Last active January 3, 2024 08:40
Alternative way to run any cracked apps on MacOS

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.