Skip to content

Instantly share code, notes, and snippets.

View noway's full-sized avatar
👨‍💻

Ilia Sidorenko noway

👨‍💻
View GitHub Profile
@noway
noway / bun-fetch-get-reader-streaming-bug.sh
Created February 18, 2023 11:47
A script to reproduce fetch's `getReader` streaming bug in bun.
#!/bin/bash
TIMESTAMP=$(date +%s)
mkdir "bun-fetch-get-reader-streaming-bug-$TIMESTAMP/"
cd "bun-fetch-get-reader-streaming-bug-$TIMESTAMP/"
cat <<EOT > package.json
{ "dependencies": { "express": "^4.18.2" }, "type": "module" }
EOT
@noway
noway / bun-express-streaming-response-bug.sh
Created February 18, 2023 11:00
A script to reproduce streaming response bug in bun that's affecting express.js.
#!/bin/bash
TIMESTAMP=$(date +%s)
mkdir "bun-express-streaming-response-bug-$TIMESTAMP/"
cd "bun-express-streaming-response-bug-$TIMESTAMP/"
cat <<EOT > package.json
{ "dependencies": { "express": "^4.18.2" }, "type": "module" }
EOT
@noway
noway / bun-express-body-parser-bug.sh
Created December 16, 2022 10:28
A script to reproduce body-parser bug in bun that's affecting express.js.
#!/bin/bash
mkdir bun-express-body-parser-bug
cd bun-express-body-parser-bug
cat <<EOT > package.json
{
"name": "bun-express-body-parser-bug",
"module": "index.ts",
"type": "module",
"devDependencies": {
"bun-types": "^0.3.0"
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=openspades %U
Name=OpenSpades
GenericName=Sandbox building and FPS videogame
Comment=Open-source clone of Ace of Spades
Icon=openspades.png
Categories=Application;Network;Game;
@noway
noway / hyperboria.sh
Last active December 18, 2015 03:39 — forked from waaghals/hyperboria.sh
#!/bin/sh -e
### BEGIN INIT INFO
# hyperboria.sh - An init script (/etc/init.d/) for cjdns
# Provides: cjdroute
# Required-Start: $remote_fs $network
# Required-Stop: $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Cjdns router
# Description: A routing engine designed for security, scalability, speed and ease of use.
@noway
noway / arkanoid.coffee
Last active December 14, 2015 19:59
Terminal arkanoid on coffeescript+node.js. Execute `coffee arkanoid.coffee` in terminal to run.
if not process.stdout.isTTY
console.log 'To play game run it in terminal'
return
# terminal props
terminalBuffer = []
terminalSize = [0, 0]
terminalCenter = [0, 0]
# plate props