Skip to content

Instantly share code, notes, and snippets.

@devnoname120
devnoname120 / DV, HDV, MiniDV video capture and processing.md
Last active November 26, 2024 08:20
Mini DV cassette video capture

My overview

On-cassette formats:

  • DV:
    • video: lossy compression
      • 720x480i @ 60 Hz (PAL)
      • 720x576i @ 50 Hz (NTSC)
      • aspect ratio: 4:3 or 16:3 (different pixel aspect ratios!)
    • audio: uncompressed
  • 16-bit linear PCM stereo @ 48 kHz (768 kbit/s per channel, 1.5 Mbit/s stereo) (almost always used)
@devnoname120
devnoname120 / Switzerland Visas.md
Last active November 26, 2024 08:21
Switzerland visa

Visa types:

  • Short-term Swiss visas – these are visas that permit stays of up to 90 days for purposes such as tourism or short-term business;
    • C permit (Schengen Visa) — 90 days.
  • Non-Immigrant visas – these are longer-term temporary visas for purposes such as studying or working on fixed-term contracts, where the holder doesn’t intend to stay in the country beyond a fixed period;
    • L permit — 1yr, non renewable. Tied to specific job/study contract.
    • B permit — 1-5yrs, renewable. Limited number issued every year. Requires to stay in the canton that the permit is linked to. [1] [2]
  • G permit — cross-border
@devnoname120
devnoname120 / fix-circular-deps.js
Last active November 26, 2024 08:21
Front — Fix circular dependencies
// Note: this replaces module.exports = ... with something like Object.assign(module.exports, AnalyticsSavedViewResource)
// This doesn't work but this was a worthwhile experiment and we can reuse this code as a base.
module.exports = function (file, api, options) {
const j = api.jscodeshift;
const root = j(file.source);
fixTopLevelAssignments(j, root);
fixTopLevelChainedAssignments(j, root);
@devnoname120
devnoname120 / Accord du participe passé d'un verbe pronominal.md
Last active March 9, 2022 16:29
French grammar — Accord du participe passé d'un verbe pronominal

ACCORD :

  1. Avec le COD placé avant le verbe : verbes pronominaux réfléchis / réciproques + « s'arroger ».
  • « Ma mère s'est blessée en coupant le pain. » (Ma mère a blessé qui ? Ma mère.)
  • « Ma sœur s'est donné la peine d'aider ces enfants. » (Ma sœur a donné quoi ? La peine (COD placé après le verbe).)
  • « Les fiancés se sont écrit pendant de longs mois » (Ils se sont écrit quoi ? Une lettre (à priori).)

👌  Ici on voit que le sujet a souvent valeur de COD (mais pas toujours sinon ça serait trop facile).

Pour info, les verbes suivants ont jamais de COD (mais ça sert à rien de retenir) : se plaire, se complaire, se déplaire, se rire, se sourire, se succéder, se ressembler, se parler, se nuire, se survivre, se suffire, se convenir.

@devnoname120
devnoname120 / My macOS setup.md
Last active May 24, 2026 20:08
My macOS setup

ℹ️ Enable iCloud end-to-end encryption:

  • Nobody knows that, but iCloud actually supports end-to-end encryption (see “Advanced Data Protection for iCloud”) but it’s disabled by default. If you care about data privacy, you should turn it on.
    • System settingsApple IDiCloud → Set Advanced Data Protection to On.
    • System settingsApple IDiCloud → Disable Access iCloud Data on the Web.
  • It supports almost all the native Apple apps, with the notable exceptions of iCloud Mail, Contacts, and Calendars. See official data protection matrix for more info.

Table of Contents

@devnoname120
devnoname120 / tiling_window_managers.md
Last active January 8, 2021 12:51
The quest for a decent tiling window manager on Windows and Mac OS

Windows:

  • workspacer: Fast (C#) and close to i3, but really clunky.
  • dwm win: Pretty decent! Feels snappy but top bar is lagging for some reason ¯\_(ツ)_/¯
  • HashTWM: ?

(considered but bad)

  • MaxTo: Rigid manually-defined layouts, bad shortcuts.
  • AquaSnap: No virtual workspaces, bad shortcuts.
  • FancyZones: Only mouse, rigid, no virtual workspaces.
@devnoname120
devnoname120 / Tech interview links.md
Last active November 26, 2024 08:22
Coding interviews & advice
@devnoname120
devnoname120 / src-openrct2-trace.cpp
Created January 26, 2018 22:49
OpenRCT2 Vita compilation log
#include <stdio.h>
#include <debugnet.h>
extern "C" {
static int nest = 0;
void __cyg_profile_func_enter(void *fn, void *callsite);
void __cyg_profile_func_enter(void *fn, void *callsite) {
for (int i = 0; i < nest; i++) {
debugNetPrintf(99, " ");