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
#!/usr/bin/env sh
systemd-run --user --scope --no-block -p MemoryHigh=1G -p CPUQuota=50% google-chrome-stable --remote-debugging-port=9222 %U
#!/usr/bin/env node
const { URL } = require('url')
const fs = require('fs')
const path = require('path')
const noop = () => {}
const puppeteer = require('puppeteer-core')
process.on('uncaughtException', e => {
const d = new Date()
@vinhjaxt
vinhjaxt / dalvik.sh
Created June 16, 2021 08:24 — forked from maluta/dalvik.sh
Command line Java on DalvikVM
#!/bin/sh
DIR="tmp_"$$
JAR=`echo $1 | tr '.' ' ' | awk '{ print $1 }'`
rm -rf $JAR.jar
mkdir $DIR
cp $1 $DIR
cd $DIR
echo "** Compiling java file..."
javac -d . -g $1
echo "** Creating temporary jar..."
@vinhjaxt
vinhjaxt / Rust install windows
Created August 26, 2021 10:46
Portable rust installation on windows
curl.exe https://static.rust-lang.org/dist/rust-nightly-x86_64-pc-windows-msvc.tar.gz
set "PATH=%PATH%;.\rust-nightly\rustc\bin"
set "PATH=%PATH%;.\rust-nightly\cargo\bin"
@vinhjaxt
vinhjaxt / cloud_metadata.txt
Created September 24, 2021 01:42 — forked from BuffaloWill/cloud_metadata.txt
Cloud Metadata Dictionary useful for SSRF Testing
## IPv6 Tests
http://[::ffff:169.254.169.254]
http://[0:0:0:0:0:ffff:169.254.169.254]
## AWS
# Amazon Web Services (No Header Required)
# from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories
http://169.254.169.254/latest/meta-data/iam/security-credentials/dummy
http://169.254.169.254/latest/user-data
http://169.254.169.254/latest/user-data/iam/security-credentials/[ROLE NAME]
@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
@vinhjaxt
vinhjaxt / chroot.sh
Created December 11, 2021 10:21
X96Air Chroot
#!/usr/bin/env bash
sudo apt install -y qemu-user-static
sudo cp "$(which qemu-arm-static)" ./usr/bin
sudo cp /etc/resolv.conf ./etc/resolv.conf
sudo mount --bind /dev ./dev/
sudo mount --bind /sys ./sys/
sudo mount --bind /proc ./proc/
sudo mount --bind /dev/pts ./dev/pts
@vinhjaxt
vinhjaxt / Crack Sublime Text Windows and Linux.md
Created March 9, 2022 07:34 — forked from JerryLokjianming/Crack Sublime Text Windows and Linux.md
Crack Sublime Text 3.2.2 Build 3211 and Sublime Text 4 Alpha 4098 with Hex

YouTube Channel https://www.youtube.com/c/jerrylokjianming


How to Crack Sublime Text 3.2.2 Build 3211 with Hex Editor (Windows | Without License) ↓

  1. Download & Install Sublime Text 3.2.2 Build 3211
  2. Visit https://hexed.it/
@vinhjaxt
vinhjaxt / update-time-vps.sh
Last active October 14, 2022 02:07
Cập nhật thời gian VPS
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
sudo timedatectl set-timezone Asia/Ho_Chi_Minh
@vinhjaxt
vinhjaxt / ctf_users_template.docx
Last active August 24, 2022 07:31
Tạo CTFd Users hàng loạt và in giấy thông tin đăng nhập