Skip to content

Instantly share code, notes, and snippets.

@koma77
koma77 / sops_merger.sh
Created February 21, 2019 13:08
sops merger
#!/bin/bash
#set -x
# .gitattributes
# *.yml merge=sopsmerge
#
# .git/config
#[merge "sopsmerger"]
# name = A custom merge driver used to resolve conflicts in sops encrypted files
# driver = sops_merge.sh %O %A %B %P
```
https://github.com/SeleniumHQ/docker-selenium
```
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import random
from queue import Queue
from threading import Thread
import boto
# A thread that produces data
def producer(out_q, num_threads):
print("Producer started")
s3 = boto.connect_s3()
bucket = s3.get_bucket("somebucket")
import random
from queue import Queue
from threading import Thread
# A thread that produces data
def producer(out_q, num_threads):
for i in range(1,100):
# Produce some data
d = []
d.append(i)
@koma77
koma77 / Namshi-on-call-08072018-15072018.txt
Last active July 15, 2018 05:49
Namshi-on-call 08/07/2018 15/07/2018
08/07 21:05 ~ 22:10 Payments crons deployed with wrong version.
Alert gone after deploying a correct image version.
09/07 02:05 ~ 02:06 Nginx 4XX alert, traffic loop produced by old app version.
It's a flapping alert, there is no solution provided for now.
09/07 11-50 ~ 12:20 Catalog replies were slow, fond a POD killed by OOM on node.
RES memory size was more then 1.5G
09/07 22-30 ~ 22:50 Pricing app metric `pricing-auto-approver`, issue autoresolved.
13/07 02:50 ~ 04:45 IMR warning (stale nodes killed manually)
13/07 04-22 ~ 04:30 Prometheus restart happened altogether with nodes replacenent
in *net* namespace. So alert hangs.