Skip to content

Instantly share code, notes, and snippets.

View nhuongmh's full-sized avatar

Minh Nhuong nhuongmh

View GitHub Profile
@girorme
girorme / worker-pool.go
Last active May 8, 2024 18:24
worker pool using go channels + waitGroup
package main
import (
"flag"
"fmt"
"net/http"
"sync"
"threadsync/httpclient"
"time"
)
@raghur
raghur / shell.sh
Created September 11, 2017 08:41
QPDF command to remove file restrictions from password protected pdf file.
# remove pdf file restrictions from password protected pdf file.
qpdf.exe --decrypt --password=verysecret input.pdf output.pdf
@alepez
alepez / fix.md
Created November 25, 2016 13:59
Ubuntu 16.04 (EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied)
sudo apt-get install xserver-xorg-legacy

Edit /etc/X11/Xwrapper.config

allowed_users=anybody
needs_root_rights=yes