First, ensure the following tools are available on the local system and reasonably up to date:
- Git
- Git-flow
- RVM
- Bash
- SSH
| / Simple Slim translation of Bootstrap modal | |
| .modal.fade.bs-example-modal-lg id="myModal" tabindex='-1' role='dialog' aria-labelledby="Modal Title" aria-hidden='true' | |
| .modal-dialog.modal-lg | |
| .modal-content | |
| .modal-header | |
| button.close type='button' data-dismiss='modal' | |
| span aria-hidden='true' × | |
| span.sr-only Close | |
| h4.modal-title = "Modal Title" |
| 'use strict'; | |
| // simple express server | |
| var express = require('express'); | |
| var app = express(); | |
| var router = express.Router(); | |
| app.use(express.static('public')); | |
| app.get('/', function(req, res) { | |
| res.sendfile('./public/index.html'); |
| /** | |
| * express static server for react build/dist test! | |
| */ | |
| // simple express server for HTML pages! | |
| // ES6 style | |
| const express = require('express'); | |
| const fs = require('fs'); | |
| const hostname = '127.0.0.1'; |
Command Line
pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb - load your rails into a pry sessionDebugger
Dashing widget to show the status of builds from CircleCI. Also shows the avatar of the person who is running/breaking/passing the current build.
CIRCLE_CI_AUTH_TOKENhttparty to your Gemfile and run bundle installThen:
Dashing widget to show the build status of a CircleCI project.
CIRCLE_CI_AUTH_TOKENhttparty to your Gemfile and run bundle installThen:
| require File.join(File.dirname(__FILE__), 'deploy/nginx') | |
| require File.join(File.dirname(__FILE__), 'deploy/log') | |
| default_run_options[:pty] = true | |
| set :ssh_options, { :forward_agent => true } | |
| set :application, "appname" | |
| set :repository, "git@giturl" | |
| set :scm, :git |
| #user nobody; | |
| #Defines which Linux system user will own and run the Nginx server | |
| worker_processes 1; | |
| #Referes to single threaded process. Generally set to be equal to the number of CPUs or cores. | |
| #error_log logs/error.log; #error_log logs/error.log notice; | |
| #Specifies the file where server logs. |
| require 'rubygems' | |
| require 'sinatra' | |
| require 'json' | |
| class GitHubUpdater | |
| def self.update?(json) | |
| (JSON.parse(json)["ref"] == "refs/heads/master") | |
| end |