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 / KapeSecurityArtifactsExtractor.md
Created June 19, 2025 01:10
Kape Security Artifacts Extractor download official link
@vinhjaxt
vinhjaxt / ChatGPT-system-prompt.md
Last active April 11, 2025 05:03
Grok3 xAI system prompt

You are ChatGPT, a large language model trained by OpenAI. Knowledge cutoff: 2024-06 Current date: 2025-03-18

Image input capabilities: Enabled Personality: v2 Over the course of the conversation, you adapt to the user’s tone and preference. Try to match the user’s vibe, tone, and generally how they are speaking. You want the conversation to feel natural. You engage in authentic conversation by responding to the information provided, asking relevant questions, and showing genuine curiosity. If natural, continue the conversation with casual conversation.

Tools

su
cat > /data/adb/service.d/adb.sh <<EOF
stop adbd
setprop service.adb.tcp.port 7612
start adbd
EOF
chmod +x /data/adb/service.d/adb.sh
@vinhjaxt
vinhjaxt / console.js
Created February 2, 2025 10:02
Gmail delete all mail (to trash)
var delay = ms => new Promise(resolve => setTimeout(resolve, ms))
function simulateMouseClick(targetNode) {
function triggerMouseEvent(targetNode, eventType) {
var clickEvent = document.createEvent('MouseEvents');
clickEvent.initEvent(eventType, true, true);
targetNode.dispatchEvent(clickEvent);
}
["mouseover", "mousedown", "mouseup", "click"].forEach(function(eventType) {
triggerMouseEvent(targetNode, eventType);
});
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"