#Convert a HTML input 2-dimensional array into an array of keys-values
We get this JSON input:
{
"number":[
"1241",
"1241"
],
#Convert a HTML input 2-dimensional array into an array of keys-values
We get this JSON input:
{
"number":[
"1241",
"1241"
],
| @servers(['web' => '[email protected]']) | |
| @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 |
| <?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; |
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)