1
0
mirror of /repos/dotTiddlywiki.git synced 2025-12-30 07:31:33 +01:00
This commit is contained in:
Aiko Mastboom 2019-05-13 21:54:17 +02:00
parent e3cd4097a4
commit e2b04070cd
9 changed files with 127 additions and 42 deletions

View File

@ -1,6 +1,6 @@
created: 20160617085508353
creator: user
modified: 20160822074035097
modified: 20190510115004160
modifier: user
tags:
title: AngularJS/RxJS
@ -10,4 +10,7 @@ type: text/vnd.tiddlywiki
: https://medium.com/google-developer-experts/angular-introduction-to-reactive-extensions-rxjs-a86a7430a61f
; Combining Multiple RxJs Streams In Angular 2.0
: http://www.syntaxsuccess.com/viewarticle/combining-multiple-rxjs-streams-in-angular-2.0
: http://www.syntaxsuccess.com/viewarticle/combining-multiple-rxjs-streams-in-angular-2.0
; Migrate v4 -> v5
: https://github.com/ReactiveX/rxjs/blob/5.x/MIGRATION.md

View File

@ -1,6 +1,6 @@
created: 20160405202927748
creator: user
modified: 20161118215802873
modified: 20180714154256442
modifier: user
tags:
title: Domotica
@ -22,6 +22,17 @@ type: text/vnd.tiddlywiki
;
: http://www.orvibo.com/index_en.html
;Timezone -> Amsterdam
```
HypriotOS/armv7: pirate@pi47.aiko.sh in ~
$ docker exec -it pi_domoticz_1 bash
root@domoticz:/# mv /etc/localtime /etc/localtime.orig
root@domoticz:/# ln -s /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime
root@domoticz:/# date
Sat Jul 14 17:38:23 CEST 2018
```
```
HypriotOS: pi@pi2.aiko.sh in /mnt/pi/data

View File

@ -1,6 +1,6 @@
created: 20161105234744185
creator: user
modified: 20170204191247225
modified: 20180830082851161
modifier: user
tags: docker logstash
title: ELK Stack
@ -31,4 +31,37 @@ type: text/vnd.tiddlywiki
: https://github.com/francolaiuppa/docker-gelf-logging-example
; A connector that collects data using 'appmetrics' and sends it to ElasticSearch for use with Kibana
: https://github.com/RuntimeTools/appmetrics-elk
: https://github.com/RuntimeTools/appmetrics-elk
https://discuss.elastic.co/t/solved-weekly-indexes-instead-of-daily/56871
! cleanup
* https://hobo.house/2016/02/18/how-to-manually-clean-indexes-from-elasticsearch/
* https://www.elastic.co/guide/en/elasticsearch/client/curator/current/singleton-cli.html
```
virtualenv elk_cleanup
cd elk_cleanup
. bin/activate
pip install elasticsearch-curator
```
!!dev
```
curator_cli --host 192.168.0.238 show_indices --verbose
curator_cli --dry-run --timeout 600 --host 192.168.0.238 delete_indices --filter_list '[{"filtertype":"age","source":"creation_date","direction":"older","unit":"days","unit_count":31},{"filtertype":"pattern","kind":"prefix","value":"logstash"}]'
```
!!live
```
curator_cli --host 188.166.116.203 show_indices --verbose
curator_cli --dry-run --timeout 600 --host 188.166.116.203 delete_indices --filter_list '[{"filtertype":"age","source":"creation_date","direction":"older","unit":"days","unit_count":31},{"filtertype":"pattern","kind":"prefix","value":"logstash"}]'
```

View File

@ -1,6 +1,6 @@
created: 20171113142528313
creator: user
modified: 20171116221552388
modified: 20180226172112646
modifier: user
tags:
title: deploy to LIVE
@ -18,8 +18,8 @@ unzip -d .dobi/live.auth ~/Downloads/auth-productie.zip # taken from LastPass
export KEY_DIRECTORY_PATH=`pwd`/.dobi/live.auth
VERSION=3.1.8-509d6a3802 DB_PASSWORD=JKkqy78987df98sf982h3kj2hkjPwkjdbfkjwbfssj ./operations/deployment/deploy.auth.digitalefactuur.nl.sh
VERSION=3.1.8-509d6a3802 DB_PASSWORD=JKkqy78987df98sf982h3kj2hkjPwkjdbfkjwbfssj ./operations/deployment/deploy.auth.vrendly.nl.sh
VERSION=3.1.18-60d9d753c7 DB_PASSWORD=JKkqy78987df98sf982h3kj2hkjPwkjdbfkjwbfssj ./operations/deployment/deploy.auth.digitalefactuur.nl.sh
VERSION=3.1.18-60d9d753c7 DB_PASSWORD=JKkqy78987df98sf982h3kj2hkjPwkjdbfkjwbfssj ./operations/deployment/deploy.auth.vrendly.nl.sh
```
@ -32,8 +32,9 @@ VERSION=3.1.8-509d6a3802 DB_PASSWORD=JKkqy78987df98sf982h3kj2hkjPwkjdbfkjwbfssj
```sh
# export KEY_DIRECTORY_PATH=/Users/fruit/Development/df-genifer-auth/.dobi/live.auth
VERSION=0.3.37-9c80990b77 APP_KEY=base64:4MYL3w/bnFCUePRpkReFoWQghPgVVKMfc19ehBCyVks= DB_PASSWORD=JKjkshfwehufy2dwegf723gewJJsjgcgsi84345345 TOKEN_SECRET=2AYMLm7sx8PbrrFs9PD88z9zGr8bJ49q ./operations/deployment/deploy.portal.genifer.xyz.sh
VERSION=0.8.0_INTEGRATION-d10c68616b
VERSION=0.8.6-12c401c691
VERSION=0.8.10-02a9cfb1eb APP_KEY=base64:4MYL3w/bnFCUePRpkReFoWQghPgVVKMfc19ehBCyVks= DB_PASSWORD=JKjkshfwehufy2dwegf723gewJJsjgcgsi84345345 TOKEN_SECRET=2AYMLm7sx8PbrrFs9PD88z9zGr8bJ49q ./operations/deployment/deploy.portal.genifer.xyz.sh
```
* https://portal.genifer.xyz/api/version
@ -42,16 +43,21 @@ VERSION=0.3.37-9c80990b77 APP_KEY=base64:4MYL3w/bnFCUePRpkReFoWQghPgVVKMfc19ehBC
Config is read from disk for LIVE deployment. You need to put contents of ''LASTPASS "portal-api.vrendly live victor config"'' secret note into `./operations/deployment/portal-api.vrendly.nl.json`
```sh
VERSION=3.0.74-39acb24894 DB_PASSWORD=Hjf729hvkjlller7cg37rgllhukKhfjdkkskHdf839 TOKEN_SECRET=dowkfMsUrknjkGegnwguGwEiQqr4NW6Q ./operations/deployment/deploy.portal-api.vrendly.nl.sh
VERSION=3.1.48-f475fe1e82
VERSION=3.2.4-d5a855811a DB_PASSWORD=Hjf729hvkjlller7cg37rgllhukKhfjdkkskHdf839 TOKEN_SECRET=dowkfMsUrknjkGegnwguGwEiQqr4NW6Q ./operations/deployment/deploy.portal-api.vrendly.nl.sh
```
* https://portal-api.vrendly.nl/site/version
! vrendly
```sh
VERSION=2.0.60-22f135a730./operations/deployment/deploy.acceptatie.vrendly.bjoola.com.sh
VERSION=2.0.97-8a1ef1c865
VERSION=2.0.114-20c1301db6
VERSION=2.1.5-0b970d1e5e ./operations/deployment/deploy.portal.vrendly.nl.sh
```
* https://acceptatie.vrendly.bjoola.com
* https://portal.vrendly.nl
* https://debitor.vrendly.nl
* http://go.vrendly.nl -302-> https://debitor.vrendly.nl/app/#/token-login
* http://ideal.vrendly.nl -302-> https://debitor.vrendly.nl/app/#/token-login

View File

@ -1,6 +1,6 @@
created: 20171027093032805
creator: user
modified: 20171116175642313
modified: 20180312173006134
modifier: user
tags:
title: deploy to acceptatie-monolith
@ -22,7 +22,7 @@ unzip -d .dobi/acceptatie.auth.bjoola.com ~/Downloads/auth-acceptatie.zip # take
export KEY_DIRECTORY_PATH=`pwd`/.dobi/acceptatie.auth.bjoola.com
VERSION=3.1.8-509d6a3802 DB_PASSWORD=j203hfkdkfjsdkf ./operations/deployment/deploy.acceptatie.auth.bjoola.com.sh
VERSION=3.1.14-67e38f7e93 DB_PASSWORD=j203hfkdkfjsdkf ./operations/deployment/deploy.acceptatie.auth.bjoola.com.sh
```
* https://acceptatie.auth.bjoola.com/info/version
@ -34,14 +34,14 @@ VERSION=3.1.8-509d6a3802 DB_PASSWORD=j203hfkdkfjsdkf ./operations/deployment/dep
# export KEY_DIRECTORY_PATH=/Users/fruit/Development/df-genifer-auth/.dobi/acceptatie.auth.bjoola.com
VERSION=0.4.3-6775fead6d APP_KEY=base64:+sPD7qv0Ry3RPFbhsFKZoKYATLd30YIPS4G6D5CSVWA= DB_PASSWORD=Bcd98992221 TOKEN_SECRET=gKnm7iwCaDfWzG84hCR37C4EH3YH662Y ./operations/deployment/deploy.acceptatie.genifer.bjoola.com.sh
VERSION=0.5.6-5b84c855ca APP_KEY=base64:+sPD7qv0Ry3RPFbhsFKZoKYATLd30YIPS4G6D5CSVWA= DB_PASSWORD=Bcd98992221 TOKEN_SECRET=gKnm7iwCaDfWzG84hCR37C4EH3YH662Y ./operations/deployment/deploy.acceptatie.genifer.bjoola.com.sh
```
* https://acceptatie.genifer.bjoola.com/api/version
! victor
```sh
# Vrendly
VERSION=3.1.17-115c925513 DB_PASSWORD=234kjhkjHJ TOKEN_SECRET=xPDp763hJvRy732ETXHyUAj8f8VNcs27 ./operations/deployment/deploy.acceptatie.vrendly-api.bjoola.com.sh
VERSION=3.1.22-a48f7b4e10 DB_PASSWORD=234kjhkjHJ TOKEN_SECRET=xPDp763hJvRy732ETXHyUAj8f8VNcs27 ./operations/deployment/deploy.acceptatie.vrendly-api.bjoola.com.sh
```
* https://acceptatie.vrendly-api.bjoola.com/site/version
@ -57,14 +57,16 @@ VERSION=3.1.20-ebc55aa393 DB_PASSWORD=4dAssfds221 TOKEN_SECRET=dg2o29MZLEBNA3dJ9
! vrendly
```sh
VERSION=2.0.79-bfcfce5ad4 ./operations/deployment/deploy.acceptatie.vrendly.bjoola.com.sh
#VERSION=2.0.79-bfcfce5ad4 ./operations/deployment/deploy.acceptatie.vrendly.bjoola.com.sh
# This is the https://github.com/kantoor-f12/vrendly-angular/pull/1009 branch for demonstration purposes
VERSION=2.0.90-998796ff22 ./operations/deployment/deploy.acceptatie.vrendly.bjoola.com.sh
```
* https://acceptatie.vrendly.bjoola.com
! creditForce
```sh
VERSION=2.0.80-cf-4b452877e5 ./operations/deployment/deploy.acceptatie.creditforce.bjoola.com.sh
VERSION=2.0.92-cf-f6584413bc ./operations/deployment/deploy.acceptatie.creditforce.bjoola.com.sh
```
* https://acceptatie.creditforce.bjoola.com

View File

@ -1,6 +1,6 @@
created: 20171026101610571
creator: user
modified: 20171123170341054
modified: 20180312173007934
modifier: user
tags:
title: deploy to dev-monolith
@ -21,9 +21,8 @@ unzip ~/Downloads/auth-development.zip # taken from LastPass
export KEY_DIRECTORY_PATH=`pwd`/.dobi/dev.auth.bjoola.com
#git checkout hash with correct version
VERSION=3.1.8-509d6a3802 DB_PASSWORD=Hkskskppapa1 ./operations/deployment/deploy.dev.auth.bjoola.com.sh dev-monolith dev.auth.bjoola.com `pwd`/.dobi/dev.auth.bjoola.com
VERSION=3.1.17-4bdf2aebdc DB_PASSWORD=Hkskskppapa1 ./operations/deployment/deploy.dev.auth.bjoola.com.sh dev-monolith dev.auth.bjoola.com `pwd`/.dobi/dev.auth.bjoola.com
# version: "3.1.8-509d6a3802"
```
* https://dev.auth.bjoola.com/info/version
@ -33,7 +32,7 @@ VERSION=3.1.8-509d6a3802 DB_PASSWORD=Hkskskppapa1 ./operations/deployment/deploy
```sh
# export KEY_DIRECTORY_PATH=/Users/fruit/Development/df-genifer-auth/.dobi/dev.auth.bjoola.com
VERSION=0.4.4-ee19b0d147 APP_KEY=base64:fV8Ff5D3qKUWkM0wm5kUBN2I/TwMPRg4Bfqj0K7+xIQ= DB_PASSWORD=VBbakidofsdooos ./operations/deployment/deploy.dev.genifer.bjoola.com.sh
VERSION=0.8.14-47d4d3ff92 APP_KEY=base64:fV8Ff5D3qKUWkM0wm5kUBN2I/TwMPRg4Bfqj0K7+xIQ= DB_PASSWORD=VBbakidofsdooos ./operations/deployment/deploy.dev.genifer.bjoola.com.sh
```
* https://dev.genifer.bjoola.com/api/version
@ -41,13 +40,19 @@ VERSION=0.4.4-ee19b0d147 APP_KEY=base64:fV8Ff5D3qKUWkM0wm5kUBN2I/TwMPRg4Bfqj0K7+
! victor
```sh
# Vrendly
VERSION=3.1.20-ebc55aa393 DB_PASSWORD=HJkj234ouoa TOKEN_SECRET=secret ./operations/deployment/deploy.dev.vrendly-api.bjoola.com.sh
VERSION=3.3.4-ed25357fdb DB_PASSWORD=HJkj234ouoa TOKEN_SECRET=secret ./operations/deployment/deploy.dev.vrendly-api.bjoola.com.sh
```
* https://dev.vrendly-api.bjoola.com/site/version
```sh
# Debbt
VERSION=3.3.6-42517d4c4c DB_PASSWORD=MhNx3=WDnH TOKEN_SECRET=secret ./operations/deployment/deploy.dev.debbt-api.bjoola.com.sh
```
* https://dev.debbt-api.bjoola.com/site/version
```sh
# CreditForce
VERSION=3.1.20-ebc55aa393 DB_PASSWORD=4sdf2As221 TOKEN_SECRET=secret ./operations/deployment/deploy.dev.creditforce-api.bjoola.com.sh
VERSION=3.2.16-fa75fd7c62 DB_PASSWORD=4sdf2As221 TOKEN_SECRET=secret ./operations/deployment/deploy.dev.creditforce-api.bjoola.com.sh
```
* https://dev.creditforce-api.bjoola.com/site/version
@ -55,15 +60,13 @@ VERSION=3.1.20-ebc55aa393 DB_PASSWORD=4sdf2As221 TOKEN_SECRET=secret ./operation
! vrendly
```sh
VERSION=2.0.79-94499ddca7 ./operations/deployment/deploy.dev.vrendly.bjoola.com.sh
VERSION=2.1.12-d5abd7fe71 ./operations/deployment/deploy.dev.vrendly.bjoola.com.sh
```
* https://dev.vrendly.bjoola.com
! creditForce
```sh
VERSION=2.0.80-cf-4b452877e5 ./operations/deployment/deploy.dev.creditforce.bjoola.com.sh
VERSION=2.1.11-cf-bbbf1b7636 ./operations/deployment/deploy.dev.creditforce.bjoola.com.sh
```
* https://dev.creditforce.bjoola.com
* https://dev.creditforce.bjoola.com

View File

@ -1,6 +1,6 @@
created: 20171113135400229
creator: user
modified: 20171116154511509
modified: 20171213135608681
modifier: user
tags:
title: deploy to staging-monolith
@ -31,23 +31,23 @@ VERSION=3.1.8-509d6a3802 DB_PASSWORD=Pofsdfd2sf ./operations/deployment/deploy.s
# export KEY_DIRECTORY_PATH=/Users/fruit/Development/df-genifer-auth/.dobi/staging.auth.bjoola.com
VERSION=0.4.3-6775fead6d APP_KEY=base64:lM5B4Ubh8Bux1i0xn1h3mCI2acUuSo5qVMaQwPSOuVI= DB_PASSWORD=FGHaghasgakj1 TOKEN_SECRET=6aydxXKh8AX3Veq38txB3kXRK6KD979H ./operations/deployment/deploy.staging.genifer.bjoola.com.sh
VERSION=0.5.6-5b84c855ca APP_KEY=base64:lM5B4Ubh8Bux1i0xn1h3mCI2acUuSo5qVMaQwPSOuVI= DB_PASSWORD=FGHaghasgakj1 TOKEN_SECRET=6aydxXKh8AX3Veq38txB3kXRK6KD979H ./operations/deployment/deploy.staging.genifer.bjoola.com.sh
```
* https://staging.genifer.bjoola.com/api/version
! victor
```sh
# Vrendly
VERSION=3.1.17-115c925513 DB_PASSWORD=KJHjhk2dkjdsfs TOKEN_SECRET=7Pt68FV3JHhj3jFN77kbj8cWxVW89zRM ./operations/deployment/deploy.staging.vrendly-api.bjoola.com.sh
VERSION=3.1.36-7a5d2c0e66 DB_PASSWORD=KJHjhk2dkjdsfs TOKEN_SECRET=7Pt68FV3JHhj3jFN77kbj8cWxVW89zRM ./operations/deployment/deploy.staging.vrendly-api.bjoola.com.sh
```
* https://staging.vrendly-api.bjoola.com/site/version
```sh
# CreditForce
VERSION=3.1.17-115c925513 DB_PASSWORD=4434As221 TOKEN_SECRET=3HJhvyhZpQoYnD3JVwLC976e6a84Xh38 ./operations/deployment/deploy.staging.creditforce-api.bjoola.com.sh
VERSION=3.1.36-7a5d2c0e66 DB_PASSWORD=4434As221 TOKEN_SECRET=3HJhvyhZpQoYnD3JVwLC976e6a84Xh38 ./operations/deployment/deploy.staging.creditforce-api.bjoola.com.sh
VERSION=3.1.17-115c925513 DB_PASSWORD=4434As221 TOKEN_SECRET=3HJhvyhZpQoYnD3JVwLC976e6a84Xh38 ./operations/deployment/deploy.staging.creditforce-cycle.bjoola.com.sh
VERSION=3.1.36-7a5d2c0e66 DB_PASSWORD=4434As221 TOKEN_SECRET=3HJhvyhZpQoYnD3JVwLC976e6a84Xh38 ./operations/deployment/deploy.staging.creditforce-cycle.bjoola.com.sh
```
* https://staging.creditforce-api.bjoola.com/site/version
@ -56,14 +56,14 @@ VERSION=3.1.17-115c925513 DB_PASSWORD=4434As221 TOKEN_SECRET=3HJhvyhZpQoYnD3JVwL
! vrendly
```sh
VERSION=2.0.79-bfcfce5ad4 ./operations/deployment/deploy.staging.vrendly.bjoola.com.sh
VERSION=2.0.96-2be0842948 ./operations/deployment/deploy.staging.vrendly.bjoola.com.sh
```
* https://staging.vrendly.bjoola.com
! creditForce
```sh
VERSION=2.0.80-cf-4b452877e5 ./operations/deployment/deploy.staging.creditforce.bjoola.com.sh
VERSION=2.0.97-cf-9f111ffe71 ./operations/deployment/deploy.staging.creditforce.bjoola.com.sh
```
* https://staging.creditforce.bjoola.com

View File

@ -1,6 +1,6 @@
created: 20161123001024194
creator: user
modified: 20161123001215812
modified: 20180326105254248
modifier: user
tags: docker
title: nginx proxy
@ -13,4 +13,7 @@ type: text/vnd.tiddlywiki
: https://hub.docker.com/r/jwilder/docker-gen/
; a lightweight companion container for the nginx-proxy. It allow the creation/renewal of Let's Encrypt certificates automatically.
: https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion
: https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion
; Træfik (pronounced like traffic) is a modern HTTP reverse proxy and load balancer made to deploy microservices with ease. It supports several backends (Docker, Swarm mode, Kubernetes, Marathon, Consul, Etcd, Rancher, Amazon ECS, and a lot more) to manage its configuration automatically and dynamically.
: https://traefik.io/

View File

@ -1,6 +1,6 @@
created: 20160112092216044
creator: user
modified: 20160112092714009
modified: 20180514101644730
modifier: user
tags:
title: socat
@ -18,4 +18,28 @@ explanation of what it does:
* start docker container connected to mongo container and expose mongo:27017 port on preview.local:27027
```
ssh-agent bash -c "ssh-add ./roles/common/files/keys/id_rsa.silo ; ssh-add ./docker/silo/id_rsa ; ssh -A -l ubuntu dispatcher.informaat-cxp.com -L 27027:preview.local:27027 -t ssh -A preview.local -t docker run --rm -it --link ubuntu_mongo_1:ubuntu_mongo_1 -p 27027:27027 defensative/socat-ubuntu -dddd -ls TCP-LISTEN:27027,reuseaddr,fork TCP:ubuntu_mongo_1:27017"
```
```
```
docker run -d -p 127.0.0.1:6379:6379 --rm --link portalgeniferxyz_redis_1:redis --network portalgeniferxyz_default bobrik/socat -dddd TCP4-LISTEN:6379,reuseaddr,fork TCP4-CONNECT:redis:6379
```
```
ssh dev-monolith -L 6379:localhost:6379
docker run -p 127.0.0.1:6379:6379 --rm --link devgeniferbjoolacom_redis_1:redis --network devgeniferbjoolacom_datalayer bobrik/socat -dddd TCP4-LISTEN:6379,reuseaddr,fork TCP4-CONNECT:redis:6379
```
```
ssh acceptatie-monolith -L 6379:localhost:6379
docker run -p 127.0.0.1:6379:6379 --rm --link acceptatiegeniferbjoolacom_redis_1:redis --network acceptatiegeniferbjoolacom_datalayer bobrik/socat -dddd TCP4-LISTEN:6379,reuseaddr,fork TCP4-CONNECT:redis:6379
```
```
ssh swarm-genifer-worker1 -L 6379:localhost:6379 -t docker run -p 127.0.0.1:6379:6379 --rm --network genifer_datalayer bobrik/socat -dddd TCP4-LISTEN:6379,reuseaddr,fork TCP4-CONNECT:redis:6379
docker service create --replicates 1 --name exposeRedis -p 127.0.0.1:6379:6379 --network genifer_datalayer bobrik/socat -dddd TCP4-LISTEN:6379,reuseaddr,fork TCP4-CONNECT:redis:6379
```