-
Provision B2 bucket: https://secure.backblaze.com/b2_buckets.htm
-
Provision B2 app key: https://secure.backblaze.com/app_keys.htm
-
Create
/etc/restic.env
:#!/bin/bash RESTIC_REPOSITORY="b2:restic-MYCLUSTER" RESTIC_PASSWORD=""
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[gitsheet] | |
root = "users" | |
path = "${{ id > 0 ? Math.floor(id/1000)*1000 || '0000' : 'pending' }}/${{ id }}" | |
[gitsheet.fields.id] | |
default = -1 | |
[gitsheet.fields.contact_points] | |
sort = [ 'id == null', 'slot', 'id', 'kind', 'label', 'data' ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "Code for Philly", | |
"website": "https://codeforphilly.org", | |
"events_url": "https://www.meetup.com/Code-for-Philly/", | |
"rss": "http://codeforphilly.org/project-updates?format=rss", | |
"projects_list_url": "http://codeforphilly.org/projects.csv", | |
"city": "Philadelphia, PA", | |
"latitude": "39.9523", | |
"longitude": "-75.1638", |
Optionally, begin the vfs-site projection branch with a snapshot of the legacy VFS:
emergence-source-http-legacy pull mysite.example.org
# using tree hash output at end of pull command
TREE_HASH=4b825dc642cb6eb9a060e54bf8d69288fbee4904
git commit-tree -m "snapshot mysite.example.org" "${TREE_HASH}"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[services.postgresql] | |
pkg_ident = "core/postgresql11" | |
[services.myapp] | |
pkg_ident = "myorigin/myapp" | |
[services.myapp.binds] | |
database = "postgresql" | |
[services.nginx] | |
pkg_ident = "emergence/nginx" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!{{pkgPathFor "core/bash"}}/bin/bash -e | |
if [ -f '{{pkg.svc_var_path}}/key' ]; then | |
APP_KEY="$(cat '{{pkg.svc_var_path}}/key')" | |
fi | |
APP_DEBUG='{{#if cfg.app.debug}}true{{/if}}' | |
APP_ENV='{{#if cfg.app.env}}{{cfg.app.env}}{{else}}production{{/if}}' | |
APP_URL='{{cfg.app.url}}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Multi-Stage Docker build: | |
# Laravel 5.8 + PHP73 + Postgres || MySQL | |
# | |
# @link https://laravel.com/docs/5.8 | |
# @link https://hub.docker.com/_/php | |
# @link https://hub.docker.com/_/mysql | |
# @link https://hub.docker.com/_/postgres | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AbstractSpreadsheetConnector | |
{ | |
// column maps | |
public static $studentColumns = [ | |
'Key' => 'ForeignKey', | |
'School ID Number' => 'StudentNumber', | |
'Student ID' => 'StudentNumber', | |
'Username' => 'Username', | |
'Password' => 'Password', | |
'Email' => 'Email', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.venv/ |
A workaround is needed to make file change notification work under Docker for Windows:
# install Python via Chocolatey
choco install python
# install workaround Python script via PIP
pip install docker-windows-volume-watcher
# activate watch mode for all running Docker containers
NewerOlder