Skip to content

Instantly share code, notes, and snippets.

TraceId(Some(1faf0a8e2cf9dc18), None, 0000000000000000, Some(true), Flags(0))com.twitter.finagle.tracing.TraceId.<init>(Id.scala:128)
com.twitter.finagle.thrift.RichRequestHeader$.traceId$extension(RichRequestHeader.scala:37)
com.twitter.finagle.thrift.TTwitterServerFilter.apply(TTwitterServerFilter.scala:46)
com.twitter.finagle.thrift.TTwitterServerFilter.apply(TTwitterServerFilter.scala:11)
com.twitter.finagle.Filter$$anon$7.apply(Filter.scala:52)
com.twitter.finagle.Filter$$anon$1.apply(Filter.scala:72)
com.twitter.finagle.Service$$anon$2.apply(Service.scala:14)
com.twitter.finagle.tracing.TraceInitializerFilter$$anonfun$apply$4.apply(TraceInitializerFilter.scala:101)
com.twitter.finagle.tracing.TraceInitializerFilter$$anonfun$apply$4.apply(TraceInitializerFilter.scala:101)
com.twitter.util.Local.let(Local.scala:131)
@mansu
mansu / folder_structure.sh
Created October 20, 2017 18:07
Python commons folder structure
# shared dependencies
├── 3rdparty
│ └── python
│ ├── BUILD
│ └── requirements.txt
├── pants.ini
# shared release code
├── teletraan_template
│ ├── PRE_RESTART.erb
│ └── RESTARTING.erb
@mansu
mansu / requirements_snippet.sh
Created October 20, 2017 18:08
Python commons requirements snippet
$ head python-commons/3rdparty/python/requirements.txt
APScheduler==3.2.0
argparse==1.2.1
beautifulsoup4==4.5.1
slackminion==0.8.1
...
@mansu
mansu / srebot_build.py
Created October 20, 2017 18:12
Sample BUILD file
# Build file for srebot project in src/main/python/pinterest/srebot/BUILD
VERSION = "0.1.4"
python_library(
name = '_bot',
sources = rglobs('*.py'),
dependencies = [
'3rdparty/python:argparse',
],
@mansu
mansu / kafka-server.properties
Created February 4, 2022 23:21
Slack Kafka server config
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# Maven hangs on dependency resution.
# Git commit https://github.com/slackhq/kaldb/commit/c07146239f5653a52a303c5414919717e0c165da
[INFO] ------------------------------------------------------------------------
[INFO] Detecting the operating system and CPU architecture
[INFO] ------------------------------------------------------------------------
[INFO] os.detected.name: osx
[INFO] os.detected.arch: x86_64
[INFO] os.detected.version: 11.6
[INFO] os.detected.version.major: 11