Skip to content

Instantly share code, notes, and snippets.

@raitisd
raitisd / awslogs.log
Created November 6, 2018 11:24
awslogs.log
: '7b3a0001d62e8a21f2180c4b2c5754dc', 'num_of_events': 2, 'batch_size_in_bytes': 306}
2018-11-06 01:10:21,425 - cwlogs.push.publisher - INFO - 5119 - Thread-2 - Log group: /notification-service-stag/notification-service.log, log stream: i-02a0a2dad876f831e, queue size: 0, Publish batch: {'skipped_events_count': 0, 'first_event': {'timestamp': 1541466616298, 'start_position': 212480L, 'end_position': 212602L}, 'fallback_events_count': 0, 'last_event': {'timestamp': 1541466616298, 'start_position': 212602L, 'end_position': 212736L}, 'source_id': '7b3a0001d62e8a21f2180c4b2c5754dc', 'num_of_events': 2, 'batch_size_in_bytes': 306}
2018-11-06 01:10:26,461 - cwlogs.push.publisher - INFO - 5119 - Thread-2 - Log group: /notification-service-stag/notification-service.log, log stream: i-02a0a2dad876f831e, queue size: 0, Publish batch: {'skipped_events_count': 0, 'first_event': {'timestamp': 1541466621299, 'start_position': 212736L, 'end_position': 212858L}, 'fallback_events_count': 0, 'last_event': {'timestamp': 1541466
@raitisd
raitisd / sort-valid-addresses.py
Last active July 10, 2018 13:50
Sort out valid and invalid addresses
import json
import re
with open('failed_chunks.json', 'r') as f:
parsed_file = json.load(f)
email_addresses = []
for chunk_object in parsed_file:
@raitisd
raitisd / git-basics.md
Last active August 10, 2018 09:23
Git basics for lil schatzii

Git basics for lil schatzii

When you start working make sure you are on the main branch (master or develop).

git checkout master

Make sure your main branch is up to date.

@raitisd
raitisd / webapp-slv.md
Created May 7, 2018 14:17
Main UM LB config for webapp slv

Main website - (webapp slv)

Services included (ltm virtual)

  • ltm virtual /avenso/avenso-slv-ww-web-http-vip
  • ltm virtual /avenso/avenso-slv-ww-web-https-vip

Rules

Common rules

➜ user-service git:(temp-docker-compose) ✗ docker-compose up
Creating userservice_base_1
Creating userservice_db_1
Creating userservice_app_1
Attaching to userservice_db_1, userservice_base_1, userservice_app_1
db_1 | 2017-01-12T13:44:55.307+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=6e8f442a6166
app_1 | PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
base_1 | PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
app_1 | HOSTNAME=390cf837db41
base_1 | HOSTNAME=3e96e627ef5e
{
"data":[
{
"time":"2016-10-20",
"messages":{
"email":[
{
"variation_name":"Control Group",
"revenue":0.0,
"unique_recipients":0,