Skip to content

Instantly share code, notes, and snippets.

View dobeerman7's full-sized avatar

Alex dobeerman7

  • @ebot7
  • Munich Area, Germany
View GitHub Profile
@dobeerman7
dobeerman7 / cloudwatch_log_subscriber.py
Created April 20, 2020 18:24 — forked from bwhaley/cloudwatch_log_subscriber.py
AWS lambda function to subscribe new CloudWatch Log groups to another lambda function
# Lambda function to subscribe all new cloudwatch log groups to a log shipper function
# Used in conjunction with https://github.com/SumoLogic/sumologic-aws-lambda
import os
import logging
import json
import uuid
import boto3
from botocore.exceptions import ClientError
@dobeerman7
dobeerman7 / JabberDemoBot.py
Created February 4, 2020 10:22 — forked from darrenparkinson/JabberDemoBot.py
Jabber BOT Demo using Python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import logging
import getpass
from optparse import OptionParser
import time
import sleekxmpp
@dobeerman7
dobeerman7 / google-analytics-data-events.js
Created June 13, 2019 15:00 — forked from kevinblake/google-analytics-data-events.js
Fire Google Analytics Events using data attributes for label, action and category fields
var googleDataEvents = {
pageTracker: null,
init: function (document) {
document.find("a[data-ga-label],area[data-ga-label]").click(this.trackLink);
},
trackLink: function (e) {
if (_gaq) {
e.preventDefault();
var l = $(this);
var label = l.attr("data-ga-label");