I'm using this script to build the package inside a Docker container:
# docker run --rm -ti ubuntu
Afterwards the container needs some preparations:
@-moz-document domain("workflowy.com") { | |
@import 'https://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans+Mono'; | |
@font-face { | |
font-family: 'FontAwesome'; | |
font-style: normal; | |
font-weight: 400; | |
src: local('FontAwesome'), url(//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/fonts/fontawesome-webfont.woff) format('woff'); | |
} | |
#controlsLeft { |
package main | |
import ( | |
"log" | |
"os/exec" | |
"strconv" | |
"time" | |
"golang.org/x/net/context" | |
) |
#!/bin/bash | |
COLOR_RED="\033[0;31m" | |
COLOR_GREEN="\033[0;32m" | |
COLOR_CYAN="\033[0;36m" | |
COLOR_PLAIN="\033[0m" | |
function error { | |
echo -e "${COLOR_RED}$@${COLOR_PLAIN}" | |
} |
#!/bin/bash | |
KEY=$1 | |
if [ -z "${KEY}" ] || ! (gpg --list-secret-keys | grep -q ${KEY}); then | |
echo "No key given or no secret key found for '${KEY}'" | |
exit 2 | |
fi | |
# Read password for this key |
#!/bin/bash | |
KEY_NAME=$1 | |
if ! ( which lpass > /dev/null ); then | |
echo "LastPass CLI is required." | |
exit 2 | |
fi | |
# Require something to be passed to this command |
Data directories are created in /home/coreos
and mounted into the container using volume cli options of docker run. All data the container writes is stored on the host and as long as the host persists safe against container restarts / recreates.
package main | |
import ( | |
"database/sql" | |
"fmt" | |
"gopkg.in/redis.v2" | |
_ "github.com/go-sql-driver/mysql" | |
) |