Skip to content

Instantly share code, notes, and snippets.

@lucj
lucj / aa-status
Created August 23, 2016 19:51
aa-status-0
root@node1:~# aa-status
apparmor module is loaded.
13 profiles are loaded.
13 profiles are in enforce mode.
/sbin/dhclient
/usr/bin/lxc-start
/usr/lib/NetworkManager/nm-dhcp-client.action
/usr/lib/NetworkManager/nm-dhcp-helper
/usr/lib/connman/scripts/dhclient-script
/usr/lib/lxd/lxd-bridge-proxy
@lucj
lucj / aa-status
Created August 23, 2016 19:49
aa-status-1
root@node1:~# aa-status
apparmor module is loaded.
13 profiles are loaded.
13 profiles are in enforce mode.
/sbin/dhclient
/usr/bin/lxc-start
/usr/lib/NetworkManager/nm-dhcp-client.action
/usr/lib/NetworkManager/nm-dhcp-helper
/usr/lib/connman/scripts/dhclient-script
/usr/lib/lxd/lxd-bridge-proxy
@lucj
lucj / docker
Created August 23, 2016 13:35
Docker AppArmor profile
#include <tunables/global>
profile docker-default flags=(attach_disconnected,mediate_deleted) {
#include <abstractions/base>
network,
capability,
2 Raspberry one PI 2 B+ and one PI 3 running Raspbian
Version
pi@pi2:~ $ docker version
Client:
Version: 1.12.1
API version: 1.24
Go version: go1.6.3
Git commit: 23cf638
@lucj
lucj / error.sh
Created August 19, 2016 13:14
letsencrypt-error
2016/08/19 13:02:38 [notice] 135#135: signal process started
Generating RSA private key, 2048 bit long modulus
...............................+++
...........................................................................................+++
e is 65537 (0x10001)
Signing certificates from https://acme-v01.api.letsencrypt.org ...
Parsing account key...
Parsing CSR...
Registering account...
Registered!
@lucj
lucj / gitlab.rb
Created August 9, 2016 04:55
gitlab-https-setup
## Url on which GitLab will be reachable.
## For more details on configuring external_url see:
## https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/configuration.md#configuring-the-external-url-for-gitlab
external_url "https://gitlab.mydomain.com"
################
# GitLab Nginx #
################
## see: https://gitlab.com/gitlab-org/omnibus-gitlab/tree/master/doc/settings/nginx.md
logentries:
command: '-t 82855f8b-5341-34d5-3e54-12b612c26efa --no-stats'
image: 'logentries/docker-logentries'
restart: always
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
@lucj
lucj / docker-compose.yml
Last active August 7, 2016 11:51
compose-example-1
version: '2'
services:
# Data store
db:
image: mongo:3.2
volumes:
- mongo-data:/data/db
expose:
- "27017"
# Session store