Skip to content

Instantly share code, notes, and snippets.

View benallfree's full-sized avatar

Ben Allfree benallfree

  • Reno, NV
View GitHub Profile
@benallfree
benallfree / open-webinspector.applescript
Created October 30, 2015 13:27 — forked from uniphonic/open-webinspector.applescript
This is an AppleScript to automatically compile Cordova and open the Safari debugger. You can also use Automator to assign this script to a shortcut key.
#!/usr/bin/osascript
# AppleScript to automatically compile Cordova and open the Safari debugger
set maxWait to 20
set hasClicked to false
set x to 0
set device_name to "iOS Simulator"
# delay fix for yosemite
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/user/public_html
ErrorLog /home/user/public_html/error.log
CustomLog /home/user/public_html/access.log combined
<Directory /home/user/public_html>
Options Indexes FollowSymLinks
AllowOverride All
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com