- 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
| 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:
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
| MIT License | |
| Copyright (c) 2018 Noel Bundick | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
NewerOlder