Skip to content

Instantly share code, notes, and snippets.

Avatar
☃️
writing rust, staying warm

Bob Matcuk bmatcuk

☃️
writing rust, staying warm
View GitHub Profile
@bmatcuk
bmatcuk / 1README.md
Created Jan 9, 2020
Quick and dirty libuv test
View 1README.md

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>
<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
Creating a Bootable Windows USB from ISO on a Mac
View create-usb.sh
# 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 Apr 19, 2016
Sample html-brunch-static project using only handlebars
View 1README.md

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
View keybase.md

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 Nov 3, 2019
My Dot Files
View dotfiles.md
@bmatcuk
bmatcuk / symbolizing_osx_crash_logs.md
Created May 29, 2014
How to symbolize OSX crash logs
View symbolizing_osx_crash_logs.md

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.
    6. Then navigate to Products, then Applications, and copy the app file to the same temporary directory.
You can’t perform that action at this time.