Skip to content

Instantly share code, notes, and snippets.

View taimoorgit's full-sized avatar

Taimoor Ahmad taimoorgit

View GitHub Profile
@taimoorgit
taimoorgit / how_to_redact_pdf_macos.sh
Last active February 12, 2026 03:26
How to redact a PDF on macOS - hide sensitive information using Preview, rasterize text using ImageMagick, remove EXIF data using ExifTool
# make a working copy so the original stays untouched
cp TA1.pdf DexaScan.pdf
# open the copy in Preview, delete pages, and use Markup → Redact (choose “Remove Content”), then save
open DexaScan.pdf
# rasterize the pdf to destroy all text layers (non-selectable, non-recoverable)
magick -density 300 DexaScan.pdf Dexa_Scan.pdf
# strip all metadata in place (no backup file)
@taimoorgit
taimoorgit / liboqs-example.go
Last active January 23, 2021 15:07
Keypair generator and signature verifier for liboqs-go
// signature Go example
package main
import (
"fmt"
"log"
"github.com/open-quantum-safe/liboqs-go/oqs"
)