Skip to content

Instantly share code, notes, and snippets.

View onecount user data
Array
(
[Users] => Array
(
[PartnerId] => 100
[Demo] => Array
(
[2] => gbelsky@gmail.com
[3] => 123%@%321
[11] => gbelsky@gmail.com
View gist:4aebb1b3d4869eb350d2aeb34480198f
[Questions] => Array
(
[0] => stdClass Object
(
[Id] => 1
[Text] =>
[Type] => 0
[Alias] =>
)
View Frontline save screenshots on error
<?php
/**
* @file
* Provides code to handle failures in circleci.
*/
use Behat\Behat\Hook\Scope\AfterStepScope;
use Behat\Mink\Driver\Selenium2Driver;
use Behat\MinkExtension\Context\RawMinkContext;
View Frontline build.sh
#!/bin/bash
# Start mysql and create database.
sudo service mysql start
mysql -uroot -e "CREATE DATABASE circle_test"
set -ex
# Install the required node modules.
npm install
View Frontline circleci.yml
# Set defaults to use for each job.
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
# To update the docker image, change the docker file in this repo: https://github.com/chrisroane/frontlinedocker
# Here is the docker hub repo: https://hub.docker.com/r/chrisroane/frontlinedocker/
defaults: &defaults
docker:
- image: chrisroane/frontlinedocker:latest
working_directory: ~/medstat
environment:
TZ: "/usr/share/zoneinfo/America/New_York"
View build.sh
#!/bin/bash
# Start mysql and create database.
sudo service mysql start
mysql -uroot -e "CREATE DATABASE circle_test"
set -ex
# Install the required node modules.
npm install
View config.yml
# Set defaults to use for each job.
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
defaults: &defaults
docker:
- image: chrisroane/frontline-docker-image:0.0.31
working_directory: ~/medstat
environment:
TZ: "/usr/share/zoneinfo/America/New_York"
version: 2
View medstat.conf
ServerName localhost
Listen 8080
<VirtualHost *:8080>
DocumentRoot /root/medstat/build
ServerName medstat.local
DirectoryIndex index.php index.html
<Directory /root/medstat/build>
Options FollowSymLinks
View Docker File
# Set the base image
FROM ubuntu:16.04
MAINTAINER Chris Roane <chris.roane@fourkitchens.com>
# This was started from the docker file here:
# https://hub.docker.com/r/fauria/lamp/~/dockerfile/
RUN DEBIAN_FRONTEND=noninteractive
# Replace shell with bash so we can source files.
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
@chrisroane
chrisroane / gist:1d7a21d5373273f8238c03cb63db909f
Created September 6, 2017 18:02
Frontline Portal Dockerfile
View gist:1d7a21d5373273f8238c03cb63db909f
# Set the base image
FROM ubuntu:16.04
MAINTAINER Chris Roane <chris.roane@fourkitchens.com>
# This was started from the docker file here:
# https://hub.docker.com/r/fauria/lamp/~/dockerfile/
RUN DEBIAN_FRONTEND=noninteractive
# Replace shell with bash so we can source files.
RUN rm /bin/sh && ln -s /bin/bash /bin/sh