Yifan Gu

- some random dude

Recent Posts

Split Flap Display – Part 1

I recently came by this Technology Connection Video, and I am intrigued by the mechanism of a split flap mechanical clock. I then ran across this GitHub project for a split flap display and I decide to make my own. I made one tweak to the design: I made the letters laser engraved and cut […]

Read More

Using Makefile for Non-programming Tasks

Make is traditionally used to build artifacts from program source code. It can also be used for other tasks, where you need to “build” something out of a “source-of-truth”. For example: video-editing. I personally find ffmpeg able to generate better quality compressed videos than FCPX or Premiere Pro, which is especially important if the desired […]

Read More

Mining Ethereum on M1 Mac GPU

TL;DR: It’s possible to mine Ethereum on a M1 Mac GPU. Hashrate is about 2Mh/s. I’ve had my M1 MacBook Air for a bit of time now, and I also recently started mining Ethereum. I can’t help asking myself: What’s Ethereum mining performance like on a M1 Mac? The obvious thing to do first is […]

Read More

LAN Party VPN – My experience with WinTun, Windows Firewall, NSIS and Windows Defender

I’ve recently made LAN Party VPN. It makes playing LAN games with friends on Discord effortless. LPVPN is written in C++, mostly because Discord SDK is only available in C, C++ and C#. So I didn’t have much of an option here. The idea of LPVPN is rather simple, get IP packets from WinTun (the […]

Read More

Wasmino = WASM + Arduino (Running Arduino code in browser)

Wasmino is an Arduino core fully compatible with the Arduino IDE. It allows you to compile your Arduino sketch to WebAssembly and run it in a browser, all using the Arduino IDE. Showcase This is the off-the-shelf “Fade” example in the Arduino IDE. You can see it compiled to WASM and running here: (Click the […]

Read More