Skip to content

Instantly share code, notes, and snippets.

View chook's full-sized avatar

Chen Harel chook

View GitHub Profile
var MIXPANEL_API_KEY = ‘xxxxxxxxxxx’;
var TAKIPI_MIXPANEL_IDENTIFIED = false;
var TAKIPI_MIXPANEL_COOKIE = 'TKP_MP_DATA';
var IS_REGISTERED_USER_SINGED_IN= 'takipiRegisteredUserLoggedIn';
var mp_old_distinct_id = '';
mp_fill_old_distinct_id = function()
{
try
@chook
chook / ThreadNameWithContext.java
Created June 11, 2019 01:10
thread-name-with-context
import java.util.Collections;
import java.util.Deque;
import java.util.LinkedList;
import java.util.Map;
public class ThreadNameWithContext {
private static final ThreadLocal<Deque<String>> threadNameStacks = new ThreadLocal<Deque<String>>();
private static final String CONTEXTUAL_THREAD_NAME_FORMAT = "%s [%s]";
swagger: '2.0'
info:
version: 'v1'
title: 'Services API'
contact:
email: hello@overops.com
description: |
Main OverOps API.
All calls must be authenticated using one of the following methods:
swagger: '2.0'
info:
version: 'v1'
title: 'Services API'
contact:
email: hello@overops.com
description: |
Main OverOps API.
All calls must be authenticated using one of the following methods:
@chook
chook / takipi-jboss
Last active December 16, 2015 02:29
Installing Takipi with JBoss AS 7
a. Create an account at www.takipi.com
b. Install Takipi
c. Add Takipi java agent to the running script (if you selected auto attach Takipi, skip this part)
1. Edit <jboss>/bin/standalone.sh or your own
2. Add "-agentpath:/opt/takipi/lib/libTakipiAgent.so" virtual machine argument to JAVA_OPTS environment variable.
d. Create directories path: <jboss>/modules/com/sparktale/bugtale/agent/main
The directory needs to have two items, module.xml and rt_sup.jar.