Skip to content

Instantly share code, notes, and snippets.

@priley86
priley86 / symlinks
Created January 25, 2018 21:26
symlinks
@priley86
priley86 / Gemfile
Created January 25, 2018 20:57
classic-ui
source 'https://rubygems.org'
gemspec
#
# Custom Gemfile modifications
#
# Load developer specific Gemfile
# Developers can create a file called Gemfile.dev.rb containing any gems for
@priley86
priley86 / Procfile
Created January 25, 2018 20:51
Procfile
# Web server workers
# The $PORT variable is set automatically by foreman for particular workers
# We tell foreman to start at 3000, it then increments by 1 per instance of a worker type
# and 100 per worker type.
#
# So, the first ui worker will get PORT=3000 while the next will get PORT=3001
# The first api worker will get PORT=3100 and the next will get PORT=3101
ui: env PORT=$PORT bundle exec rails r lib/workers/bin/run_single_worker.rb MiqUiWorker
api: env PORT=$PORT bundle exec rails r lib/workers/bin/run_single_worker.rb MiqWebServiceWorker
websocket: env PORT=$PORT bundle exec rails r lib/workers/bin/run_single_worker.rb MiqWebsocketWorker
@priley86
priley86 / prettier-standard-tests.md
Last active October 6, 2017 17:14
Prettier -> Standard JS Tests

The Prettier Autoformatter fixes many common JS linting rules such those defined by Standard JS.

Total rules tested: 117

Total rules fixed: 49

Total rules not fixed: 68

Percent fixed automatically: 41.8%

{
"engagement": {
"architectures": [
{
"stages": [
{
"stage_name": "dev",
"display_name": "Dev Environment",
"domain": "http://dev.myapp.com",
"user_to_role": [