Skip to content

Instantly share code, notes, and snippets.

View DekusDenial's full-sized avatar

D Morty k DekusDenial

  • United States
View GitHub Profile
@DekusDenial
DekusDenial / perf.md
Created November 14, 2015 07:12 — forked from thlorenz/perf.md
perf related one liners

perf list

pl-csv alias

Remove first 3 lines of perf list output and join the remaining ones together with ,

alias pl-csv='tail -n+3 | grep -v ^$ | awk '\''{print $1}'\'' | tr "\\n" "," | sed -e s/,$//'
@DekusDenial
DekusDenial / .generating-xcode-via-gyp.md
Created November 14, 2015 07:12 — forked from thlorenz/.generating-xcode-via-gyp.md
Generating Xcode projects from Node.js binding repos via gyp

This is specifically tailored to Node.js binding projects in which case the C++ layer is always a library.

Clone gyp:

git clone --depth 1 https://chromium.googlesource.com/external/gyp.git gyp

Add the below common.gypi file in the root of the project.

@DekusDenial
DekusDenial / steps-lldb-jit-on-osx.md
Created November 14, 2015 07:09 — forked from thlorenz/steps-lldb-jit-on-osx.md
lldb JIT on OSX (showing no useful info at this point)

Installation

Ninja

  • needed for faster Node.js builds
brew install ninja
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>One Graph</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.v2.js"></script>
<script type="text/javascript" src="simple-graph.js"></script>
<style type="text/css">
body { font: 13px sans-serif; }
rect { fill: #fff; }
(function() {
var CSSCriticalPath = function(w, d, opts) {
var opt = opts || {};
var css = {};
var pushCSS = function(r) {
if(!!css[r.selectorText] === false) css[r.selectorText] = {};
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/);
for(var i = 0; i < styles.length; i++) {
if(!!styles[i] === false) continue;
var pair = styles[i].split(": ");