Skip to content

Instantly share code, notes, and snippets.

View millievn's full-sized avatar
🛴

milliev millievn

🛴
View GitHub Profile

ipconfig

Get an ip address for en0:

ipconfig getifaddr en0

Same thing, but setting and echoing a variable:

View the subnet mask of en0:

@millievn
millievn / Mac OS X: Open in Visual Studio Code
Created July 23, 2020 07:15 — 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"