Skip to content

Instantly share code, notes, and snippets.

@yanakad
yanakad / Profile Rust on Linux.md
Created October 18, 2021 12:44 — forked from KodrAus/Profile Rust on Linux.md
Profiling Rust Applications

Profiling performance

Using perf:

$ perf record -g binary
$ perf script | stackcollapse-perf.pl | rust-unmangle | flamegraph.pl > flame.svg

NOTE: See @GabrielMajeri's comments below about the -g option.

@yanakad
yanakad / consoleColors.js
Created October 5, 2021 12:40 — forked from abritinthebay/consoleColors.js
The various escape codes you can use to color output to StdOut from Node JS
// Colors reference
// You can use the following as so:
// console.log(colorCode, data);
// console.log(`${colorCode}some colorful text string${resetCode} rest of string in normal color`);
//
// ... and so on.
export const reset = "\x1b[0m"
export const bright = "\x1b[1m"
export const dim = "\x1b[2m"
@yanakad
yanakad / byobuCommands
Created November 19, 2016 02:45 — forked from jshaw/byobuCommands
Byobu Commands
Byobu Commands
==============
byobu Screen manager
Level 0 Commands (Quick Start)
------------------------------
<F2> Create a new window
@yanakad
yanakad / EmbeddedKafkaCluster.java
Created December 23, 2015 16:35 — forked from vmarcinko/EmbeddedKafkaCluster.java
Embedded Zookeeper & Kafka cluster
import kafka.server.KafkaConfig;
import kafka.server.KafkaServer;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Properties;

Boston Spark Community Updates

  • 1000+ members; Meetup started in May 2014.
  • Speakers: We want you!
    • Feature talks or Lighting talks
  • Sponsors: You want us!
    • Host an event, pay for food and drink, or cover other event costs.
  • Take a few minutes at the start of the event to pitch your company, job, or product.
@yanakad
yanakad / gist:47cfc8c5afaa7b525181
Created October 16, 2015 20:15 — forked from debasishg/gist:8172796
A collection of links for streaming algorithms and data structures
  1. General Background and Overview