Author Archives: itdoctor - Page 25
PHP: command line options
Supposed that you have a command line like this: How do you get that options in php? Please note the “:” in the option --url "" --proxy...
Python: parse_qsl and semi colon (;)
let say you have a query string ?var1=test;abc&var2=ok when you use function parse_qsl to parse query to get the variable , you will see you have a several variables:...
Python – BaseHTTPServer – override some default method
When you start to write your own http python server, the easiest way is to start with with BaseHTTPServer class. there are many behavior that you want to customize...
Block port 111 from outside
Somehow my server opens port 111, i don’t have time to investigate which program is opening that port, my quick fix was to block that port from external
Sitespeed Selenium Script – Availability Monitoring
When it comes to web monitoring, we normally use Curl to accomplish it. But things getting more complex such password protection, single sign-on using Microsoft ADFS, these new authentication...
Redhat SELilnux – Docker – volume – permission denied
I have a folder like this: total -rwxrwx---. 1 root vboxsf 101 Dec 25 08:03 drwxrwx---. 1 root vboxsf 64 Dec 24 22:43 test drwxrwx---. 1 root...
Install Redhat Server on MacOS with Virtualbox
Having some spare time during Christmas, i spent sometime to install Redhat on my Imac 2011. I followed this guides: It’s very straight forward, you don’t need to...
Imac 2011 – GPU issue
Is your iMac 2011 working? is it too hot? You are so lucky. But you need to keep it cooler otherwise you will have the same problem as me....
Curl – NTLM Support
I’m using Curl , but somehow when i use the –ntlm option, the server seems not accepted. After many tries, i finally make it worked by install the curl...
Python3 – simple script to watch CPU usage
yum install gcc python3-devel yum install python3 pip3 install psutil Command: watch -n 2 python3 def tell_system_status(): import psutil import platform import datetime os, name, version, _, _,...
