- Linux Mint 20.2 x86_64
- Kernel 5.4.0-135-generic
sudo apt-get remove exfat-fuse exfat-utils
const tesseractTsvToJson = (tsvFilename, jsonFilename) => { | |
console.log(`> tsvToJson ${tsvFilename} => ${jsonFilename}`); | |
const tsvLines = fs.readFileSync(tsvFilename, 'utf-8').trim().split('\n').reverse(); | |
/** @type {any} */ | |
const json = {pages: []}; | |
// discard header | |
tsvLines.pop(); |
sudo apt-get remove exfat-fuse exfat-utils
Some notes to adjust the MX4000 parameters for retro gaming. These notes apply to my model (SW 2.0)
$ uname -r
From:
Code:
Protocol: NEC1
Device: 2
SubDevice: 160
Func. OBC HEX EFC
const crypto = require('crypto'); | |
const urlBase64 = require('urlsafe-base64'); | |
function generateVAPIDKeys() { | |
const curve = crypto.createECDH('prime256v1'); | |
curve.generateKeys(); | |
return { | |
publicKey: urlBase64.encode(curve.getPublicKey()), | |
privateKey: urlBase64.encode(curve.getPrivateKey()) |
/* | |
* Original file: | |
* https://github.com/40thieves/webpack-sentry-plugin/blob/master/src/index.js | |
*/ | |
const request = require('request-promise'); | |
const fs = require('fs'); | |
const crypto = require('crypto'); | |
const {green, yellow, red} = require('colors/safe'); | |
const Queue = require('promise-queue'); |
const RWS = require('reconnecting-websocket'); | |
const rws1 = new RWS('wss://echo.websocket.org'); | |
const rws2 = new RWS('wss://echo.websocket.org', undefined); | |
rws1.onopen = () => console.log('ws1 connected'); | |
rws2.onopen = () => console.log('ws2 connected'); |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers