Skip to content

Instantly share code, notes, and snippets.

$ curl --silent --dump-header - --output /dev/null https://docs.tigerbeetle.com
HTTP/2 200
server: GitHub.com
content-type: text/html; charset=utf-8
last-modified: Mon, 07 Apr 2025 16:29:51 GMT
access-control-allow-origin: *
strict-transport-security: max-age=31556952
etag: "67f3fd7f-6564"
expires: Thu, 10 Apr 2025 17:22:37 GMT
cache-control: max-age=600
keepalive_timeout 120;$
$
proxy_set_header Host $http_host;$
proxy_set_header X-Real-IP $remote_addr;$
proxy_set_header X-Forwarded-Server $host;$
proxy_set_header X-Forwarded-Host $http_host;$
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;$
proxy_redirect off;$
$
# This sets the IP used by Nginx to the client IP from the X-Forwarded-For$
https://854f-64-135-133-111.ngrok-free.app/tools/hn-popularity/
https://67d453cd028ce3401e7d76ee--refactoring-english.netlify.app/tools/hn-popularity/
https://67d44c4347c59c21ec6966bc--refactoring-english.netlify.app/tools/hn-popularity/
https://67d44a63d8a0792872a04e6c--refactoring-english.netlify.app/tools/hn-popularity/
https://67d44732f343402391db14d3--refactoring-english.netlify.app/
https://67d444f9d8a9881bed8a5549--refactoring-english.netlify.app/
package main
import (
"database/sql"
"fmt"
"io"
"log"
"os"
"strings"
"time"
param (
[string]$inputFile,
[string]$outputFile
)
if (-not (Test-Path $inputFile)) {
Write-Host "Input file '$inputFile' not found."
Exit 1
}