Skip to content

Instantly share code, notes, and snippets.

View spiermar's full-sized avatar

Martin Spier spiermar

View GitHub Profile
import re
import os
import logging
import nflxprofile_pb2
event_regexp = re.compile(r" +([0-9.]+): .+?:")
frame_regexp = re.compile(r"^[\t ]*[0-9a-fA-F]+ (.+) \((.*?)\)$")
comm_regexp = re.compile(r"^ *([^0-9]+)")
idle_process = re.compile("swapper")
idle_stack = re.compile("(cpuidle|cpu_idle|cpu_bringup_and_idle|native_safe_halt|xen_hypercall_sched_op|xen_hypercall_vcpu_op)")
@spiermar
spiermar / nginx.conf
Created September 12, 2018 06:42
Nginx RMTP to HLS and DASH
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
pid /var/run/nginx.pid;
events {
@spiermar
spiermar / d3-heatmap2.css
Last active February 28, 2018 01:53
d3-heatmap
.columnLabel, .rowLabel {
font-size: 1.0rem;
fill: #AAAAAA;
font-weight: 300;
}
.title {
font-size: 2.8rem;
fill: #4F4F4F;
font-weight: 300;
@spiermar
spiermar / FlameGraph.jsx
Last active July 11, 2019 16:36
FlameGraph React Component
/**
*
* Copyright 2017 Martin Spier <spiermar@gmail.com>
*
* Licensed 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
*

Seeking amazing C/C++ developer to work on open source project

We are looking for an experiecend C/C++ developer to help us fix bugs, implement new features and improve llnode, the Node.js C++ plugin for LLDB, a next generation, high-performance debugger.

llnode Issues

The scope of the work includes, but is not limited to, the following issues:

@spiermar
spiermar / tmux-cheatsheet.markdown
Created February 3, 2016 22:06 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
#!/usr/bin/python
import os
import sys
import csv
import datetime
import time
import twitter
def test():
@spiermar
spiermar / index.html
Last active October 3, 2019 18:04
d3-flame-graph
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css"
href="https://cdn.jsdelivr.net/gh/spiermar/d3-flame-graph@1.0.4/dist/d3.flameGraph.min.css"
integrity="sha256-w762vSe6WGrkVZ7gEOpnn2Y+FSmAGlX77jYj7nhuCyY="
crossorigin="anonymous"
/>
</head>
@spiermar
spiermar / proxy.js
Created October 2, 2015 23:57
Node.JS Express Proxy
var http = require('http');
var app = require('express')();
app.use('/proxy*', function(req, res, next) {
var options = {
host: "spiermar.github.io",
path: "/contact" + req.params[0]
};
@spiermar
spiermar / widgets.js
Created April 10, 2015 20:48
New Vector Widget
// append this to the definitions variable on widgets.js
// polling nfs4.client metrics, assuming a cumulative value and reusing the MultipleCumulativeMetricTimeSeriesDataModel data model
{
name: 'nfs4.client',
title: 'NFS4',
directive: 'line-integer-time-series',
dataAttrName: 'data',
dataModelType: MultipleCumulativeMetricTimeSeriesDataModel,
dataModelOptions: {
name: 'nfs4.client',