Simple Laravel 5.2 stack with web serer (php-fpm) and db drivers
- NGINX
- PHP7
- PHP mongo driver for php-fpm and php-cli
- PHP mbstring module
- PHP bz2 module
- PHP imagick module
- Memcached + PHP memcached
- Mysql PHP driver
Simple Laravel 5.2 stack with web serer (php-fpm) and db drivers
#!/bin/bash | |
# for use with cron, eg: | |
# 0 3 * * * postgres /var/db/db_backup.sh foo_db | |
if [[ -z "$1" ]]; then | |
echo "Usage: $0 <db_name> [pg_dump args]" | |
exit 1 | |
fi |
[ | |
{ | |
"name": "Beanstalkd", | |
"command": "/usr/bin/dpkg -l | awk '$2==\"beanstalkd\" { print $3 }'", | |
"required": "1.10", | |
"comparison": ">=", | |
"installer": "beanstalkd.sh", | |
"order": "1" | |
} | |
] |
JS Build tool with Node.js
[ | |
{ | |
"name": "Rsync", | |
"command": "/usr/bin/dpkg -l | awk '$2==\"rsync\" { print $3 }'", | |
"required": "3.1.1", | |
"comparison": ">=", | |
"installer": "rsync.sh", | |
"order": "1" | |
} | |
] |
[ | |
{ | |
"name": "SupervisorD", | |
"command": "/usr/bin/supervisord -v", | |
"required": "3.0.0", | |
"comparison": ">=", | |
"installer": "supervisord.sh", | |
"order": "1" | |
} | |
] |
[ | |
{ | |
"name": "Memcached", | |
"command": "/usr/bin/dpkg -l | awk '$2==\"memcached\" { print $3 }'", | |
"required": "1.4.14", | |
"comparison": ">=", | |
"installer": "memcached.sh", | |
"order": "1" | |
}, | |
{ |
var config = require('../config') | |
, bitcoin = new (require('bitcoin').Client)(config('BTC')) | |
, async = require('async') | |
, db = require('./db') | |
, num = require('num') | |
, lastHeight | |
, clientHeight | |
, blockHash | |
, minConf = 3 | |
, txConcurrency = 2 |
#!/bin/bash | |
mkdir build && cd build | |
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_QT=ON -D WITH_OPENGL=ON -DBUILD_EXAMPLES=ON DWITH_OPENGL=ON -DBUILD_TIFF=ON -DWITH_GTK_2_X=ON ../opencv-3.3 | |
make -j16 | |
sudo make install | |
sudo ldconfig |