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
exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
@vinhjaxt
vinhjaxt / cfTurnStile.html
Created September 9, 2024 08:52
Cloudflare Turnstile Captcha
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Captcha</title>
<style>
html,
body {
@vinhjaxt
vinhjaxt / bytes-pool.go
Created August 16, 2024 17:41
Golang bytes sync.pool
var buffer8kPool sync.Pool = sync.Pool{
New: func() interface{} {
v := make([]byte, 8*1024)
return &v
},
}
func getBuffer8k() *[]byte {
return buffer8kPool.Get().(*[]byte)
}
@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! 🎉🎉