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
git remote -v > report.txt | |
git rev-parse HEAD >> report.txt | |
uname -a >> report.txt | |
docker -v >> report.txt | |
docker-compose -v >> report.txt | |
echo "---------------------" >> report.txt | |
docker-compose logs --timestamps >> report.txt |
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
(ns workbench.rsr-logs | |
(:require [cheshire.core :as json] | |
[clojure.string :as s] | |
[clojure-csv.core :as csv] | |
[clj-time.coerce :as time-coerce] | |
[clj-time.core :as time] | |
[clj-time.format :as time-format] | |
[clojure.contrib.humanize :as human] | |
[clojure.string :as str])) |
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
#!/usr/bin/env bash | |
project=$1 | |
bucket=$(echo $project | tr -d "-") | |
gcloud config set project ${project} | |
gsutil rm -r gs://tmpdelete${bucket}/ | |
gsutil mb gs://tmpdelete${bucket}/ |
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
{ | |
"type": "record", | |
"name": "SurveyedLocale", | |
"namespace": "com.gallatinsystems.surveyal.domain", | |
"fields": [ | |
{ | |
"name": "organization", | |
"type": "string" | |
}, | |
{ |
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
(import 'java.text.SimpleDateFormat) | |
(let [lock (Object.) | |
date-format (SimpleDateFormat. "HH:mm:ss")] | |
(defn log [& msgs] | |
(locking lock | |
(apply println (str (.format date-format (java.util.Date.))) "-" (.getName (Thread/currentThread)) "-" msgs)))) | |
;; This is just for logging the connection number | |
(def connections-created (atom 0)) |
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
(import 'java.text.SimpleDateFormat) | |
(let [lock (Object.) | |
date-format (SimpleDateFormat. "HH:mm:ss")] | |
(defn log [& msgs] | |
(locking lock | |
(apply println (str (.format date-format (java.util.Date.))) "-" (.getName (Thread/currentThread)) "-" msgs)))) | |
;; This is just for logging the connection number | |
(def connections-created (atom 0)) |
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
@startuml | |
actor browser | |
participant nginx | |
participant backend | |
participant keycloak | |
browser -> nginx: /library (558.0B) | |
browser <-- nginx: 304 (266.0B) | |
browser -> backend: /api/library (464.0B) | |
browser <-- backend: 302 [OAuth_Token_Request_State] (547.0B) |