Packer
-
Packer is used to build image from a base image, perform provisions and store (commit) the final image.
-
We use provisioners and Packer templates to do the actual work to create the final image.
-
We use Ansible for provisioning.
Packer
Packer is used to build image from a base image, perform provisions and store (commit) the final image.
We use provisioners and Packer templates to do the actual work to create the final image.
We use Ansible for provisioning.
A basic set of systemd
units for starting Nginx and PHP-FPM daemons on system startup.
/run/nginx.pid
./run/php7/php-fpm.pid
, PHP7 PHP-FPM config at /etc/php7
.Unit files are placed in /etc/systemd/system
and enabled with:
server { | |
listen 80; | |
server_name localhost; | |
root /Users/YOUR_USERNAME/Sites; | |
access_log /Library/Logs/default.access.log main; | |
location / { | |
include /usr/local/etc/nginx/conf.d/php-fpm; | |
} |
var path = require('path') | |
module.exports = { | |
'config': path.resolve('server', 'config', 'database.json'), | |
'migrations-path': path.resolve('server', 'migrations'), | |
'models-path': path.resolve('server', 'models'), | |
'seeders-path': path.resolve('server', 'seeders'), | |
} |
# Dependencies | |
# nginx_lua | |
# lua uuid module (luarocks install uuid) | |
http { | |
# this will be the request id | |
map $host $request_uuid { | |
default ''; | |
} |
#!/usr/bin/env bash | |
# @param string $1 | |
# Input string. | |
# @param int $2 | |
# Cut an amount of characters from left side of string. | |
# @param int [$3] | |
# Leave an amount of characters in the truncated string. | |
substr() | |
{ |
(function () { | |
var perfBar = function(budget) { | |
window.onload = function() { | |
window.performance = window.performance || window.mozPerformance || window.msPerformance || window.webkitPerformance || {}; | |
var timing = window.performance.timing, | |
now = new Date().getTime(), | |
output, loadTime; |
/* bling.js */ | |
window.$ = document.querySelector.bind(document); | |
window.$$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
NodeList.prototype.__proto__ = Array.prototype; | |
NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |