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 { launch } from 'puppeteer'; | |
| import fs from 'fs/promises' | |
| let messages = []; | |
| const eventsToObserve = [ | |
| "Network.dataReceived", | |
| "Network.eventSourceMessageReceived", | |
| "Network.loadingFailed", | |
| "Network.loadingFinished", | |
| "Network.requestServedFromCache", |
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
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "AllowViewAccountInfo", | |
| "Effect": "Allow", | |
| "Action": [ | |
| "iam:GetAccountPasswordPolicy", | |
| "iam:ListVirtualMFADevices" | |
| ], |
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
| FROM alpine:3.21 AS build | |
| RUN apk --no-cache --update --upgrade add git musl-dev cargo \ | |
| && git clone https://github.com/KaranGauswami/socks-to-http-proxy.git \ | |
| && cd socks-to-http-proxy \ | |
| && cargo build --release | |
| FROM alpine:3.21 | |
| COPY --from=build /socks-to-http-proxy/target/release/sthp /usr/local/bin/ |
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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| if [ -z ${NOTE_DIR+x} ]; then | |
| echo "Error: Please configure and export NOTE_DIR environment variable." | |
| exit 1 | |
| fi | |
| function usage() { |
OlderNewer