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 / curl.php
Last active September 21, 2026 02:48
php curl read, send email via pop3, imap, smtp
<?php
// list email
var_dump($resps = curl_multi([
[
'url' => 'imaps://mail.xxx:993/INBOX',
'no_verify' => true,
'opts' => [
CURLOPT_CUSTOMREQUEST => 'examine inbox',
CURLOPT_USERPWD => 'xxx@xxx:xxx',
@vinhjaxt
vinhjaxt / alpine.sh
Last active August 17, 2026 06:25
SmolVM as WSL alternative
smolvm machine create --cpus=8 --net --net-backend virtio-net --allow-cidr 0.0.0.0/0 --image alpine --name default --docker-socket --volume C:\data:/workspace --workdir /workspace
smolvm machine create --net --allow-cidr 0.0.0.0/0 --image alpine --name default
smolvm machine start
smolvm machine shell
smolvm machine stop
smolvm machine delete --name default
@vinhjaxt
vinhjaxt / XXX-000001-sesparse.vmdk-to-XXX-000001.vmdk.md
Last active August 1, 2026 11:11
Linux mount vmdk , flat-vmdk
# 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 / csc-location.txt
Last active October 24, 2025 01:50
.Net csc.exe location
C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe
C:\windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /t:exe /out:output.exe Program.cs
@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 / Gõ tiếng việt fcitx cho Viber.md
Last active February 22, 2025 01:51
Gõ tiếng việt fcitx cho Viber

Gõ tiếng việt fcitx cho Viber

# https://docs.appimage.org/packaging-guide/manual.html
sudo apt install -y patchelf chrpath

./viber.AppImage --appimage-extract
cp /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so ./squashfs-root/plugins/platforminputcontexts

patchelf --set-rpath '$ORIGIN/../../lib' ./squashfs-root/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so
# chrpath -r '$ORIGIN/../../lib' ./squashfs-root/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so