Skip to content

Instantly share code, notes, and snippets.

Smithi smyth64

View GitHub Profile
smyth64 /
Last active May 19, 2018
One Command to install Docker and Docker Compose on Ubuntu
sudo apt-get update &&
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common &&
curl -fsSL | sudo apt-key add - &&
sudo add-apt-repository \
"deb [arch=amd64] \
$(lsb_release -cs) \
smyth64 / Docker Compose Letsencrypt Reverse Proxy Setup
Last active Apr 20, 2018
Fast Docker Letsencrypt Reverse Proxy
View Docker Compose Letsencrypt Reverse Proxy Setup
docker network create webproxy &&
git clone proxy &&
cd proxy &&
cp .env.sample .env &&
sed -i -e 's/\/path\/to\/your\/nginx\/data/\.\/data/g' .env &&
docker-compose up -d
An example of a docker-compose project looks like this:
View permission_fix
#!/usr/bin/env bash
set -e
echo "Fixing permissions."
View gist:15ba4018b583e8d42e90
var log = new (require('captains-log'))();
var Stardog = require('stardog');
// Stardog is our database.
// To test this case you need a Stardog Server running.
var conn = new Stardog.Connection();
conn.setCredentials("admin", "admin");
You can’t perform that action at this time.