git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
There are two main modes to run the Let's Encrypt client (called Certbot):
Webroot is better because it doesn't need to replace Nginx (to bind to port 80).
In the following, we're setting up mydomain.com.
HTML is served from /var/www/mydomain, and challenges are served from /var/www/letsencrypt.
| var FB = require('fb'); | |
| FB.api('oauth/access_token', { | |
| client_id: process.env.FACEBOOK_APP_ID, | |
| client_secret: process.env.FACEBOOK_SECRET, | |
| grant_type: 'client_credentials' | |
| }, function(res) { | |
| if (!res || res.error) { | |
| console.log('error occurred when getting access token:', res && res.error); | |
| return; |
| // Run PostgreSQL server: | |
| // docker run -e POSTGRES_PASSWORD="" -p 5432:5432 postgres | |
| // Monitor running processes: | |
| // watch -n 1 'echo "select pid,query_start,state,query from pg_stat_activity;" | psql -h localhost -U postgres | |
| // | |
| // For all handlers, call to db takes 5 seconds, | |
| // | |
| // Three endpoints: | |
| // - "/" - take 5 seconds | |
| // - "/ctx" - take 1 seconds, due to 1 second cancellation policy |
| font-size:10px; | |
| font-size:0.625rem; | |
| font-size:11px; | |
| font-size:0.6875rem; | |
| font-size:12px; | |
| font-size:0.75rem; | |
| font-size:13px; |
| # You need some sort of indication that an Ajax transaction exists. jQuery.active doesn't seem to do the | |
| # trick, so we use the following JS (well, we use CoffeeScript, but whatever) that gets inserted into | |
| # our application. | |
| # | |
| #$(function() { | |
| # var body, doc; | |
| # body = $('body'); | |
| # doc = $(document); | |
| # doc.ajaxStart(function() { | |
| # return body.addClass('ajax-in-progress').removeClass('ajax-quiet'); |
| # This class shows uses version 0.9.x of the ruby google-api-client gem circa July 2016 | |
| # to query the Google Play subscription API. | |
| # | |
| # If using an older version of the google-api-client gem (ie. version 0.8.x), instead refer to: | |
| # https://gist.github.com/jkotchoff/e60fdf048ec443272045/e3e2c867633900d9d6f53de2de13aa0a0a16bb03 | |
| # | |
| # Sample usage: | |
| # | |
| # package_name = 'com.stocklight.stocklightapp' | |
| # product_id = 'com.stocklight.stocklight.standardsubscription' |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
| # NOTICE: to get Nginx+Unicorn best-practices configuration see the gist https://gist.github.com/3052776 | |
| $ cd /usr/src | |
| $ wget http://nginx.org/download/nginx-1.2.1.tar.gz | |
| $ tar xzvf ./nginx-1.2.1.tar.gz && rm -f ./nginx-1.2.1.tar.gz | |
| $ wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz | |
| $ tar xzvf pcre-8.30.tar.gz && rm -f ./pcre-8.30.tar.gz | |
| $ wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz |