Skip to content

Instantly share code, notes, and snippets.

View spiermar's full-sized avatar

Martin Spier spiermar

View GitHub Profile
@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 {
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)")
#!/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 / 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
*
\n
time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\n
time_starttransfer: %{time_starttransfer}\n
----------\n
time_total: %{time_total}\n
\n
@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;

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
package io.overloaded.jmeter;
import org.apache.jmeter.config.Arguments;
import org.apache.jmeter.protocol.java.sampler.AbstractJavaSamplerClient;
import org.apache.jmeter.protocol.java.sampler.JavaSamplerContext;
import org.apache.jmeter.samplers.SampleResult;
import org.apache.log.Logger;
import org.apache.http.client.methods.HttpGet;