Skip to content

Instantly share code, notes, and snippets.

View Preferences.sublime-settings.json
View Fetch.sublime-settings.json
"Modernizr.js": "",
"Normalize.css 3.x": "",
"editorconfig": "file:///Users/username/modules/editorconfig",
"gitignore": "file:///Users/username/modules/gitignore"
View .htaccess
# Change YOUR_TOKEN to your prerender token and uncomment that line if you want to cache urls and view crawl stats
# Change (at the end of the last RewriteRule) to your website url
<IfModule mod_headers.c>
#RequestHeader set X-Prerender-Token "YOUR_TOKEN"
<IfModule mod_rewrite.c>
RewriteEngine On
gaspanik / .htaccess
Created Nov 14, 2014
FilesMatch for WordPress
View .htaccess
<FilesMatch "^(wp-(config|settings).*\.php|readme\.html|license\.txt)">
Require all denied
gaspanik / .ngrok
Created Nov 10, 2014
Disable ngrok web interface loopback address for vagrant.
View .ngrok
gaspanik / Vagrantfile
Created Nov 9, 2014
Synced_folder permission config for Vagrantfile 1.6.x
View Vagrantfile
config.vm.synced_folder ".", "/vagrant", id: "vagrant-root", owner: "vagrant", group: "www-data", mount_options: ["dmode=775,fmode=664"]
gaspanik / vhost_conf.markdown
Last active Aug 29, 2015
Apache 2.4.x vhost.conf
View vhost_conf.markdown

Apache 2.4 vhost.conf on yosemite

Apache 2.2.x vhost.conf

<Directory /path/to/>
  Order allow,deny
  Allow from all
View pkgbom.markdown
$ cd /var/db/receipts
$ ls -l | grep example

-rw-r--r--@ 1 root  wheel     55217 Oct  2 17:49
-rw-r--r--@ 1 root  wheel       259 Oct  2 17:49 com.example.plist

$ lsbom | pbcopy
gaspanik / superstatic.json
Last active Aug 29, 2015
config: superstatic sample
View superstatic.json
"name": "ss",
"root": "./",
"routes": {
"/": "index.html"
"clean_urls": false,
"error_page": "error.html",
"headers": {
"/*": {
View gist:1b1f5d332898706fc6e7
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Headers "X-Requested-With"