Skip to content

Instantly share code, notes, and snippets.

View NotAProton's full-sized avatar
💭
'); DROP TABLE users;--

NotAProton

💭
'); DROP TABLE users;--
View GitHub Profile
  1. Install airbnb-base npx install-peerdeps --dev eslint-config-airbnb-base

  2. Install required dependencies npm i -D typescript eslint prettier prettier-eslint-cli eslint-config-prettier eslint-plugin-prettier eslint-config-node eslint-plugin-node @typescript-eslint/eslint-plugin @typescript-eslint/parser

  3. Add .eslintrc.json with the following code:

{
  "root": true,
@mikeconley
mikeconley / pip-captions.md
Last active March 17, 2022 21:19
Captions in Picture-in-Picture

Subtitle and caption support for many sites in Firefox's Picture-in-Picture player window is targeted to ship in Firefox 100.

Hi! If you're reading this, then you've asked me about or otherwise expressed interest in supporting captions / subtitles in Firefox's Picture-in-Picture feature.

As of this writing, Firefox does not currently support captions or subtitles in the player window. This is because most sites have invented their own mechanisms for display captions or subtitles. YouTube's captions, for example, are implemented in a completely different way from Netflix's.

This makes it rather difficult for us as a browser to develop a general solution to the subtitles / caption problem.

~Difficult, but not impossible. We're currently working on ways for us to develop site-specific behaviours for Picture-in-Picture. This allows Firefox's Picture-in-Picture feature to be smarter in how it interacts with specific video sites. In theory, this would allow us to detect the subtitles and captions and disp

@djfdyuruiry
djfdyuruiry / README.md
Last active October 8, 2024 04:54
WSL 2 - Enabling systemd

Enable systemd in WSL 2

NOTE: If you have Windows 11 there is now an official way to do this in WSL 2, use it if possible - see MS post here (WINDOWS 11 ONLY)

This guide will enable systemd to run as normal under WSL 2. This will enable services like microk8s, docker and many more to just work during a WSL session. Note: this was tested on Windows 10 Build 2004, running Ubuntu 20.04 LTS in WSL 2.

  • To enable systemd under WSL we require a tool called systemd-genie

  • Copy the contents of install-sg.sh to a new file /tmp/install-sg.sh:

@enricofoltran
enricofoltran / main.go
Last active July 19, 2025 10:43
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
This file has been truncated, but you can view the full file.
9254835974458887629672873635789957411886024698554157393849494864228024962939550688297074527198420261051675205999609689838587412
7948702662533481896767559573369920938242346354580061545409242090168773727371802699309443935396635866263937828773324526334321892
7929250312741837331511829643632683169694074912332726993582394725302853411901337696207186358524323117172520907433878952968176465
9486937364148093931718552300016332142708943190856638524388888569011747617956915519539025796115901484762122047712200094207683584
0703675740855407318047361595661595146837376373951978537785605481083388906490085533348547865459237835407372374738389274773789264
3524314516560200536698529022539598732463389124803873184044464663165630452635665559603483233341839268186056673186867104904449866
3388466377320953222057779182433549144340237502432464295061371141084500222833875925546082542869030852833895137466510262849050187
2359980877010447170873386178573828860442255448874794721230413368694441497441338856684036949118353204002591974711928301953002372
@rosterloh
rosterloh / template.c
Created January 11, 2014 20:00
C source file templates from beningo.com
/*******************************************************************************
* Title : System Initialization
* Filename : sys_init.c
* Author : JWB
* Origin Date : 04/23/2012
* Version : 1.0.0
* Compiler : Microchip C30 v3.30c
* Target : PIC24FJ64GB004
* Notes : None
*******************************************************************************/