Skip to content

Instantly share code, notes, and snippets.

View ErvinLlojku's full-sized avatar

Ervin Llojku ErvinLlojku

View GitHub Profile
@ErvinLlojku
ErvinLlojku / gist:f76a09c1b17c5f2577c5c6c0f0111d4b
Created November 3, 2022 10:22
Magento CLI scripts to enable/disable maintenance and allow visibility to certain IPs
// Magento enable/disable maintenance
bin/magento maintenance:enable
bin/magento maintenance:disable
// Magento allow ips during maintenance
bin/magento maintenance:allow-ips xxx.xxx.xxx.xxx
@ErvinLlojku
ErvinLlojku / Mac OS X: Open in Visual Studio Code
Created May 26, 2019 18:11 — forked from tonysneed/Mac OS X: Open in Visual Studio Code
Add a command to Finder services in Mac OSX to open a folder in VS Code
- Open Automator
- File -> New -> Service
- Change "Service Receives" to "files or folders" in "Finder"
- Add a "Run Shell Script" action
- Change "Pass input" to "as arguments"
- Paste the following in the shell script box: open -n -b "com.microsoft.VSCode" --args "$*"
- Save it as something like "Open in Visual Studio Code"