References:
From man page: man apt_preferences
References:
From man page: man apt_preferences
| # Clubhouse / git / deploy utility functions | |
| # | |
| # API docs: https://clubhouse.io/api | |
| # | |
| # Assuming the following: | |
| # 1. We have a range of git commits that represent the changes being deployed | |
| # 2. Our git branches and pull requests use the username/ch123/story-name format, | |
| # so that "ch123" ends up in a commit message | |
| # 3. We have a Clubhouse API token set to the $CLUBHOUSE_API_TOKEN environment variable | |
| # |
| #!/usr/bin/env bash | |
| # adopted from https://gist.github.com/Belphemur/3c022598919e6a1788fc | |
| # includes neverbleed patch | |
| # names of latest versions of each package | |
| export NGINX_VERSION=1.11.1 | |
| export VERSION_PCRE=pcre-8.38 | |
| export VERSION_LIBRESSL=libressl-2.4.1 | |
| export VERSION_NGINX=nginx-$NGINX_VERSION |
| # How to use "acme.sh" to set up Lets Encrypt without root permissions | |
| # See https://github.com/Neilpang/acme.sh for more | |
| # This assumes that your website has a webroot at "/var/www/<domain>" | |
| # I'll use the domain "EXAMPLE.com" as an example | |
| # When this is done, there will be an "acme" user that handles issuing, | |
| # updating, and installing certificates. This account will have the following | |
| # (fairly minimal) permissions: | |
| # - Host files at http://EXAMPLE.com/.well-known/acme-challenge |
| const fs = require('fs') | |
| const WebSocket = require('ws'); | |
| const wsoptions = { | |
| cert: fs.readFileSync('../../.config/lxc/client.crt'), | |
| key: fs.readFileSync('../../.config/lxc/client.key'), | |
| rejectUnauthorized: false | |
| } | |
| var ws = new WebSocket('wss://127.0.0.1:8443/1.0/events?type=operation', wsoptions); |
| about | |
| admin | |
| blog | |
| calendar | |
| contact | |
| copyright | |
| dashboard | |
| errors | |
| events |
| # -*- coding: utf-8 -*- | |
| from django.db.models import Model | |
| from django.contrib.contenttypes.fields import GenericForeignKey | |
| from django.db.utils import IntegrityError | |
| from django.db import transaction | |
| from urllib import parse | |
| try: | |
| from django.apps import apps |
| FROM ubuntu:14.04 | |
| ENV BUCKET your-s3-bucket | |
| RUN apt-get update && apt-get install -y wget \ | |
| build-essential python-dev \ | |
| libssl-dev libffi-dev \ | |
| libpcre3-dev \ | |
| libmemcached-dev \ | |
| libpq-dev \ |
| (function () { | |
| var perfBar = function(budget) { | |
| window.onload = function() { | |
| window.performance = window.performance || window.mozPerformance || window.msPerformance || window.webkitPerformance || {}; | |
| var timing = window.performance.timing, | |
| now = new Date().getTime(), | |
| output, loadTime; |