This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# composer | |
FROM composer as vendor | |
COPY composer.json composer.json | |
COPY composer.lock composer.lock | |
RUN composer install --ignore-platform-reqs --no-interaction --no-plugins --no-scripts --prefer-dist | |
# node | |
# FROM node:8-alpine as frontend | |
# RUN mkdir -p /app/web | |
# COPY package.json package-lock.json tailwind-config.js /app/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"PHPUnit Test Method": { | |
"prefix": "tf", | |
"body": [ | |
"/**", | |
"* @test", | |
"*/", | |
"public function $1()", | |
"{", | |
"\t// Arrange", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Possible values for ext-name: | |
bcmath bz2 calendar ctype curl dba dom enchant exif fileinfo filter ftp gd gettext gmp hash iconv imap interbase intl json ldap mbstring mcrypt mysqli oci8 odbc opcache pcntl pdo pdo_dblib pdo_firebird pdo_mysql pdo_oci pdo_odbc pdo_pgsql pdo_sqlite pgsql phar posix pspell readline recode reflection session shmop simplexml snmp soap sockets spl standard sysvmsg sysvsem sysvshm tidy tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package entity | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"github.com/jinzhu/gorm" | |
_ "github.com/jinzhu/gorm/dialects/postgres" | |
_ "github.com/jinzhu/gorm/dialects/sqlite" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE "cafe-cinema" | |
GO | |
-- drop tables, bad for real code | |
IF OBJECT_ID('dbo.orders', 'U') IS NOT NULL | |
DROP TABLE dbo.orders; | |
IF OBJECT_ID('dbo.customers', 'U') IS NOT NULL | |
DROP TABLE dbo.customers; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.0-apache | |
MAINTAINER Jason McCallister <jason.mccallister@traderinteractive.com> | |
# arguments for the installation | |
ARG BLD_PKGS="libfreetype6-dev libjpeg62-turbo-dev libpng12-dev libicu-dev" | |
ARG PHP_EXTS="pdo pdo_mysql gd" | |
# install needed items (php extensions) | |
RUN apt-get update \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tests\Feature; | |
use App\Make; | |
use App\User; | |
use App\Year; | |
use App\Listing; | |
use App\UserType; | |
use App\MakeModel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# O1 - BASIC USER AND SSH SETUP | |
# ask for the new username | |
read -p 'Enter your new username here: ' NEWUSER | |
# set the path for the user | |
USERSSHPATH=/home/$NEWUSER/.ssh | |
# creates the user, you will be promted for a password | |
adduser $NEWUSER && usermod -aG sudo $NEWUSER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" --------------------------------------- | |
" GENERAL CONFIG | |
" --------------------------------------- | |
set nocompatible | |
filetype off | |
syntax enable | |
" disable macvim save with cmd-s | |
macmenu &File.Save key=<nop> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: | |
image: php:7.0.7-apache | |
links: | |
- db:postgres | |
ports: | |
- 80:80 | |
volumes: | |
- .:/var/www/html | |
db: | |
image: postgres:9.5.3 |