Skip to content

Instantly share code, notes, and snippets.

Smowtion Thomanphan

Block or report user

Report or block Thomanphan

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
AZcaptcha / curl.php
Last active Oct 14, 2018
Simple captcha curl from
View curl.php
Curl with image captcha from
$file_name_with_full_path = './dataset/cap_img_1_.jpg';
echo "<img src='$file_name_with_full_path' />";
$api_url = "";
holmberd /
Last active Mar 27, 2020
Adjusting child processes for PHP-FPM (Nginx)

Adjusting child processes for PHP-FPM (Nginx)

When setting these options consider the following:

  • How long is your average request?
  • What is the maximum number of simultaneous visitors the site(s) get?
  • How much memory on average does each child process consume?

Determine if the max_children limit has been reached.

  • sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log
katopz /
Last active Mar 29, 2020 — forked from cdjhlee/
Setup zeromq in Ubuntu 16.04
# Download zeromq
# Ref
# Unpack tarball package
tar xvzf zeromq-4.2.2.tar.gz
# Install dependency
bmcbride /
Last active Jan 21, 2020
Create a new GitHub Issue from a Google Form submission

Wiring up a Google Form to GitHub is not that difficult with a little bit of Apps Script automation. All you need is a Google account, a GitHub account, and a web browser...

Set up your GitHub Personal Access Token

Personal access tokens provide an easy way to interact with the GitHub API without having to mess with OAuth. If you don't already have a personal access token with repo or public_repo access, visit your GitHub settings page and generate a new token.

Be sure to copy your token some place safe and keep it secure. Once generated, you will not be able to view or copy the token again.

Set up the Form & Spreadsheet

  1. Create a Google Form.
View iptv.m3u
#EXTINF:0,205: VTV1 HD
#EXTINF:0,206: VTV2
ChiChou /
Last active Mar 21, 2020
Deobfuscate free version of

Simple Javascript deobfuscator

Aims to deobfuscate the result of JavascriptObfuscator free version.


To tun the script, you should have had node.js installed first. Requires node.js and following npm modules:

  • esprima
soheilhy /
Last active Mar 30, 2020
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for,, and on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

View patch-edid.rb
# Create display override file to force Mac OS X to use RGB mode for Display
# see
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
christianroman /
Created May 30, 2013
Bypass Captcha using 10 lines of code with Python, OpenCV & Tesseract OCR engine
import as cv
import tesseract
gray = cv.LoadImage('captcha.jpeg', cv.CV_LOAD_IMAGE_GRAYSCALE)
cv.Threshold(gray, gray, 231, 255, cv.CV_THRESH_BINARY)
api = tesseract.TessBaseAPI()
api.SetVariable("tessedit_char_whitelist", "0123456789abcdefghijklmnopqrstuvwxyz")
print api.GetUTF8Text()
Mteigers / allow
Created May 21, 2013
CSF Allow AND Ignore Cloudflare IPv4 IP's.
View allow
for i in `curl`; do csf -a $i; done
You can’t perform that action at this time.