Skip to content

Instantly share code, notes, and snippets.

View acheong08's full-sized avatar
🎯
Focusing

Antonio Cheong acheong08

🎯
Focusing
View GitHub Profile
@acheong08
acheong08 / htmj.js
Created November 5, 2023 17:21
HTMX but with JSON
class HTMJ {
constructor() {
this.init();
}
init() {
document.addEventListener("DOMContentLoaded", () => {
this.parseTemplates();
});
}
@acheong08
acheong08 / portfwd.sh
Last active July 12, 2024 07:12
Port forwarding utility
#!/bin/bash
# Default protocol is tcp
PROTOCOL="tcp"
# Use wireguard as default
INTERFACE="wg0"
# Config file path
CONFIG_FILE="${HOME}/.config/portfwd/config"
@acheong08
acheong08 / tls_finger.go
Created November 17, 2023 01:14
Quick script for checking TLS fingerprint
// To do: Make this into a full blown site that monitors the internet for changes in TLS fingerprints
package main
import (
"crypto/sha256"
"crypto/tls"
"encoding/hex"
"flag"
"fmt"
(function (root, factory) {
if (typeof define === "function" && define.amd) {
// AMD. Register as an anonymous module.
define([], factory);
} else if (typeof module === "object" && module.exports) {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports,
// like Node.
module.exports = factory();
} else {
@acheong08
acheong08 / nfs.go
Created May 18, 2024 00:38
A barebones NFS client for testing
package main
import (
"context"
"fmt"
"io"
"os"
"github.com/Cyberax/go-nfs-client/nfs4"
)