Update nginx config to support a longer timeout to prevent it dropping the connection when trying to debug in PHP Storm
fastcgi_read_timeout 600; # Set fairly high for debugging
| --- | |
| ip: "192.168.10.10" | |
| memory: 2048 | |
| cpus: 1 | |
| authorize: ~/.ssh/id_rsa.pub | |
| keys: | |
| - ~/.ssh/id_rsa |
| // paths | |
| var combine_dir = 'resources/assets'; | |
| var build_dir = 'resources/assets/build'; | |
| var less_file = 'main'; | |
| var less_output = combine_dir + '/css'; | |
| // set scripts to combine | |
| var scripts = [ | |
| 'vendor/jquery/jquery.js', | |
| 'js/main.js' |
| var gulp = require('gulp'), | |
| compass = require('gulp-compass'), | |
| gutil = require('gulp-util'), | |
| chalk = require('chalk'), | |
| concat = require('gulp-concat'), | |
| uglify = require('gulp-uglify'), | |
| imagemin = require('gulp-imagemin'), | |
| pngquant = require('imagemin-pngquant'), | |
| elixir = require('laravel-elixir'), | |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
NOTE I'm trying to find the most optimal fav/touch icon setup for my use-cases. Nothing new here. Read Mathias Bynens' articles on re-shortcut-icon and touch icons, a FAQ or a Cheat Sheet for all the details.
I'd like to hear how you approach this: @valuedstandards or comment on this gist.
You have to include a boatload of link elements pointing to many different images to provide (mobile) devices with a 'favicon' or 'touch icon':
| <?php | |
| $env = $app->detectEnvironment(function () { | |
| $env_files = glob(__DIR__ . '/../.env.*.php'); | |
| if (count($env_files)) { | |
| list($env) = sscanf(basename(current($env_files)), '.env.%[^.].php'); | |
| return $env; | |
| } |
| <?php do_action('cf7_before_wp_head'); ?> |
| 'use strict'; | |
| module.exports = function(grunt) { | |
| // Load all tasks | |
| require('load-grunt-tasks')(grunt); | |
| // Show elapsed time | |
| require('time-grunt')(grunt); | |
| var jsFileList = [ | |
| 'assets/vendor/bootstrap/js/transition.js', | |
| 'assets/vendor/bootstrap/js/alert.js', |
| /* | |
| * | |
| * Bootstrap 3 input group form for Contact Form 7 | |
| * | |
| * In the shortcode, you must use html_id="my-id" | |
| * or html_class="my-class" to target a specific form | |
| * | |
| * Actual form sample: | |
| * <label for="your-email">Email:</label> | |
| * [email* your-email 0/ placeholder "enter your email"] |