Skip to content

Instantly share code, notes, and snippets.

Out sick

Phạm Ngọc Quang Nam NamPNQ

Out sick
Block or report user

Report or block NamPNQ

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Created Apr 29, 2020
Cross-compiling from Ubuntu to Windows using docker
  1. Go to your project
$ docker run -it --rm `pwd`:/opt/app rust bash
  1. Build
$ apt update && apt install mingw-w64 -y
NamPNQ /
Last active Nov 18, 2017

Mình viết sơ qua các steps mình làm

  1. Tác giả hint là open-redirect
  2. Mình có coi qua rồi, khi nhấn vào report chưa login nó sẽ chuyển sang page login, có params return=report.php
  3. search Open Redirect Fuzz List
  4. Thử vài cái thấy \/ ok
  5. làm cái đường link để report
  6. report cho tác giả
  7. lấy đc code
  8. vào đọc tâm sự
docker images -q -a | xargs --no-run-if-empty docker rmi
NamPNQ / sslCertTrusted.js
Last active Oct 14, 2016
Check ssl cert trusted
View sslCertTrusted.js
<script> var sslCertTrusted = false; </script>
<script src=""></script>
if (!sslCertTrusted)
alert('Sorry, you need to install the certificate first.');
NamPNQ /
Created Jul 13, 2016
Keybase proof

Keybase proof

I hereby claim:

  • I am nampnq on github.
  • I am nampnq ( on keybase.
  • I have a public key whose fingerprint is 3748 6A9E C7E0 4AC4 FBF0 05E0 3A58 1A19 1373 277E

To claim this, I am signing this object:

View linux swap
# Sudo
sudo su
# Check
swapon -s
# Create swap file
fallocate -l 10G /swapfile && chmod 600 /swapfile # or dd if=/dev/zero of=/swapfile bs=1M count=2048
# Make swapfile a Linux-managed swap area
NamPNQ / nginx.conf
Created Jun 13, 2016
Config nginx + https + for gen ssl
View nginx.conf
location /.well-known/acme-challenge {
alias /opt/letsencrypt/.acme-challenges;
if ($request_uri !~ "^/\.well-known/acme-challenge.*$"){
set $test notletencrypt;
if ($scheme != "https"){
set $test "${test}+notssl";
if ($test = "notletencrypt+notssl")
NamPNQ /
Created May 18, 2016
Codeschool Downloader
NamPNQ /
Last active Nov 30, 2017

What are you looking for? The file name bootmgfw.efi to fix window shjt cannot boot? This is here for you :D

NamPNQ /
Last active Apr 9, 2016
Download images and store in correct path via curl
cat images.txt | awk 'match($2, /images\/(.*)$/, a){print $2 "\t" a[1]}' | while read url store_path; do
  curl ${url} --create-dirs -o ${store_path}
You can’t perform that action at this time.