index.html

index.html

If "Happily Ever After" did exist

卸载阿里云盾全家桶
DO1234567891011121314151617181920212223242526# Uninstall scriptwget -O - http://update.aegis.aliyun.com/download/uninstall.sh | sudo bashwget -O - http://update.aegis.aliyun.com/download/quartz_uninstall.sh | sudo bashsudo rm -r /usr/local/aegis*# Add iptables rulesudo iptables -I INPUT -s 140.20...
Solution to kacpid high CPU usage
Locate the problemI have observed that something on my laptop occasionally hog up one of my CPU core. By list the processes, I believe the kacpid is responsible for this. To find the culprit behind the process, watch -n "cat /proc/interrupts" It is confirmed that the ACPI has some ...
Javascript Loop Array Parsed from JSON
Suppose we need to loop the objects in users array in the following json. 12345678910{ "users": [ { "userID": "foo" }, { "userID": "bar" } ]} 12345678910111213let data = JSON.parse(jsonString);console.log(data...
Compile Nginx with IPDB Module
The IPIP.net provides a free GeoIP database that works well in CN. The database uses ipdb format and can be integrated in Nginx use either the HTTP module or the stream module. The module requires compilation. Here’s the step: Download and extract the Nginx source code from Nginx download page. ...
Hide Applications in KDE Menu
The Application Dashboard is easy to navigate through the installed apps because it put the apps in the categories automatically. However, there are some apps we do not want them to appear. They maybe the dependencies of other applications and we rarely open them. In the following screenshot, yo...
Javascript Run Asynchronous Simultaneously
Life is a lot easier with Async/Await, you can write clean code to handle async operations, for example: 12345678async (arg) => { try { let result = await doFirstJob(arg); return await doSecondJob(result); } catch (e) { throw new Error('Oops!'); ...
Recover bricked EdgeRouter X
A firmware update failure bricked my ER-X completely, it reboots immediately after startup. Luckily there is an official manual on firmware recovery here. Here are the steps to recover a bricked router. Utilities USB to TTL adapter TTY client TFTP server Patience TFTP ServerDownload recovery ...
Tips of Python Multiprocessing in Windows
Damn! The pool won’t join!As a beginner, I started learning how to multiprocessing with pool by copying the snippets from a tutorial to Pycharm. 1234567891011121314151617181920import multiprocessingdef task(num): print("{} started".format(num)) msg = "Success" return num, msgp...
Manage Hard Drives in Zpool Using Vdev ID
It is easy to set up a disk raid using ZFS. Many tutorials / documents give the examples using # zpool create tank /dev/sdb /dev/sdc /dev/sdd. However, this is not a good practice, descibed in the ZFS on Linux FAQ, the names of the devices are not persistent. Any device change, for example, unpl...