Skip to content

Instantly share code, notes, and snippets.

View jfacevedo's full-sized avatar

Julian Acevedo jfacevedo

  • Cali, CO
View GitHub Profile
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static
@jfacevedo
jfacevedo / parser-log.py
Last active February 22, 2017 15:44
Datadog custom log parser script
from datadog import initialize, ThreadStats
from datetime import datetime
import time
import re
initialize(api_key='_API_KEY_')
stats = ThreadStats()
stats.start(flush_interval=60, roll_up_interval=60)
def parse_conn(logger, line):