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 requires some javascript integration which Curl is failed to do. I did some works with Sitespeed for end user monitoring. We use sitespeed docker to visit the website and collect browser metric. By the way, if you don’t know what sitespeed is , visit http://www.sitespeed.io Sitespeed is doing pretty well in collecting the metrics, there is a very nice feature that Sitespeeds does is the ability writing our own selenium script. So imagine that , weRead More →

I have a folder like this: total 4.0K -rwxrwx—. 1 root vboxsf 101 Dec 25 08:03 notes.txt drwxrwx—. 1 root vboxsf 64 Dec 24 22:43 test drwxrwx—. 1 root vboxsf 64 Dec 25 07:45 test2 Then I run a docker sudo docker run -i -v /Data:/Data ubuntu bash cd /Data mkdir test3 I got permission denied. After some research, it turned out that this related to SELinux, it’s a security feature to limit root access. You can easily identify this by looking at the dot (.) at the end of the listing. You can temporary disable it by using: su -c “setenforce 0” To makeRead More →

Having some spare time during Christmas, i spent sometime to install Redhat on my Imac 2011. I followed this guides: https://www.mimiz.fr/install-rhel7-virtualbox-macos.html It’s very straight forward, you don’t need to read all, but you might face some challenges like me. My issue was with internet connection, i do not have internet after the installation. It turned out that i haven’t turned on the network during the installation. To fix this i have to do this manually by run this command: ifup enp0s3 In order to install additional software, we normally use yum utility to install. Redhat require us to register with their subscription manager, it’s free.Read More →

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. One day you might see that it’s not booting and you see some stripes in the screen. If you see that, that means your GPU (graphic card) is failed. It’s could be an easy/cheap fix if you can buy a used part on eBay. My original card is HD 6970M 2GB, it’s still now almost $200 on eBay. So I finally have to use an older card , it’s about $40. It’s 6770M 512MB. It’s originallyRead More →

I’m using Curl 7.5.x, 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 7.46 cd ~ sudo apt-get build-dep curl wget http://curl.haxx.se/download/curl-7.46.0.tar.bz2 tar -xvjf curl-7.46.0.tar.bz2 cd curl-7.46.0 ./configure –with-nghttp2 –with-ssl –with-libssl-prefix=/usr/local/ssl # This is the line I had the most trouble with, especially figure out –with-libssl-prefix make sudo make installRead More →

yum install gcc python3-devel yum install python3 pip3 install psutil Command: watch -n 2 python3 cpu.py def tell_system_status(): import psutil import platform import datetime os, name, version, _, _, _ = platform.uname() version = version.split(‘-‘)[0] cores = psutil.cpu_count() cpu_percent = psutil.cpu_percent() memory_percent = psutil.virtual_memory()[2] disk_percent = psutil.disk_usage(‘/’)[3] boot_time = datetime.datetime.fromtimestamp(psutil.boot_time()) running_since = boot_time.strftime(“%A %d. %B %Y”) response = “I am currently running on %s version %s. ” % (os, version) response += “\nThis system is named %s and has %s CPU cores. ” % (name, cores) response += “\nCurrent disk_percent is %s percent. ” % disk_percent response += “\nCurrent CPU utilization is %s percent. ”Read More →

Buying an old gadget is not always the best choice, but if you have to there is almost something that you need to do to make it better. I got an old Apple Wired USB mouse, it works perfectly except it’s hard to scroll up or down. It’s a little bit annoyance. I tried to see what’s inside, but it looks very difficult to open, there is no screw. I think they use glue to stick the parts. Google a little bit, so i see some tricks to make it work. Most of them suggest to use a paper towel, turn the mouse upside downRead More →

I was trying to install Adobe CS5 in my Imac 2011 – running High Sierra. When i clicked on the installation icon, i always got “install” can’t be opened. you should eject the disk image.” , i verified my security setting, there is nothing blocked there. This is the error i got:   Root cause: it’s something with Apple certificate expiration. It revokes Adobe from installing correctly. This is how i fixed Open “Terminal” appĀ  and run 2 commands below: cd /Volumes/Adobe\ Photoshop\ CS5/Adobe\ Photoshop\ CS5/Install.app/Contents/MacOS/ install      Read More →

Smokeping is a great tool for network monitoring, we recently adopted smokeping to use it for URL monitoring. We use the Curl probe for this purpose. Everything seems working fine until the number of URL goes over a thousand, whenever we restart the service, we see a gap in the graph , this gap means Smokeping did nothing at that time. We did some analysis and make some change: – changing the forks parameter from 5 to 100 – changing the pings from 5 to 3 (if you do this you have to delete all your rrds first otherwise smokeping will not be able toRead More →

Mitmproxy is a python proxy, it’s very light. Basically it’s like a normal proxy but it offers some advanced features that most developer/ hacker like to have: – Watching your internet traffic – Decrypt https (SSL) traffic – It’s the middle man, it allows you to inject python code to change the request/response header between the client and the server. I have a use case to use it: I need to use Chrome in Linux and it must pass the NTLM authentication by windows server , Chrome can do it in Windows but In Linux , there is no way it can pickup credential andRead More →