The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
| #cloud-config | |
| coreos: | |
| etcd: | |
| # generate a new token for each unique cluster from https://discovery.etcd.io/new | |
| discovery: https://discovery.etcd.io/<token> | |
| # multi-region deployments, multi-cloud deployments, and droplets without | |
| # private networking need to use $public_ipv4 | |
| addr: $private_ipv4:4001 | |
| peer-addr: $private_ipv4:7001 |
This Gist is now part of https://github.com/gmasse/ovh-ipxe-customer-script
| @function strip-units($number) {// From : http://stackoverflow.com/a/12335841/1339426 | |
| @return $number / ($number * 0 + 1); | |
| } | |
| /** | |
| * Use em or rem font-size in Bootstrap 3 | |
| * Ported from Less version here: https://gist.github.com/jasny/9731895 | |
| */ | |
| $font-size-root: 18px; | |
| $font-unit: 1rem; // Pick em or rem here |
| # | |
| # Name: nginx-tls.conf | |
| # Auth: Gavin Lloyd <[email protected]> | |
| # Desc: Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating | |
| # | |
| # Enables HTTP/2, PFS, HSTS and OCSP stapling. Configuration options not related | |
| # to SSL/TLS are not included here. | |
| # | |
| # Additional tips: | |
| # |
Between us [company name] and you [customer name]
| #!/bin/bash | |
| # Sync Homebrew installations between Macs via Dropbox | |
| # | |
| BREW="/usr/local/bin/brew" | |
| # first get local settings | |
| echo "Reading local settings ..." | |
| rm -f /tmp/brew-sync.* |
| var sliding = false; // variable outside function scope to detect a slide is in progress | |
| function slideTo(target, duration){ // credit to Mahieddine Abdelkader & Ludwig Wendzich for original ideas. | |
| var to = isNaN(target) ? $(target).offset().top : target, //find scroll to position | |
| from = $(window).scrollTop() //find starting point | |
| dy = to-from, //calculate change in scroll position - deltaY | |
| body = $("body"), // TODO: better to have it outside of local scope already rather than fetching it every time... | |
| duration = isNaN(duration) ? 500 : duration; | |
| // We're going to use translate-y to move the the page so it feels like we're at the *from* scroll position, when we're actually instantly at the *to* scroll position. */ |
| #! /usr/bin/python | |
| # Dispatch - synchronize two folders | |
| import os | |
| import filecmp | |
| import shutil | |
| from stat import * | |
| class Dispatch: | |
| ''' This class represents a synchronization object ''' |