Skip to content

Instantly share code, notes, and snippets.

View 0xKayvan's full-sized avatar
💻
In code we trust.

Kayvan Nouri 0xKayvan

💻
In code we trust.
  • Mordor
View GitHub Profile
@mauritslamers
mauritslamers / nginx_socketcluster.conf
Created September 15, 2016 15:17
socketcluster nginx config
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
server_name server.example.com;
return 301 https://server.example.com$request_uri;
}
@tonysneed
tonysneed / Mac OS X: Open in Visual Studio Code
Last active June 14, 2024 04:16
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"