Create a spy
// "bare" spy
var spy = jasmine.createSpy('spyName');
// Mock object of spies: spy.next(), spy.current(), etc
web: bundle exec puma -p $PORT -C config/puma.rb |
sudo apt-get install libssl-dev | |
sudo gem install fpm | |
wget --timestamp ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.3-p0.tar.gz | |
tar -zxvf ruby-1.9.3-p0.tar.gz | |
cd ruby-1.9.3-p0 | |
time (./configure --prefix=/usr && make && make install DESTDIR=/tmp/installdir) | |
fpm -s dir -t deb -n ruby -v 1.9.3-p0 -C /tmp/installdir \ | |
-p ruby-VERSION_ARCH.deb -d "libstdc++6 (>= 4.4.3)" \ |
#! /usr/bin/env ruby | |
# usage: | |
# $ das_download.rb email password [download_directory] | |
require 'mechanize' | |
# gem 'mechanize-progressbar' | |
email = ARGV[0] or raise('Please provide the email address for your account') | |
password = ARGV[1] or raise('Please provide the password for your account') | |
path = (ARGV[2] || './').gsub /\//,'' |
Hello Github,
Pull requests are not serving me well on large reviews. Here are some problems and suggested enhancements that would make me happy.
function! s:butt() abort | |
syn match cloud2butt "\<th\%(e cloud\>\)\@=" conceal cchar=m | |
syn match cloud2butt "\%(\<th\)\@<=e\%( cloud\>\)\@=" conceal cchar=y | |
syn match cloud2butt "\%(\<the \)\@<=c\%(loud\>\)\@=" conceal cchar=b | |
syn match cloud2butt "\%(\<the c\)\@<=l\%(oud\>\)\@=" conceal cchar=u | |
syn match cloud2butt "\%(\<the cl\)\@<=o\%(ud\>\)\@=" conceal cchar=t | |
syn match cloud2butt "\%(\<the clo\)\@<=ud\>" conceal cchar=t | |
endfunction |
NOTE: this is out of date - refer to moby/moby#9694
Here is a preview build of two new features we’re working on concurrently: container grouping (docker groups
) and stack composition (docker up
). Together, they will eventually form a complete replacement for Fig.
set :path_to_repo, "/path_to_repo/" | |
set :running_app_user, "appusername" | |
namespace :webscale do | |
desc "Cache a signed out version of the path. Usage: cap webscale:signed_out_cache_page -s path_to_cache=/films/on_netflix" | |
task :signed_out_cache, roles: :app do | |
cache_base_path = "#{path_to_repo}/public/signed_out" | |
cached_destination_path = "#{cache_base_path}#{path_to_cache}.html" | |
working_path = "#{cached_destination_path}.tmp" |
This text explains how to create and deploy a Docker-based AWS Elastic Beanstalk site and how to control it using CloudFormation.
Please find the CloudFormation template at the end of this Gist.
We assume that you are familiar with AWS ElasticBeanstalk, AWS CloudFormation and Docker.
# You're looking at it! :) | |
help: | |
@makehelp < $(MAKEFILE_LIST) | |
.PHONY: help |