This file contains 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 http = require('http'); | |
const server = http.createServer(async function(req, res) { | |
const buffers = []; | |
for await (const data of req) { | |
buffers.push(data); | |
} | |
let body = null; | |
if (buffers.length > 0) { |
This file contains 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
Show hidden characters
{ | |
"name": "Debian", | |
"image": "mcr.microsoft.com/devcontainers/base:bookworm", | |
"customizations": { | |
"vscode": { | |
"extensions": [ | |
"fwcd.kotlin", | |
"vscjava.vscode-java-pack" | |
] | |
} |
This file contains 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
#!/usr/bin/env bash | |
# | |
# Usage: watch.sh "<command>" [interval] | |
# https://stackoverflow.com/questions/9574089/os-x-bash-watch-command | |
pid=$$ | |
command="$1" | |
# default interval of 2 seconds | |
interval="${2:-2}" |
OlderNewer