Skip to content

Instantly share code, notes, and snippets.

View z4id's full-sized avatar
¯\_(ツ)_/¯

Zaid Afzal z4id

¯\_(ツ)_/¯
View GitHub Profile
@z4id
z4id / macos_cmd_error_on_upgrade.md
Last active September 28, 2022 05:52
[Solved] MacOS M1: Git/other command line tools not working after system upgrade/update

Solution:

sudo xcode-select -switch /Library/Developer/CommandLineTools

Source:

https://developer.apple.com/forums/thread/666584

Error:

2022-09-28 10:43:58.541 xcodebuild[1197:20190] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.IDESimulatorAvailability (/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin), error = Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (OBJC_CLASS$_SimDiskImage) Referenced from: '/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability' Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator'" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns

@z4id
z4id / gist:0d46df55503e0cafae5de992adfc134d
Last active July 10, 2022 22:41
Start new NestJS Application with Static Files and serve index.html
# production deployment guide in dockers
https://www.tomray.dev/nestjs-docker-production
npm i -g @nestjs/cli
nest update
nest update --force
nest new {project_name}
npm run start
@z4id
z4id / gist:3d0c1eedb8ae726f57e5e67f57506eb4
Created May 24, 2022 05:57
Macbook M1 - Workaround for Puppeteer Installation via NPM/NodeJS
https://linguinecode.com/post/how-to-fix-m1-mac-puppeteer-chromium-arm64-bug
> brew install chromium
Allow Chromium to open on your M1 Mac (or fix it from security settings)
Error while opening:
“Chromium.app” is damaged and can’t be opened. You should move it to the Bin.
Fix:
https://www.reddit.com/r/MacOS/comments/q9d772/homebrew_chromium_is_damaged_and_cant_be_openend/
> xattr -cr /Applications/Chromium.app
Open it again