Consider a list of strings you need to permanently assign a random color.
First you should turn the string into a hash.
var string = "string"
var hash = 0
@servers(['web' => 'user@server.com']) | |
@setup | |
$dir = '/var/www' | |
@endsetup | |
@task('deploy') | |
cd {{ $dir }}; | |
echo Putting website in maintenance | |
php artisan down |
<?php | |
# Cron job command for Laravel 4.2 | |
# Inspired by Laravel 5's new upcoming scheduler (https://laravel-news.com/2014/11/laravel-5-scheduler) | |
# | |
# Author: Soren Schwert (GitHub: sisou) | |
# | |
# Requirements: | |
# ============= | |
# PHP 5.4 |
var timer = function(name) { | |
var start = new Date(); | |
return { | |
stop: function() { | |
var end = new Date(); | |
var time = end.getTime() - start.getTime(); | |
console.log('Timer:', name, 'finished in', time, 'ms'); | |
} | |
} | |
}; |
<?php | |
<<<CONFIG | |
packages: | |
- "league/color-extractor: 0.3.*" | |
CONFIG; | |
use League\ColorExtractor\Color; | |
use League\ColorExtractor\ColorExtractor; | |
use League\ColorExtractor\Palette; |
# .bash_profile | |
# colors for shell | |
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
# start aliases | |
# git commamands simplified |
There are a number of solutions for installing supervisord and automatically running it on Ubuntu - this is what worked for me (on multiple installations...).
sudo bash < <(curl https://gist.githubusercontent.com/alexhayes/814fd0d0f7020e918a95/raw/full-install.sh)
There are a number of solutions for installing supervisord and automatically running it on Ubuntu - this is what worked for me (on multiple installations...).
sudo bash < <(curl https://gist.githubusercontent.com/fosron/6a71c4dbb20eed463d764aa4c5799b22/raw/full-install.sh)
<?php | |
namespace App\Traits; | |
use Monolog\Formatter\FormatterInterface; | |
use Monolog\Formatter\JsonFormatter; | |
use Monolog\Formatter\LineFormatter; | |
use Monolog\Handler\RotatingFileHandler; | |
use Monolog\Logger; | |
use Monolog\Processor\GitProcessor; |