See Configuring NGINX to accept the PROXY Protocol - NGINX
upstream wsserver {
server 127.0.0.1:9000;
}
> find /Applications/Xcode.app -name clang | |
# Pick one | |
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c /dev/null -dM -E |
files: | |
"/etc/nginx/conf.d/01_websockets.conf": | |
mode: "000644" | |
owner: root | |
group: root | |
content: | | |
upstream nodejs { | |
server 127.0.0.1:8081; | |
keepalive 256; | |
} |
See Configuring NGINX to accept the PROXY Protocol - NGINX
upstream wsserver {
server 127.0.0.1:9000;
}
let race (a:Async<'a>) (b:Async<'a>) : Async<'a * Async<'a>> = async { | |
return! | |
Async.FromContinuations <| fun (ok,err,cnc) -> | |
let state = ref 0 | |
let iv = new TaskCompletionSource<_>() | |
let ok a = | |
if (Interlocked.CompareExchange(state, 1, 0) = 0) then | |
ok (a, iv.Task |> Async.AwaitTask) | |
else | |
iv.SetResult a |
[<Struct>] | |
type OptionalBuilder = | |
member __.Bind(opt, binder) = | |
match opt with | |
| Some value -> binder value | |
| None -> None | |
member __.Return(value) = | |
Some value | |
let optional = OptionalBuilder() |
;-- On Startup | |
vol_Step = 3 | |
;-- Hotkeys | |
;-- Volume adjust | |
HotKey #PgUp, volUp ; Win+Page Up | |
HotKey #PgDn, volDn ; Win+Page Down | |
HotKey #End, volMute ; Win+End | |
;-- Browser Navigation | |
HotKey !#Left, browserBack ; Ctrl+Win+Left |
# Add the following to your existing VPC CF stack | |
# create 2 subnets, lambdas like to be in multiple subnets | |
Private1: | |
Type: AWS::EC2::Subnet | |
Properties: | |
VpcId: !Ref VPC | |
AvailabilityZone: !Select [ 0, !GetAZs ] | |
CidrBlock: !Ref Private1CIDR |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: keycloak-postgres | |
labels: | |
service: keycloak | |
layer: security | |
spec: | |
ports: | |
- port: 5432 |
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
#!/bin/sh | |
command="${*}" | |
printf "Initialized REPL for `%s`\n" "$command" | |
printf "%s> " "$command" | |
read -r input | |
while [ "$input" != "" ]; | |
do | |
eval "$command $input" | |
printf "%s> " "$command" |