npm uninstall --save-dev gulp-sass
npm install --save-dev gulp-sass
or try deleting node_modules
and running npm install
again. The cause of this is a conflict between node + npm + node-sass + gulp-sass.
# @gf3’s Sexy Bash Prompt, inspired by “Extravagant Zsh Prompt” | |
# Shamelessly copied from https://github.com/gf3/dotfiles | |
alias a='php artisan' | |
alias reseed='php artisan migrate:refresh --seed' | |
alias cept='vendor/bin/codecept' | |
alias ioios='ionic run ios -l -c' | |
default_username='shane' |
// require the file | |
require('./gulp_tasks/watch'); | |
// Call the new task in Laravel Elixir file | |
elixir(function(mix)) { | |
mix.watch(); | |
}); |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Setup WordPress in nginx within a subfolder. This example does the redirect to a folder called /blog. So you can have one installation at /
and another at /blog
Change [sitename].dev
to the domain.
server {
listen 80;
listen [::]:80;
server_name [sitename].com.au www.[sitename].com.au;
# redirect all http traffic to https
return 301 https://www.$server_name$request_uri;
_.mixin({ | |
implode: function (glue, collection) { | |
glue = glue || ''; | |
if (!_.isArray(collection)) return false; | |
if (collection.length == 1) return collection[0]; | |
var returnString = ''; |
<?php | |
namespace App\Domain; | |
class Intersect | |
{ |
setTimeout(function(){debugger;}, 5000); |
On a class, add the methods Trait | |
``` | |
// define the properties | |
/* @property $name string User's name */ | |
class MyClass { | |
// add the trait | |
use HasAttributes; | |
} |
You can find FFMpeg compilation instructions from https://trac.ffmpeg.org/wiki/CompilationGuide
If you can't find a pre-built version of FFMpeg, you'll have to compile it from the source. By using the above link, you'll be getting the latest snapshot and it may not be the version you want. If you need to compile a specific version, follow the instructions below.
Pick the correct version you need from https://git.ffmpeg.org/ffmpeg
On the guide, follow all instructions upto 'FFMpeg' section, then instead of the snapshot build, switch to the version needed. (Using v4.3 on the example below)