#+TITLE: My Notes #+STARTUP: indent * Work ** Reoccurring Tasks *** TODO Schedule Day SSCHEDULEDCHEDULED: <2019-10-08 Tue 08:00-08:15> *** TODO Catch-Up (Emails/Slack) SCHEDULED: <2020-01-31 Fri 08:15-08:30 .+1d> *** TODO Code Reviews :ATTACH: SCHEDULED: <2020-01-31 Fri 09:15 .+1d> :PROPERTIES: :LAST_REPEAT: [2020-01-30 Thu 23:18] :ID: 7d95e27d-d2c4-45c8-bcf0-4d82768f59c1 :END: :LOGBOOK: CLOCK: [2019-10-08 Tue 08:24]--[2019-10-08 Tue 09:24] => 1:00 :END: *** TODO 1 on 1 with Josip SCHEDULED: <2020-01-22 Wed .+2w> ** Sprint Work *** TODO Stand-up SCHEDULED: <2020-01-24 Wed 11:00-11:15 .+1d> *** TODO Planning SCHEDULED: <2020-01-23 Wed .+2w> *** TODO Refinement SCHEDULED: <2020-01-29 Wed .+2w> *** TODO Review SCHEDULED: <2020-01-22 Wed .+2w> *** TODO Retrospective SCHEDULED: <2020-01-22 Wed .+2w> ** Regular meetings ** Howtos *** setup mitmproxy :ATTACH: :PROPERTIES: :ID: aaa8721b-af98-45b9-b295-c7c1447930e4 :END: 1. write a script to modify the response #+BEGIN_SRC python from mitmproxy import http def request(flow): if flow.request.pretty_url.find("/classifiers/trainings") >=0 and flow.request.method == 'PUT': flow.response = http.HTTPResponse.make( 500, "failed with mitmproxy", {"content-type":"text/html"}, ) #+END_SRC 2. ~mitmproxy --mode reverse:https://bwjsonapi.stage.brandwatch.net -p 9999 -s ~ 3. ~./runInDevelopment --apiUrl=http://localhost:9999~ *** mitmproxy scripts **** throttle all request in random order #+BEGIN_SRC python from threading import Timer from random import random from mitmproxy import http def request(flow): resumeLater = Timer(random() * 2, flow.resume) flow.intercept() resumeLater.start(); #+END_SRC *** jq usage Get ids from a json response ~{ results: [{id: 4}, ...] }~ ~curl URL | jq '.results[] | .id'~ ** Other * Private ** [[org:ausbau/][Ausbau]] ** Tonuino *** SD Karte 1 1) Benjamin Blümchen 3 2) Jim Knopf 3) Liselotte und der Verschwundene Apfelkucken 4) Petterson & Findus Hahn im Korb 5) Leo Lausemaus will nich Essen/Warheit/Laune/Schalfen 6) Der Grüfello 7) Benjamin Blümchen 1 8) Benjamin Blümchen 2