Skip to content

Instantly share code, notes, and snippets.

bmatcuk /
Created Jan 9, 2020
Quick and dirty libuv test

Quick and Dirty libuv Test

This code isn't meant to be pretty: it's just a simple implementation of some libuv features. Specifically:

  • raw mode tty;
  • streaming input from tty;
  • writing output to tty (specifically: echoing the input hex-encoded);
  • handling a signal (SIGTERM, ie, kill pid);
  • quitting on ctrl+c
  • properly cleaning up after ourselves.
View test.html
<!doctype html>
<script src=""></script>
<div id="container"></div>
<a href="#" id="run">Click here only show "C"</a> / <a href="#" id="reset">Reset</a>
<script type="text/javascript">
bmatcuk /
Created May 30, 2019
Creating a Bootable Windows USB from ISO on a Mac
# First, we need to find our device. BEFORE inserting your USB drive, run the
# following:
diskutil list
# This will output a bunch of info about all of the disk drives connected to
# your Mac. Each entry will have a header in the form "/dev/diskX", where X is
# some number starting at 0. Now, insert your USB drive and run the command
# again. You should see a new entry. Make note of the name (ie, /dev/diskX).
diskutil list
bmatcuk /
Created Apr 19, 2016
Sample html-brunch-static project using only handlebars

Sample html-brunch-static Project

This is a sample project that only uses the built-in handlebars processor. html-brunch-static supports many other options.

Running Locally

Copy these files locally into the following directory hierarchy:

├── app

Keybase proof

I hereby claim:

  • I am bmatcuk on github.
  • I am bmatcuk ( on keybase.
  • I have a public key whose fingerprint is 0E11 BE1C 2864 DFC1 43F2 56D9 1E03 CE3E 4EA5 EC91

To claim this, I am signing this object:

bmatcuk /
Last active Nov 3, 2019
My Dot Files
bmatcuk /
Created May 29, 2014
How to symbolize OSX crash logs

How to Symbolize OSX Crash Logs

Unfortunately, xcode does not yet have support for importing OSX crash logs and symbolizing them. Therefore, you must use the command line and a little bit of manual work.

  1. Find your dSYM file.
    1. Assuming you are using xcode's archive functionality, open the Organizer window from the Window menu.
    2. Click the Archives tab.
    3. Right click on the appropriate build and select Show in Finder.
    4. When Finder opens, right click on the selected archive and select Show Package Contents.
    5. Navigate to the dSYM directory and copy the appropriate dSYM file to a temporary directory.
  2. Then navigate to Products, then Applications, and copy the app file to the same temporary directory.