Skip to content

Instantly share code, notes, and snippets.

@gaspanik
gaspanik / Vagrantfile
Created November 9, 2014 01:34
Synced_folder permission config for Vagrantfile 1.6.x
config.vm.synced_folder ".", "/vagrant", id: "vagrant-root", owner: "vagrant", group: "www-data", mount_options: ["dmode=775,fmode=664"]
@gaspanik
gaspanik / .ngrok
Created November 10, 2014 16:05
Disable ngrok web interface loopback address for vagrant.
inspect_addr: 0.0.0.0:4040
@gaspanik
gaspanik / .htaccess
Created November 14, 2014 03:27
FilesMatch for WordPress
<FilesMatch "^(wp-(config|settings).*\.php|readme\.html|license\.txt)">
Require all denied
</FilesMatch>
@gaspanik
gaspanik / .htaccess
Last active August 29, 2015 14:10 — forked from thoop/.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 / Fetch.sublime-settings.json
Created December 5, 2014 16:38
Fetch.sublime-settings
{
"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":
{
@gaspanik
gaspanik / Preferences.sublime-settings.json
Created December 5, 2014 16:41
Preferences.sublime-settings
(中略)
"file_exclude_patterns":
[
"*.exe",
"*.psd",
".DS_Store",
"*.sublime-workspace",
"*.sublime-project",
".bowerrc",
".editorconfig",
@gaspanik
gaspanik / lds.fish
Created December 9, 2014 13:30
livedown start fish function
function lds --description 'Livedown start'
command livedown start $argv --open
end
@gaspanik
gaspanik / npmup.fish
Last active August 29, 2015 14:12
npm outdated fishshell function
function npmup --description 'npm check outdated'
command npm outdated --depth=0 $argv
end
@gaspanik
gaspanik / package.json
Created February 5, 2015 11:17
frontend-md package.json
{
"frontend": {
"name": "YOUR PROJECT NAME",
"stylesheets": "RELATIVE/PATH/TO/STYLESHEETS/FOLDER",
"javascripts": "RELATIVE/PATH/TO/JAVASCRIPTS/FOLDER"
}
}
@gaspanik
gaspanik / .csslintrc
Created March 1, 2015 06:23
csslint-sample
{
"adjoining-classes": false,
"box-sizing": false,
"box-model": false,
"compatible-vendor-prefixes": false,
"floats": false,
"font-sizes": false,
"gradients": false,
"important": false,
"known-properties": false,