Proof of concept setup for Wordpress running under PHP-FPM with an Nginx frontend
Build a copy of this image:
git clone git://github.com/d9206eacb5a0ff5d6be0.git docker-nginx-fpm
cd docker-nginx-fpm
docker build -t nginx-fpm .
#!/bin/bash | |
# This script will help you setup Docker for TLS authentication. | |
# Run it passing in the arguement for the FQDN of your docker server | |
# | |
# For example: | |
# ./create-docker-tls.sh myhost.docker.com | |
# | |
# The script will also create a profile.d (if it exists) entry | |
# which configures your docker client to use TLS | |
# |
If you want to clone an svn repository with git-svn but don't want it to push all the existing branches, here's what you should do. | |
* Clone with git-svn using the -T parameter to define your trunk path inside the svnrepo, at the same time instructing it to clone only the trunk: | |
git svn clone -T trunk http://example.com/PROJECT | |
* If instead of cloning trunk you just want to clone a certain branch, do the same thing but change the path given to -T: | |
git svn clone -T branches/somefeature http://example.com/PROJECT |
import com.cloudbees.hudson.plugins.folder.Folder | |
import hudson.FilePath | |
import jenkins.model.Jenkins | |
def boolean isFolder(String name) { | |
def item = Jenkins.instance.getItemByFullName(name) | |
return item instanceof Folder | |
} | |
def deleteUnusedWorkspace(FilePath root, String path) { |
diff --git a/Documentation/git-diff.txt b/Documentation/git-diff.txt | |
index bbab35f..f4ca476 100644 | |
--- a/Documentation/git-diff.txt | |
+++ b/Documentation/git-diff.txt | |
@@ -99,10 +99,17 @@ include::diff-options.txt[] | |
<path>...:: | |
The <paths> parameters, when given, are used to limit | |
the diff to the named paths (you can give directory | |
names and get diff for all files under them). |
#!/bin/bash | |
set -e | |
str='docker run' | |
str+=' {{printf "--name=%q" .Name}}' | |
str+='{{if (eq .HostConfig.NetworkMode "bridge")}} {{printf "--hostname=%q" .Config.Hostname}}{{else}} {{printf "--net=%q" .HostConfig.NetworkMode}}{{end}}' | |
str+='{{if .Config.OpenStdin}} --interactive{{end}}' | |
str+='{{if .Config.Tty}} --tty{{end}}' |
#!/bin/bash | |
set -eu | |
# https://gist.github.com/tianon/a0080cbca558e4b907fe | |
suite="${1:-}" | |
shift || { echo >&2 "usage: $0 suite [arch]"; exit 1; } | |
targetSuite="$suite" | |
case "$targetSuite" in |
# see https://lists.gt.net/mythtv/users/334412#334412 | |
Section "Monitor" | |
Identifier "VizioGV42L" | |
VendorName "VIZIO" | |
ModelName "GV42L" | |
HorizSync 31.0 - 70.0 | |
VertRefresh 50.0 - 85.0 | |
Option "DPMS" |
# inspired by https://twitter.com/jessfraz/status/782333853117448192 | |
# https://gist.github.com/jessfraz/421918a367a71dbaf72fdc772d809f61 | |
# https://gist.github.com/tianon/c5ae888200d6426b167d4961d088dee2 | |
server { | |
listen 80; | |
listen 443 ssl http2; | |
server_name go.tianon.xyz; |
#!/bin/bash | |
set -e | |
# https://gist.github.com/tianon/b7fce03f0d52f8103242421878fc6b5e | |
# | |
# usage: | |
# | |
# $ apt-mark-minimum-manual.sh | |
# inetutils-ping |