Skip to content

Instantly share code, notes, and snippets.

View commarla's full-sized avatar

Laurent Commarieu commarla

View GitHub Profile
{
"$schema": "https://json.schemastore.org/resume",
"basics": {
"name": "Laurent COMMARIEU",
"label": "System Engineer",
"email": "laurent.commarieu@gmail.com",
"location": {
"countryCode": "FR",
"city": "Nantes",
"postalCode": "44100"
This file has been truncated, but you can view the full file.
root@ip-10-42-21-152:~# docker logs --tail=100 -f conversations-routing-onsite-orchestrator-consumer-309062b9-f388-f52a-0dd6-fcb672db4d43
{"message":"Elect an operator with message","context":{"message":{"channel":"chat","message":"ce produit sera t-il disponible bientôt?","identifier":"e9f953e8-9974-49e9-92be-41bcdfb1971f","platform":"ha","lang":"fr","visitor":{"id":"49fc385c9e78b2e77ee18196f239483c560d907c54931","type":"visitor","bareJid":"mano87055736376941customer@xmpp1.iadvize.com"},"conversation":{"id":"4179c97f-ce98-4b5a-8a24-1165c2c767ed","type":"conversation"},"history":{"id":"53643067","type":"history"},"routing_rule_id":"c75ba141-22e3-44bd-a38e-f74b4445ba4c","targeting_rule_id":"123543:ha","routing_rule":{"id":"c75ba141-22e3-44bd-a38e-f74b4445ba4c","website_id":"3263:ha","set_selector_id":"83e5c0d8-ca63-491a-ac08-a18b542a4b66","operator_selector_id":"ba3bd9f0-1ac8-4817-8619-d8556d94094c","created_at":"2017-05-04 09:38:36","updated_at":"2017-05-04 09:38:36","routing_rule_group_id":"83af9176-0986-421
@commarla
commarla / migrate-redis.py
Created January 12, 2017 09:18 — forked from thomasst/migrate-redis.py
Migrate Redis data on Amazon ElastiCache
"""
Copies all keys from the source Redis host to the destination Redis host.
Useful to migrate Redis instances where commands like SLAVEOF and MIGRATE are
restricted (e.g. on Amazon ElastiCache).
The script scans through the keyspace of the given database number and uses
a pipeline of DUMP and RESTORE commands to migrate the keys.
Requires Redis 2.8.0 or higher.
@commarla
commarla / README.md
Created November 3, 2016 08:09 — forked from oodavid/README.md
Backup MySQL to Amazon S3

Backup MySQL to Amazon S3

This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)

Sister Document - Restore MySQL from Amazon S3 - read that next

1 - Install s3cmd

this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc

@commarla
commarla / README.md
Created November 3, 2016 08:09 — forked from oodavid/README.md
Restore MySQL from Amazon S3

Restore MySQL from Amazon S3

This is a hands-on way to pull down a set of MySQL dumps from Amazon S3 and restore your database with it

Sister Document - Backup MySQL to Amazon S3 - read that first

1 - Set your MySQL password and S3 bucket, make a temp dir, get a list of snapshots

# Set our variables

export mysqlpass="ROOTPASSWORD"

mysqlcore_1 | *** buffer overflow detected ***: mysqld terminated
mysqlcore_1 | ======= Backtrace: =========
mysqlcore_1 | /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f52e48aa0e7]
mysqlcore_1 | /lib/x86_64-linux-gnu/libc.so.6(+0xeefa0)[0x7f52e48a8fa0]
mysqlcore_1 | mysqld(_Z19find_or_create_hostP10PFS_threadPKcj+0x1d3)[0xac42f3]
mysqlcore_1 | mysqld(_Z22find_or_create_accountP10PFS_threadPKcjS2_j+0x301)[0xabed71]
mysqlcore_1 | mysqld(_Z18set_thread_accountP10PFS_thread+0x3d)[0xac8bcd]
mysqlcore_1 | mysqld[0xae9d3d]
mysqlcore_1 | mysqld(_Z16acl_authenticateP3THDj+0xba8)[0x6ba7f8]
mysqlcore_1 | mysqld[0x6de27b]

Keybase proof

I hereby claim:

  • I am commarla on github.
  • I am commarla (https://keybase.io/commarla) on keybase.
  • I have a public key whose fingerprint is 7445 CBCC 0E1D 1A12 675B 8D4F F9DA C01C 2EFF B6B0

To claim this, I am signing this object:

#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Zabbix SMTP Alert script for Office365.
"""
import sys
import smtplib
from email.MIMEText import MIMEText
from email.Header import Header