Skip to content

Instantly share code, notes, and snippets.

View majorgreys's full-sized avatar

Tahir H. Butt majorgreys

  • Brooklyn, NY
  • 10:00 (UTC -12:00)
View GitHub Profile

Issue 1039

Steps to reproduce:

  1. Create virtualenv and install requirements: pip install -r requirements.txt
  2. Start local Datadog agent
  3. Start backend services: docker-compose up -d
  4. Start celery worker from a shell: celery worker -A tasks -l info
  5. Start grpc server from a shell: ddtrace-run python server.py
  6. Run task from a shell: python run.py
Debug mode on
Auto-yes mode on
Loading c:/Users/tahir/.emacs.d/core/autoload/debug.el (source)...
Loading c:/Users/tahir/.emacs.d/core/autoload/files.el (source)...
Loading c:/Users/tahir/.emacs.d/core/autoload/message.el (source)...
Loading c:/Users/tahir/.emacs.d/core/autoload/packages.el (source)...
Loading c:/Users/tahir/.emacs.d/core/autoload/cache.el (source)...
Loading c:/Users/tahir/.emacs.d/core/cli/autoloads.el (source)...
Loading c:/Users/tahir/.emacs.d/core/cli/byte-compile.el (source)...
Loading c:/Users/tahir/.emacs.d/core/cli/debug.el (source)...
Total User Startup Time: 4.321sec Total Number of GC Pauses: 0 Total GC Time: 0.000sec
core.el:512 3.039sec 70%
(unless noninteractive
(doom-initialize-modules))
core.el:511 1.247sec 28%
(doom-initialize noninteractive)
vc-git.elc:373 0.027sec 0%
Python 3.6.7 (default, Nov 3 2018, 23:50:05)
[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.10.44.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from ddtrace import patch_all; patch_all(logging=True)
>>> import logging
>>> from ddtrace import tracer
>>> import asyncio
>>> from ddtrace.context import Context
>>> import random
>>>
FROM ubuntu:trusty
WORKDIR /opt/code
ENV PYENV_ROOT="/opt/pyenv" \
PATH="/opt/pyenv/bin:/opt/pyenv/shims:$PATH" \
LC_ALL="C.UTF-8" \
LANG="C.UTF-8"
RUN apt-get update && apt-get install -y --no-install-recommends \
@majorgreys
majorgreys / README.org
Last active April 6, 2022 18:55
mbsync+mu cleanup

In moving my email from gmail to outlook, it would seem that I’ve ended up with multiple copies of emails. How many such emails there are and how to remove them I am still struggling to figure out. The problem seems to be that the same message ID but have different X-TUID.

$ mu find msgid:CY1PR15MB0155CB9AAD45DA010FFFC2FCF15E0@CY1PR15MB0155.namprd15.prod.outlook.com -f 'l'
/home/tbutt/.mail/outlook/Sent/cur/1522002651.16857_33.knuckles,U=36:2,S
/home/tbutt/.mail/outlook/Archive/cur/1522002326.15658_3659.knuckles,U=236990:2,S
/home/tbutt/.mail/outlook/Archive/cur/1521978114.18576_998.knuckles,U=2593:2,S
/home/tbutt/.mail/gc/Archive/cur/1522211460.25821_33.knuckles,U=34:2,S
/home/tbutt/.mail/outlook/Archive/cur/1521979684.21093_9183.knuckles,U=20859:2,S

$ diff /home/tbutt/.mail/outlook/Archive/cur/1522002326.15658_3659.knuckles,U=236990:2,S /home/tbutt/.mail/outlook/Archive/cur/1521978114.18576_998.knuckles,U=2593:2,S
@majorgreys
majorgreys / gist:aa5db32158b6e2f45eac9c35b7a27457
Created March 8, 2018 19:18
Citation key format for Better BibTex
[auth:lower][>0][year]|[PublicationTitle:lower:abbr][>0]:[month:lower][year:lower]|[title:capitalize][year]
Checking /home/tbutt/.emacs.d/.local/packages/elpa...
Checking /home/tbutt/.emacs.d/.local/packages/elpa/ac-alchemist-20150907.2356...
Compiling /home/tbutt/.emacs.d/.local/packages/elpa/ac-alchemist-20150907.2356/ac-alchemist-autoloads.el...
Compiling /home/tbutt/.emacs.d/.local/packages/elpa/ac-alchemist-20150907.2356/ac-alchemist-pkg.el...
Compiling /home/tbutt/.emacs.d/.local/packages/elpa/ac-alchemist-20150907.2356/ac-alchemist.el...
Checking /home/tbutt/.emacs.d/.local/packages/elpa/ac-php-core-20180222.224...
Compiling /home/tbutt/.emacs.d/.local/packages/elpa/ac-php-core-20180222.224/ac-php-comm-tags-data.el...
Compiling /home/tbutt/.emacs.d/.local/packages/elpa/ac-php-core-20180222.224/ac-php-core-autoloads.el...
Compiling /home/tbutt/.emacs.d/.local/packages/elpa/ac-php-core-20180222.224/ac-php-core-pkg.el...
Compiling /home/tbutt/.emacs.d/.local/packages/elpa/ac-php-core-20180222.224/ac-php-core.el...
<?php
/**
* @package Make GCDI
*/
/**
* The GC Digital Initiatives Child Theme of Make
*
*
* @see MAKE_Setup_Scripts::enqueue_frontend_styles()