Skip to content

Instantly share code, notes, and snippets.

@developer-commit
developer-commit / tls_tor.rs
Created January 27, 2025 19:22
This Rust code provides a client implementation for HTTPS communication over the Tor network
/*
***warning***
I have not checked with tools like Wireshark whether it was transmitted in an encrypted form.
arti-client = "0.24.0"
tokio = { version = "1", features = ["full"] }
tor-rtcompat = "0.24.0"
tokio-rustls = "0.26.0"
webpki-roots = "=0.26.7"
@developer-commit
developer-commit / capture.swift
Created January 25, 2025 07:32
example by window capture
// origanl code : https://stackoverflow.com/questions/78846311/screencapturekit-example-in-go-c
import Foundation
import ScreenCaptureKit
import CoreGraphics
import AppKit
func captureScreenshot(display: SCDisplay?, window: SCWindow, app: SCRunningApplication,completion: @escaping (NSImage?) -> Void) {
let filter: SCContentFilter