hxp-blog

"RTFSC" - Read The F**king Source Code

Steps to Uninstall OneDrive Completely on Windows 10 Pro

Open Group Policy Editor. Go to Computer Configuration -> Admimistrative Templates -> Windows Components -> OneDrive. Edit Prevent the usage of OneDrive for file storage on Windows ...

Fix for invalid format error when using Git on Windows

If you encounter this kind of error when using Git on Windows: 1 2 3 4 PS C:\Users\hxp\Notes> git push origin master Load key "/c/Users/hxp/credentials/ssh/hxp/id_rsa": invalid format git@githu...

Containerize MATLAB with systemd-nspawn

Install MATLAB in Debian container inside Arch Linux to avoid compatibility bugs

Set up Debian 9 environment Change directory 1 2 sudo su cd /var/lib/machines Install debootstrap and debian-archive-keyring 1 sudo pacman -S debootstrap debian-archive-keyring Use debootstr...

Setting up fail2ban with Gmail notification to secure your Fedora server from brute force

Configure fail2ban and sendmail with Gmail on Fedora 29

Step 0: Install fail2ban 1 2 3 yum install fail2ban systemctl enable fail2ban --now nano /etc/fail2ban/jail.local Add these lines in /etc/fail2ban/jail.local 1 2 3 4 5 6 [DEFAULT] bantime = 360...

Redis Get Shell Vulnerability Reproduction

Deploy Redis 1 2 3 4 5 root@server:~# wget http://download.redis.io/releases/redis-5.0.8.tar.gz root@server:~# tar xzf redis-5.0.8.tar.gz root@server:~# cd redis-5.0.8 root@server:~/redis-5.0.8# m...

Configuring SSL on Apache Server with acme.sh

Ways to issue and auto renew SSL cert and install it on Apache Server

Server Information for This Article My friend’s brand new CentOS 7 Server with httpd installed He updated all pre-installed packages via yum update Install SSL Module for ht...

Solution to not displaying Chinese in CTeX

Fix font error in Linux

Problem Specification After upgrading to BlackArch Linux, Chinese characters in PDF files made by XeLaTeX cannot display. Neither of Evince, Document Viewer in GNOME, PDFView in Emacs can dis...

Fix GRUB on Arch Linux

Today I encountered the most catastrophic incident I have ever had since I installed Arch Linux. I restored my BIOS to factory default. And after that, I cannot start my system any more. My laptop ...

Fix pip dependency error manually on Arch Linux

Manually install appdirs and pyparsing module for pip

Today I tired to install cpupower-gui on my BlackArch Linux. I installed it via yay. 1 yay -S cpupower-gui And pip said: 1 2 3 4 5 6 7 8 9 Traceback (most recent call last): File "/usr/bin/mes...

Install VMware Workstation Pro on Arch Linux

To install WMware Workstation Pro on Arch Linux, DO NOT download the bundle file on the official website. I tired, but I suspect the installer is incompatible with Arch Linux. use AUR instead 1 2...