Here's the canonical TOML example from the TOML README, and a YAML version of the same. Which looks nicer?
|
Here's the canonical TOML example from the TOML README, and a YAML version of the same. Which looks nicer?
|
┌──────────┐ | |
──┤ Overview ├───────────────────────────────────────────────────────────────── | |
└──────────┘ | |
$ npm install --save bluebird | |
const Promise = require('bluebird') |
Create file /etc/systemd/system/[email protected]
. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin
, you should use paths specific for your environment.
[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service
-- Enable pl/v8: | |
CREATE EXTENSION plv8; | |
-- Create json history table: | |
CREATE TABLE json_history (id BIGSERIAL PRIMARY KEY, tstamp timestamp DEFAULT now(), table_name text, column_name text, target_id bigint, transform json); | |
-- Create test table: | |
CREATE TABLE test_json (id BIGSERIAL PRIMARY KEY, data JSON); | |
-- Enable history tracking on test_json.data: |
# The initial version | |
if [ ! -f .env ] | |
then | |
export $(cat .env | xargs) | |
fi | |
# My favorite from the comments. Thanks @richarddewit & others! | |
set -a && source .env && set +a |
# https://docs.docker.com/engine/admin/systemd/ | |
Many Linux distributions use systemd to start the Docker daemon. This document shows a few examples of how to customize Docker’s settings. | |
Starting the Docker daemon | |
Once Docker is installed, you will need to start the Docker daemon. | |
$ sudo systemctl start docker | |
# or on older distributions, you may need to use | |
$ sudo service docker start | |
If you want Docker to start at boot, you should also: |
docker logs nginx 2>&1 | grep "127." | |
# ref: http://stackoverflow.com/questions/34724980/finding-a-string-in-docker-logs-of-container |
####Rets Rabbit http://www.retsrabbit.com
Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.
!! | |
!! Implementation of JSONPatch (http://jsonpatch.com/) using PostgreSQL >= 9.5 | |
!! | |
CREATE OR REPLACE FUNCTION jsonb_copy(JSONB, TEXT[], TEXT[]) RETURNS JSONB AS $$ | |
DECLARE | |
retval ALIAS FOR $1; | |
src_path ALIAS FOR $2; | |
dst_path ALIAS FOR $3; | |
tmp_value JSONB; |