It is a painful process and I would like to record the whole process.. I will provide a script in the end to assist, but the script should be used "AS IS." To get wireshark working on Android, we will need many many libraries to start with. Most importantly, we need: libpcap glib libiconv libffi… Continue reading Compile tshark/wireshark for Android
Every time I try to convert from png to eps, through commands like convert or via online converters like here, the eps file is always super large. For example, a 50KB png after conversion becomes 3MB eps. Then I figured a way to reduce the file size. It is still through convert command, but with… Continue reading Convert png to eps with minimal size
Solutions combined from here and here. Here is a log. If you use MacOS, skip the Debian/Ubuntu part. Debian/Ubuntu cd ~ wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz tar -xzf install-tl-unx.tar.gz cd install-tl-20170117 sudo ./install-tl Then press o and press Enter. You will see the option manual. Enable letter size as well as creating symlinks by pressing P and L.… Continue reading Update/Install Tex Live 2016
So today I was trying to install NCrack 0.4Alpha, and I encountered this problem of undeclared variable DE1 and userkey not in scope. Below are the commands to run and the red marks where the errors appear. wget http://nmap.org/ncrack/dist/ncrack-0.4ALPHA.tar.gz tar xzf ncrack-0.4ALPHA.tar.gz cd ncrack-0.4ALPHA.tar.gz && ./configure make make install The errors: ... crypto.cc: In function… Continue reading Issue While Installing NCrack 0.4Alpha
Simple commands. To backup (with root password): mysqldump -u root -p --all-databases | gzip > /backups/mybackup.gz To restore: zcat mybackup.gz | mysql -u root -p
This is a log to establish & install ShadowSock on VPS (Centos). If you do not have zlib-devel and openssl-devel, then you need to install it. sudo yum install -y zlib-devel openssl-devel Detailed steps: git clone https://github.com/shadowsocks/shadowsocks-libev.git cd shadowsocks-libev ./configure --prefix=/usr && make sudo make install sudo cp ./rpm/SOURCES/etc/init.d/shadowsocks-libev /etc/init.d/ sudo chmod +x /etc/init.d/shadowsocks-libev sudo… Continue reading Create ShadowSocks on VPS
A simple code for fetching the free VPN account from VPNBook.com. It is an awesome VPN site! The addresses are (updated Nov. 29): euro217.vpnbook.com euro214.vpnbook.com us1.vpnbook.com us2.vpnbook.com ca1.vpnbook.com de233.vpnbook.com Below is the Python code.
While I was searching for how to setup PHP on Mac, I found this guy's website (Jason) and his post in July. The problem he pointed out is: Which year (only the last two digits) will have the most dates that satisfies the equation (day+month=year)? For example, January 3, 2004 satisfies this (since 1+3=4). So does February 2,… Continue reading A Quick Reply to "Math in Dates"