Skip to content

Instantly share code, notes, and snippets.

View aduh95's full-sized avatar

Antoine du Hamel aduh95

View GitHub Profile
@aduh95
aduh95 / fstab_for_dualboot.md
Last active January 9, 2021 22:58
Auto-mount a NTFS partition on a GNU/Linux system (Windows dualboot)

Dual-boot GNU/Linux↔Windows file sharing

You want to use the same files on different environment? Here is how to setup your Linux system.

It is strongly recommended to have a separate partition for every OS you want to have and another partition on which you want to store your data. If you are using UNIX-like OSes only, you can have a /home partition that every OS will share and you don't need this tutorial. However, if you want to use a Windows OS as well, here is what you need to do.

@aduh95
aduh95 / record.js
Created March 2, 2024 15:38
Record canvas to make a video
function recordCanvas(canvas, time) {
const frameRate = 60;
const mimeType = "video/webm";
const chunks = [];
function saveChunks(evt) {
// store our final video's chunks
if (evt.data.size > 0) {
chunks.push(evt.data);
}