This file contains hidden or 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
| -- modified from: https://www.cybertec-postgresql.com/en/er-diagrams-with-sql-and-mermaid/ | |
| WITH target_tables AS ( | |
| SELECT DISTINCT(c.relname) | |
| FROM pg_class c | |
| JOIN pg_namespace n ON n.oid = c.relnamespace | |
| LEFT join pg_attribute a ON c.oid = a.attrelid | |
| AND a.attnum > 0 | |
| AND NOT a.attisdropped | |
| LEFT JOIN pg_type t ON a.atttypid = t.oid | |
| WHERE c.relkind in ('r', 'p') |
This file contains hidden or 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
| alias: Adjust Adaptive Lighting Controlled Lights While Off | |
| mode: restart | |
| triggers: | |
| - trigger: time_pattern | |
| minutes: /5 | |
| variables: | |
| adjust_hue: true | |
| adjust_inovelli: true | |
| - trigger: state | |
| entity_id: !include ../../entity_lists/adaptive-lighting.yaml |
This file contains hidden or 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
| #!/bin/bash | |
| set -e | |
| JQ="jq --raw-output --exit-status" | |
| if [ -x "$(command -v kustomize)" ]; then | |
| KUSTOMIZE="kustomize build" | |
| else | |
| KUSTOMIZE="kubectl kustomize" |
This file contains hidden or 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
| apiVersion: apiextensions.k8s.io/v1beta1 | |
| kind: CustomResourceDefinition | |
| metadata: | |
| name: managedcertificates.networking.gke.io | |
| spec: | |
| group: networking.gke.io | |
| names: | |
| kind: ManagedCertificate | |
| plural: managedcertificates | |
| shortNames: |
This file contains hidden or 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
| /* @flow */ | |
| import { | |
| forOwn, | |
| size, | |
| get, | |
| transform, | |
| noop, | |
| } from 'lodash'; |
This file contains hidden or 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
| /* @flow */ | |
| import React, { type Element } from 'react'; | |
| import Relay from 'react-relay/classic'; | |
| class CreateListMutation extends Relay.Mutation { | |
| static fragments = { | |
| viewer: () => Relay.QL` | |
| fragment on User { | |
| id |
This file contains hidden or 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
| #!/bin/bash | |
| set -e | |
| JQ="jq --raw-output --exit-status" | |
| # @env region | |
| # @env task_family | |
| # @returns via stderr | |
| locate-task() { |
This file contains hidden or 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
| #!/bin/bash | |
| set -e | |
| JQ="jq --raw-output --exit-status" | |
| escape-json() { | |
| python -c "import sys; import json; sys.stdout.write(json.dumps(sys.stdin.read().strip())[1:-1])" | |
| } |
This file contains hidden or 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
| var through = require('through2'); | |
| var setup = function(b, cb) { | |
| b.on('reset', cb); | |
| cb(); | |
| }; | |
| module.exports = function offsetify(b, externalBundles) { | |
| setup(b, function() { | |
| b.pipeline.get('sort').push(through.obj(function(row, enc, next) { |
This file contains hidden or 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
| var Liftoff = require('liftoff'); | |
| var argv = require('minimist')(process.argv.slice(2)); | |
| var invoke = function(env) { | |
| console.log('modulePath: %j', env.modulePath); | |
| console.log('configBase: %j', env.configBase); | |
| console.log('cwd: %j', env.cwd); | |
| }; | |
| var liftoff = new Liftoff({ |
NewerOlder