Skip to content

Instantly share code, notes, and snippets.

View fcecagno's full-sized avatar

Felipe Cecagno fcecagno

View GitHub Profile
@Lurkars
Lurkars / workadventure-admin-api.yaml
Last active June 13, 2022 03:56
OpenAPI 3 specification of the Work Adventure (https://github.com/thecodingmachine/workadventure) Admin API as defined in available source code.
openapi: 3.0.0
info:
title: Work Adventure Admin API
version: 0.0.1-SNAPSHOT
paths:
/api/ban:
get:
summary: verifyBanUser
operationId: verifyBanUserUsingGET
security:
@sindresorhus
sindresorhus / esm-package.md
Last active April 26, 2024 03:53
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@jakewarren
jakewarren / Description.md
Last active January 11, 2024 02:33
Restrict the amount of CPU and memory resources that Chrome can consume.

Restrict the amount of CPU and memory resources that Chrome can consume.

Tested on Ubuntu 16.04/Linux Mint 18.


Install cgroups:

sudo apt install cgroup-bin
@ndarville
ndarville / business-models.md
Last active January 13, 2024 17:27
Business models based on the compiled list at http://news.ycombinator.com/item?id=4924647. I find the link very hard to browse, so I made a simple version in Markdown instead.

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
Frame-type options:
• --keyint <integer> (x264)
• -g <integer> (FFmpeg)
• Keyframe interval, also known as GOP length. This determines the maximum distance between I-frames. Very high GOP lengths will result in slightly more efficient compression, but will make seeking in the video somewhat more difficult. Recommended default: 250
• --min-keyint <integer> (x264)
• -keyint_min <integer> (FFmpeg)
• Minimum GOP length, the minimum distance between I-frames. Recommended default: 25
• --scenecut <integer> (x264)