Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
# 1) Create your private key (any password will do, we remove it below) | |
$ cd ~/.ssh | |
$ openssl genrsa -des3 -out server.orig.key 2048 | |
# 2) Remove the password | |
$ openssl rsa -in server.orig.key -out server.key |
global | |
daemon | |
nbproc 1 | |
user haproxy | |
group haproxy | |
log 127.0.0.1:514 local0 | |
pidfile /var/run/haproxy.pid | |
stats socket /var/run/haproxy.stat mode 777 | |
spread-checks 5 | |
ssl-default-bind-options no-sslv3 no-tls-tickets force-tlsv12 |
# OSX for Hackers (Mavericks/Yosemite) | |
# | |
# Source: https://gist.github.com/brandonb927/3195465 | |
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Ask for the administrator password upfront |
import ftplib | |
import os | |
import re | |
""" | |
MIT license: 2017 - Jwely | |
Example usage: | |
``` python | |
import ftplib |
function trimSvgWhitespace() { | |
// get all SVG objects in the DOM | |
var svgs = document.getElementsByTagName("svg"); | |
// go through each one and add a viewbox that ensures all children are visible | |
for (var i=0, l=svgs.length; i<l; i++) { | |
var svg = svgs[i], | |
box = svg.getBBox(), // <- get the visual boundary required to view all children |
const { Response, Headers, Request } = require('whatwg-fetch'); | |
global.Response = Response; | |
global.Headers = Headers; | |
global.Request = Request; | |
global.console = { | |
log: () => {}, | |
warn: () => {}, | |
}; | |
global.fetch = require('jest-fetch-mock'); |
Advice and wisdom from Brendan Baker, formerly of Greylock.
(He used to have pitchpatterns.com, which listed all of these, but that domain has since lapsed.)