- Web Wormhole https://webwormhole.io/ https://github.com/saljam/webwormhole
- Localsend https://web.localsend.org/
- FilePizza https://file.pizza/
ShareDrop sharedrop.io https://github.com/szimek/sharedrop(SOLD, not recommended, use one of the forks)A clone SnapDrop snapdrop.net https://github.com/RobinLinus/snapdrop(SOLD, not recommended, use one of the forks)- A fork PairDrop https://pairdrop.net/ https://github.com/schlagmichdoch/pairdrop
- ToffeeShare https://toffeeshare.com/
- Instant.io https://instant.io/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { and, type DBQueryConfig, eq, type SQLWrapper } from "drizzle-orm"; | |
| import { drizzle } from "drizzle-orm/postgres-js"; | |
| import postgres, { type Sql } from "postgres"; | |
| import { type AnyArgs } from "@/common"; | |
| import { | |
| type DbClient, | |
| type DbTable, | |
| type DeleteArgs, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { spec } from "node:test/reporters"; | |
| import { Transform } from 'node:stream'; | |
| class Reporter extends Transform { | |
| // This is a custom test reporter for node:test | |
| // it'll only log console.logs that occur during | |
| // failed tests. For everything else it delegates | |
| // to the default "spec" reporter. | |
| constructor() { | |
| super({ writableObjectMode: true }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://ascii-generator.site/ | |
| ░░░░░░░░░░░░▄▄░░░░░░░░░ | |
| ░░░░░░░░░░░█░░█░░░░░░░░ | |
| ░░░░░░░░░░░█░░█░░░░░░░░ | |
| ░░░░░░░░░░█░░░█░░░░░░░░ | |
| ░░░░░░░░░█░░░░█░░░░░░░░ | |
| ███████▄▄█░░░░░██████▄░ | |
| ▓▓▓▓▓▓█░░░░░░░░░░░░░░█░ | |
| ▓▓▓▓▓▓█░░░░░░░░░░░░░░█░ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # -eux | |
| function confirm() | |
| { | |
| echo -n "$@ " | |
| read -e answer | |
| for response in y Y yes YES Yes Sure sure SURE OK ok Ok | |
| do | |
| if [ "_$answer" == "_$response" ] | |
| then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Your domain name | |
| const MY_DOMAIN = 'note.example.com' | |
| // Website language | |
| const LANG = 'en' | |
| // Favicon url | |
| const FAVICON_URL = 'https://example.com/favicon.ico' | |
| // Your config page link |
| Version | Link |
|---|---|
| ECMAScript 2015 - ES2015 - ES6 | All Features List |
| ECMAScript 2016 - ES2016 - ES7 | All Features List |
| ECMAScript 2017 - ES2017 - "ES8" | All Features List |
| ECMAScript 2018 - ES2018 - "ES9" | All Features List |
| ECMAScript 2019 - ES2019 - "ES10" | All Features List |
| ECMAScript 2020 - ES2020 - "ES11" | All Features List |
| Git | Perforce Command Line | P4V | Notes |
|---|---|---|---|
| git pull | p4 sync | get latest revision | |
| n/a | p4 update | ? | Get latest revision without overwriting files that have been changed. |
| git checkout | p4 edit | checkout | You plan to change a file from the version control system |
| git commit | p4 submit | submit | |
| git push | n/a | n/a | No perforce equivalent. There is no concept of a pure local submit in Perforce. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs'); | |
| const path = require('path'); | |
| class Node { | |
| constructor(start, end, depth) { | |
| this.start = start; | |
| this.end = end; | |
| this.middle = Math.floor((start + end) / 2); | |
| this.items = []; | |
| this.left = null; |
I have been generating CPU Flame Graphs of Node.js applications with Linux perf command, and noticed that some of the graphs have suspicious labels. For example, with a sandbox project and Node 10.8.0, I got LazyCompile:*a.renderDOM /opt/app/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:35 where it should have been something related to streams.
For example, the following is a stack trace from perf script that I used to genearte a CPU Flame Graph. 227bbdff955b has a label LazyCompile:*a.renderDOM, but it doesn't make much sense that React.renderDOM was called from _stream_readable.js and parsed JSON in it.
node 22640 56531.256247: 10101010 cpu-clock: NewerOlder