Skip to content

Instantly share code, notes, and snippets.

View nickrichter's full-sized avatar

Nick Richter nickrichter

  • Minneapolis, MN
View GitHub Profile
@nickrichter
nickrichter / vhost-macro.conf
Last active May 19, 2025 21:37
Using the macro module for Apache can help make your vhost configuration more streamlined and consistent.
# STANDARD PROD AND DEV CONFIG
<Macro VHost $mydomain>
# PROD CONFIG
<Directory "/file/path/to/$mydomain/public_html">
Require all granted
</Directory>
<VirtualHost *:80>
ServerAdmin adminemail@foo.bar
ServerName $mydomain
@nickrichter
nickrichter / open with Chrome.scpt
Last active August 29, 2015 14:07
Open with Chrome
tell application "Safari"
-- Get the URL of the active tab from Safari
set theURL to URL of current tab of window 1
end tell
tell application "Google Chrome"
-- The front most window
try
tell window 1
-- Create a new tab and set the URL to the one we got from Safari