Skip to content

Instantly share code, notes, and snippets.

Avatar

Masaaki Komori gaspanik

View GitHub Profile
View Preferences.sublime-settings.json
(中略)
"file_exclude_patterns":
[
"*.exe",
"*.psd",
".DS_Store",
"*.sublime-workspace",
"*.sublime-project",
".bowerrc",
".editorconfig",
View Fetch.sublime-settings.json
{
"files":
{
"Modernizr.js": "http://modernizr.com/downloads/modernizr-latest.js",
"Normalize.css 3.x": "https://raw.githubusercontent.com/necolas/normalize.css/master/normalize.css",
"editorconfig": "file:///Users/username/modules/editorconfig",
"gitignore": "file:///Users/username/modules/gitignore"
},
"packages":
{
View .htaccess
# Change YOUR_TOKEN to your prerender token and uncomment that line if you want to cache urls and view crawl stats
# Change http://example.com (at the end of the last RewriteRule) to your website url
<IfModule mod_headers.c>
#RequestHeader set X-Prerender-Token "YOUR_TOKEN"
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
@gaspanik
gaspanik / .htaccess
Created Nov 14, 2014
FilesMatch for WordPress
View .htaccess
<FilesMatch "^(wp-(config|settings).*\.php|readme\.html|license\.txt)">
Require all denied
</FilesMatch>
@gaspanik
gaspanik / .ngrok
Created Nov 10, 2014
Disable ngrok web interface loopback address for vagrant.
View .ngrok
inspect_addr: 0.0.0.0:4040
@gaspanik
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
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/website.com/web>
  (...)
  Order allow,deny
  Allow from all
</Directory>
(...)
View pkgbom.markdown
$ cd /var/db/receipts
$ ls -l | grep example

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

$ lsbom com.example.bom | pbcopy
@gaspanik
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"
You can’t perform that action at this time.