Skip to content

Instantly share code, notes, and snippets.

View exaV's full-sized avatar

Patrick Del Conte exaV

View GitHub Profile
@exaV
exaV / README.md
Last active September 19, 2023 09:56
Ngninx template for Openshift with ConfigMap

Ngninx template for Openshift

Create a full deployment for an Nginx Proxy that reads its configuration from a config map.

The config map can be edited online and only requires a rolling deployment to take effect.

Quickstart:

oc new-app -f https://gist.githubusercontent.com/exaV/978c4d9ac66b2940da141340f08bb82a/raw/nginx-template.yaml -p NAME="my-proxy"

grammar cql;
//query language losely based on CQL https://www.loc.gov/standards/sru/cql/spec.html
CUSTOM_QUERY_TOKEN : 'name' | 'lastname';
//TOKENS
LIKE : 'like' | '=' ;
EQUALS : 'eq' | 'equals' | 'exact' | 'is' ;
GT : 'greater' | '>' | 'after' ;
LT : 'smaller' | '<' | 'before' ;
@exaV
exaV / call.py
Last active September 17, 2016 21:42
call(phonenumber)
say("hi")
say(msg)
promtForAnswer()
hangup()
def promtForAnswer():
result = ask("Press 1 if you understood this message Press 2 to hear it again Press 3 to call your emergency number", {
"choices":"1,2,3",
"terminator":"#",
@exaV
exaV / sms.py
Created September 17, 2016 10:19
if not currentCall is None:
#helllsfsnäkg
msg = currentCall.initialText
if msg == "yes":
say("go get some")
else:
call(phonenumber, {"network":"SMS"})
say(msg)