Skip to content

Instantly share code, notes, and snippets.

PB.targets in Compile := Seq(
scalapb.gen() -> (sourceManaged in Compile).value
)
lazy val generateEventSerializer = TaskKey[Seq[File]]("generateEventSerializer", "Write code for me.")
generateEventSerializer := {
import sys.process._
"./make-proto-serializer.sh".!
version: '2'
services:
db:
image: postgres:9.6
command: postgres -c 'max_connections=300' -c 'shared_buffers=4GB' -c 'work_mem=16MB' -c 'maintenance_work_mem=1GB' -c 'bgwriter_lru_maxpages=200' -c 'commit_delay=10' -c 'checkpoint_timeout=30min' -c 'checkpoint_warning=30min' -c 'log_timezone=Canada/Mountain' -c 'timezone=Canada/Mountain'
volumes:
- ${PWD}/docker/db/initdb.sh:/docker-entrypoint-initdb.d/initdb.sh
ports:
- "5432:5432"
#!/usr/bin/env bash
tr=trigger
tr='==============_AUTOGENERATED_-_EDITS_BELOW_WILL_BE_CLOBBERED'
[ ! -f test ] && cat <<EOF >test
this
is a
trigger
test
@retrospectacus
retrospectacus / runme.sh
Last active October 19, 2020 17:10
Thing to run on a schedule that updates some sort of config. It is a toy to illustrate/test some unix/bash constructs.
#!/usr/bin/env bash
tr=trigger
tr='==============_AUTOGENERATED_-_EDITS_BELOW_WILL_BE_CLOBBERED'
[ ! -f test.conf ] && cat <<EOF >test.conf
this
is a
trigger
test
<?php
function do_not_change_this_function() {
echo "Something is happening\n";
echo "this is important data\n";
ob_flush();