###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
| CREATE TABLE accounts( | |
| id serial PRIMARY KEY, | |
| name VARCHAR(256) NOT NULL | |
| ); | |
| CREATE TABLE entries( | |
| id serial PRIMARY KEY, | |
| description VARCHAR(1024) NOT NULL, | |
| amount NUMERIC(20, 2) NOT NULL CHECK (amount > 0.0), | |
| -- Every entry is a credit to one account... |
| 'use strict'; | |
| module.exports = function CustomError(message, extra) { | |
| Error.captureStackTrace(this, this.constructor); | |
| this.name = this.constructor.name; | |
| this.message = message; | |
| this.extra = extra; | |
| }; | |
| require('util').inherits(module.exports, Error); |
| apply from: 'versionCode.gradle' | |
| android { | |
| defaultConfig { | |
| versionName VERSION_NAME | |
| versionCode Integer.parseInt(VERSION_CODE) | |
| } | |
| } |
| <?php | |
| /** | |
| * Get current Laravel active session from outside laravel instance. | |
| * Tested Laravel 5.2 | |
| * | |
| * | |
| */ | |
| function getLaravelUser() | |
| { | |
| require __DIR__ . '\path\to\bootstrap\autoload.php'; |
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
| variable "aws_region" { | |
| default = "eu-west-1" | |
| } | |
| variable "domain" { | |
| default = "my_domain" | |
| } | |
| provider "aws" { | |
| region = "${var.aws_region}" |
| # The folders below will be cached between builds | |
| # http://docs.gitlab.com/ce/ci/yaml/README.html#cache | |
| cache: | |
| paths: | |
| - node_modules/ | |
| - _site # or other arbitrary directory | |
| stages: | |
| - build | |
| - test |
| var Promise = require('bluebird'); | |
| const Sequelize = require('sequelize'); | |
| const fs = Promise.promisifyAll(require('fs')); | |
| const _ = require('lodash'); | |
| const sequelize = new Sequelize(connectionString, { | |
| dialect: 'mysql', | |
| logging: false, | |
| pool: { // application-side connection pool configuration |
| minikube start --kubernetes-version=v1.7.0 --extra-config=apiserver.Authorization.Mode=RBAC | |
| kubectl create clusterrolebinding add-on-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:default | |
| minikube dashboard |
| version: 2 | |
| jobs: | |
| build: | |
| docker: | |
| - image: circleci/openjdk:8-jdk | |
| steps: | |
| - checkout | |
| - setup_remote_docker | |
| - run: | |
| name: install aws |