Skip to content

Instantly share code, notes, and snippets.

@bmatcuk
bmatcuk / 1README.md
Created January 9, 2020 02:48
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.
@bmatcuk
bmatcuk / test.html
Created October 2, 2019 17:18
Vega SVG Bug
<!doctype html>
<html>
<head>
<script src="https://vega.github.io/vega/vega.min.js"></script>
</head>
<body>
<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
bmatcuk / create-usb.sh
Created May 30, 2019 04:38
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
bmatcuk / 1README.md
Created April 19, 2016 19:41
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:

test
├── app
@bmatcuk
bmatcuk / keybase.md
Created September 8, 2014 04:59
keybase proof

Keybase proof

I hereby claim:

  • I am bmatcuk on github.
  • I am bmatcuk (https://keybase.io/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
bmatcuk / dotfiles.md
Last active December 23, 2022 23:46
My Dot Files
@bmatcuk
bmatcuk / symbolizing_osx_crash_logs.md
Created May 29, 2014 21:43
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.