Skip to content

Instantly share code, notes, and snippets.

@ilufang
ilufang / yt-chunithm-perspective.user.js
Last active July 3, 2020 16:43
Chunithm Chart Perspective Tool for YouTube
// ==UserScript==
// @name Chunithm Chart Perspective Tool for YouTube
// @namespace https://fang.lu/
// @version 1.1
// @description Reverse 3D perspective back to a flat falling chart.
// @author ilufang
// @match https://www.youtube.com/watch?*
// @grant none
// @require https://cdnjs.cloudflare.com/ajax/libs/gl-matrix/2.8.1/gl-matrix-min.js
// @downloadURL https://gist.githubusercontent.com/ilufang/1651c4e4af2ba122f09407886e55d826/raw/yt-chunithm-perspective.user.js
@ilufang
ilufang / ece391_sshfs.md
Last active November 9, 2018 15:27
ECE391 Working From Home: Using sshfs to mount ece391_share folder

Disclaimer

This tutorial is purely based on my own experience. It is not guaranteed to work on arbitrary setup. The setup is moderately complex. By trying this tutorial, you agree that I am not liable for any damages such as but not limited to devel vm malfunction, data losses and system being compromised.

If you are setting up the working from home environment on a Mac or Linux, and got stuck trying to mount the ece391_share folder through smb/cifs due to some issues with SMBUp or smbd, you can try to mount the shared folder using sshfs rather than samba. Sshfs operates as a FUSE virtual filesystem that converts a SFTP connection into a mounted folder, therefore it is free of samba issues such as weak authentication protocols, protocol mismatches, missing permission attributes, etc. When configured correctly, sshfs works more reliably and securely than samba.

Installation

The following steps are in devel. Commands in this section requires root permissions. Login as root or

@ilufang
ilufang / HackIllinois2017.md
Created February 26, 2017 16:43
HackIllinos 2017 overview

During this weekend at HackIllinois, I worked on implementing two new components of the canjs project with the canjs and donejs developers. These two components work as npm modules, and we started new repositories for them.

The goal of our projects are to make webpages load in a more efficient: we stream data so that the browser can render whatever is available as soon as possible and do not have to wait for the request to completely finish before performing the task. The two components I worked on is related to the newline delimited JSON (NDJSON) stream.

This component creates a readable JSON object stream from the a fetch response stream.