This is the entire source code for the build system of the Discovering Docker book.
It is based on the ubermuda/pandoc-ebook
base image:
See http://geoffrey.io/a-base-image-to-build-ebooks.html for more details on this base image.
# Make sure you grab the latest version | |
curl -OL https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip | |
# Unzip | |
unzip protoc-3.2.0-linux-x86_64.zip -d protoc3 | |
# Move protoc to /usr/local/bin/ | |
sudo mv protoc3/bin/* /usr/local/bin/ | |
# Move protoc3/include to /usr/local/include/ |
package main | |
import ( | |
"fmt" | |
"os" | |
"os/exec" | |
"syscall" | |
) | |
func main() { |
class Dashing.Teammood extends Dashing.Widget |
// To the extent possible under law, the Yawning Angel has waived all copyright | |
// and related or neighboring rights to orhttp_example, using the creative | |
// commons "cc0" public domain dedication. See LICENSE or | |
// <http://creativecommons.org/publicdomain/zero/1.0/> for full details. | |
package main | |
import ( | |
// Things needed by the actual interface. | |
"golang.org/x/net/proxy" |
/* bling.js */ | |
window.$ = document.querySelector.bind(document); | |
window.$$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
NodeList.prototype.__proto__ = Array.prototype; | |
NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
<?php | |
/* | |
* Define the servers | |
*/ | |
server('production-web', '<your server url>') | |
->path('<path to the project on your server>') | |
->user('<user on the server>') | |
->pubKey(); | |
/* |
This is the entire source code for the build system of the Discovering Docker book.
It is based on the ubermuda/pandoc-ebook
base image:
See http://geoffrey.io/a-base-image-to-build-ebooks.html for more details on this base image.
#!/bin/bash | |
if [[ "$1" = "-h" || "$1" = "--help" || $1 = "help" || $1 = "man" ]] | |
then | |
echo "A tiny script to run a command against PHP 5.3, 5.4, 5.5 and 5.6 using homebrew" | |
echo | |
echo -e "\033[34mUsage:\033[0m" | |
echo -e "\033[34m------\033[0m" | |
echo -e " \033[32m$0\033[0m \033[33m<command>\033[0m" | |
echo |
These rules are adopted from the AngularJS commit conventions.
# set public key | |
# update VM | |
sudo apt-get update | |
# JAVA installation | |
sudo add-apt-repository ppa:webupd8team/java && sudo apt-get update && sudo apt-get install oracle-java7-installer && sudo apt-get install oracle-java7-set-default | |
# install git | |
sudo apt-get install git zip ant |