Skip to content

Instantly share code, notes, and snippets.

View vinhjaxt's full-sized avatar
🏠
Working from home

vinhjaxt

🏠
Working from home
View GitHub Profile
@vinhjaxt
vinhjaxt / modprobe.sh
Created June 30, 2024 05:49
OpenWrt Orange Pi Zero2 wifi works, but still no Access Point functional
#!/bin/sh
cat >/dev/null <<'EOF'
# terminal 1
mkdir /tmp/rootfs/
sudo mount /dev/sdb1 /tmp/rootfs/
cd /tmp/rootfs/
sudo rm -rf * ./.*
# terminal 2
# Disk DescriptorFile
version=1
encoding="UTF-8"
CID=fffffffe
parentCID=fffffffe
createType="seSparse"
parentFileNameHint="XXX.vmdk"
# Extent description
RW 209715200 SESPARSE "XXX-000001-sesparse.vmdk"
@vinhjaxt
vinhjaxt / README.md
Created June 3, 2024 17:00 — forked from valyala/README.md
Optimizing postgresql table for more than 100K inserts per second

Optimizing postgresql table for more than 100K inserts per second

  • Create UNLOGGED table. This reduces the amount of data written to persistent storage by up to 2x.
  • Set WITH (autovacuum_enabled=false) on the table. This saves CPU time and IO bandwidth on useless vacuuming of the table (since we never DELETE or UPDATE the table).
  • Insert rows with COPY FROM STDIN. This is the fastest possible approach to insert rows into table.
  • Minimize the number of indexes in the table, since they slow down inserts. Usually an index on time timestamp with time zone is enough.
  • Add synchronous_commit = off to postgresql.conf.
  • Use table inheritance for fast removal of old data:
@vinhjaxt
vinhjaxt / frida_multiple_unpinning.js
Created December 19, 2023 16:25 — forked from akabe1/frida_multiple_unpinning.js
Another Android ssl certificate pinning bypass for various methods
/* Android ssl certificate pinning bypass script for various methods
by Maurizio Siddu
Run with:
frida -U -f <APP_ID> -l frida_multiple_unpinning.js [--no-pause]
*/
setTimeout(function() {
Java.perform(function() {
console.log('');

Vinh's GitHub stats

Welcome, You are my Visitor Count visitor, Thank You! 🎉🎉

import escpos.printer as printer
cups_conn = printer.CupsPrinter(host="192.168.2.1",port=631,printer_name="XP-58IIH") # Default CUPS printer
cups_conn.textln("Hello CUPS!") # or any python-escpos command
cups_conn.close()
curl -Lo cloudflared https://github.com/cloudflare/cloudflared/releases/download/2023.10.0/cloudflared-linux-amd64
chmod +x cloudflared
./cloudflared --url ssh://127.0.0.1:22
cloudflared access ssh --hostname uncertainty-saints-newark-martin.trycloudflare.com --url 127.0.0.1:2222
ssh root@127.0.0.1 -p 2222
@vinhjaxt
vinhjaxt / http-benchmark.md
Created October 27, 2023 05:44 — forked from denji/http-benchmark.md
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)