Based on this blogpost.
Install with Homebrew:
$ brew install postgresqlRun server:
| using AutoStep.Extensions; | |
| using Microsoft.Extensions.DependencyModel; | |
| using NuGet.Common; | |
| using NuGet.Configuration; | |
| using NuGet.Frameworks; | |
| using NuGet.Packaging; | |
| using NuGet.Packaging.Core; | |
| using NuGet.Packaging.Signing; | |
| using NuGet.Protocol.Core.Types; | |
| using NuGet.Resolver; |
Based on this blogpost.
Install with Homebrew:
$ brew install postgresqlRun server:
| import * as pulumi from "@pulumi/pulumi"; | |
| import * as hc from "@pulumi/hcloud"; | |
| import { randomUUID } from "crypto"; | |
| interface DynamicProviderOutputs { | |
| name: string | |
| configuration: {[index:string]: any}; | |
| } | |
| class CtrlConfigurationProvider implements pulumi.dynamic.ResourceProvider { |
| CREATE OR REPLACE FUNCTION table_update_notify() RETURNS trigger AS $$ | |
| DECLARE | |
| id bigint; | |
| BEGIN | |
| IF TG_OP = 'INSERT' OR TG_OP = 'UPDATE' THEN | |
| id = NEW.id; | |
| ELSE | |
| id = OLD.id; | |
| END IF; | |
| PERFORM pg_notify('table_update', json_build_object('table', TG_TABLE_NAME, 'id', id, 'type', TG_OP)::text); |
| declare type RecordedEvent = { | |
| body: any | |
| isJson: boolean | |
| data: any | |
| // TODO: add props | |
| } | |
| declare type ProjectionState = Record<string, any> | |
| declare type HandlerFunction = |
| /*** Original: https://stackoverflow.com/a/45774526 ***/ | |
| namespace Common.CIQ.Helpers | |
| { | |
| using System.Collections.Generic; | |
| using System.Globalization; | |
| using System.Text.RegularExpressions; | |
| public static class NameCaseHelper | |
| { | |
| private static readonly Dictionary<string, string> Exceptions = new() |
| /*** Original: https://stackoverflow.com/a/45774526 ***/ | |
| namespace Common.Lib.Helpers | |
| { | |
| using System.Collections.Generic; | |
| using System.Globalization; | |
| using System.Text.RegularExpressions; | |
| public static class NameCaseHelper | |
| { | |
| private static readonly Dictionary<string, string> Exceptions = new() |
| sudo echo 'deb http://deb.debian.org/debian stretch-backports main' | sudo tee -a /etc/apt/sources.list > /dev/null | |
| sudo apt update | |
| sudo apt install certbot python-certbot-nginx -t stretch-backports |