Skip to content

Instantly share code, notes, and snippets.

Smithi smyth64

View GitHub Profile
@smyth64
smyth64 / docker-and-docker-compose-one-click-ubuntu-install.sh
Last active May 19, 2018
One Command to install Docker and Docker Compose on Ubuntu
View docker-and-docker-compose-one-click-ubuntu-install.sh
sudo apt-get update &&
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common &&
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - &&
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
@smyth64
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 https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion 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
UNUSED_USER_ID=21338
UNUSED_GROUP_ID=21337
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.setEndpoint("localhost:5820");
conn.setCredentials("admin", "admin");
You can’t perform that action at this time.