Skip to content

Instantly share code, notes, and snippets.

View nh4ttruong's full-sized avatar
🥛
Hey bro, don’t deploy on Fridays

Nhật Trường nh4ttruong

🥛
Hey bro, don’t deploy on Fridays
View GitHub Profile
@nh4ttruong
nh4ttruong / cloudflare-dns-handle.sh
Created October 21, 2025 09:23
Quick Update DNS On CloudFlare
#!/bin/bash
#
# A script to manage 'A' or 'CNAME' DNS records in Cloudflare via API.
#
# Usage:
# ./cloudflare_dns.sh (Interactive add mode)
# ./cloudflare_dns.sh -l [-t TYPE] (List records, optionally filter by TYPE: A or CNAME)
# ./cloudflare_dns.sh -u (Interactive update mode)
# ./cloudflare_dns.sh -r (Interactive remove mode)
@nh4ttruong
nh4ttruong / GoogleDorking.md
Created July 8, 2025 05:25 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@nh4ttruong
nh4ttruong / rke2-cheatsheet.md
Last active February 18, 2025 03:39 — forked from superseb/rke2-commands.md
RKE2 commands cheatsheet

RKE2 commands

  • Updated on May 29 to accommodate etcd container not having /bin/sh available anymore.

Install

curl -sL https://get.rke2.io | sh
systemctl daemon-reload
systemctl start rke2-server
@nh4ttruong
nh4ttruong / docker-install.sh
Last active June 27, 2025 08:33
Installing Docker & Docker-Compose on Ubuntu, Linux, CentOS...
sudo apt update && sudo apt install apt-utils -y
curl -sS https://get.docker.com | bash
sudo wget -O /usr/local/bin/docker-compose "$(sudo curl -s https://api.github.com/repos/docker/compose/releases/latest | grep -Po '"html_url": "\K.*\d' | sed 's/tag/download/g')"/docker-compose-linux-"$(uname -m)" && sudo chmod +x /usr/local/bin/docker-compose && sudo docker-compose --version