One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| server { | |
| listen 443 ssl http2; | |
| listen [::]:443 ssl http2; | |
| ssl_certificate /usr/local/etc/nginx/ssl/{{host}}.crt; | |
| ssl_certificate_key /usr/local/etc/nginx/ssl/{{host}}.key; | |
| ssl_ciphers HIGH:!aNULL:!MD5; | |
| # listen 80; | |
| server_name {{host}}; |
| reload() { | |
| source ${BASH_SOURCE[0]} | |
| } | |
| alias r=reload | |
| get-image-field() { | |
| local imageId=$1 | |
| local field=$2 | |
| : ${imageId:? reuired} |
| hub: | |
| image: selenium/hub | |
| ports: | |
| - "4444:4444" | |
| container_name: hub | |
| node: | |
| image: selenium/node-firefox | |
| links: | |
| - hub | |
| environment: |
| read -r -p "Would you really like to reset your development database and pull the latest from production? [y/N] " response | |
| if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]] | |
| then | |
| wp @development db reset --yes | |
| wp @production db export - > sql-dump-production.sql | |
| wp @development db import sql-dump-production.sql | |
| wp @development search-replace https://example.com https://example.dev | |
| else | |
| exit 0 | |
| fi |
| #! /usr/bin/python | |
| from sys import argv | |
| from os.path import exists | |
| from os import makedirs | |
| from os import symlink | |
| from os import system | |
| import getopt | |
| # |
| CREATE TABLE `makers` ( | |
| `id` int(10) unsigned NOT NULL, | |
| `name` varchar(255) NOT NULL, | |
| `description` varchar(255) NOT NULL, | |
| `created_at` datetime NOT NULL, | |
| `updated_at` datetime NOT NULL, | |
| PRIMARY KEY (`id`) | |
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
| -- |
| /* | |
| * 0x1ad2 base Gulp.js file | |
| * https://twitter.com/0x1ad2 | |
| */ | |
| /* | |
| * Define plugins | |
| */ | |
| var gulp = require('gulp'); | |
| var $ = require('gulp-load-plugins')(); |
| #!/bin/bash | |
| # PhalconPhp with PHP7 installation on ubuntu:16.04 | |
| sudo apt-get update | |
| sudo apt-get install -y php7.0-fpm \ | |
| php7.0-cli \ | |
| php7.0-curl \ | |
| php7.0-gd \ |