Copy and paste not working in VMWare Fusion

8 Uncategorized Leave a Comment
Confirm vmware tools had installed, if your vm is ubuntu, use: # ubuntu desktop $ apt install open-vm-tools-desktop open-vm-tools # ubuntu server: $ apt install open-vm-tools Turn on copy and paste Shut down the Virtual Machine, from the Menu select Virtual Machine -> Isolation -> Check Enable Copy and P…

ffmpeg common commands

50 Uncategorized Leave a Comment
Download video with .m3u8 link Download full video ffmpeg -i "https://this-is-your-url-of.m3u8" -c copy -bsf:a aac_adtstoasc "output.mp4" Download specific time range: ffmpeg -ss 04:05:25 -to 04:15:00 -i "https://this-is-your-url-of.m3u8" -c copy -bsf:a aac_adtstoasc "output-c…

How to quickly install and start Kafka

46 Uncategorized Leave a Comment
Install and start Kafka is quite simple even on you local computer. Maybe you are thinking it must need lots of dependencies, but the fact is, it only needs Java. No database, no complicate configuration are needed, so you also no need to install Docker to run it. How to install and start Kafka Following are so…

MySQL REGEXP_REPLACE() function

122 Uncategorized Leave a Comment
Notice: Corrently, REGEXP_REPLACE() do not support \s. Here is an example of using MySQL 8+ regexp_replace(): > select regexp_replace('<div>Hello <b>world</b></div>', '<b>.*?</b>', 'MySQL', 1, 0, 'in') as result; +---------------------…

Quick start docker containers in one command

145 Uncategorized Leave a Comment
If you want start container as daemon, just add argument -d to the command If you want the container has a name, add argument --name <Container Name> MySQL Quick start MySQL from Docker, ~ docker run --rm -p 3306:3306 -e MYSQL_ROOT_PASSWORD=12345678 mysql The login info will be username: root password: 1…

Online RSS Feed validators

47 Uncategorized Leave a Comment
Here are some free RSS validator: W3C validator: W3C validator is for syndicated feeds. It supports validate by URI and also validate by direct Input. W3C feed validator works with RSS 0.90, 0.91, 0.92, 0.93, 0.94, 1.0, and 2.0. Enter the address of your feed or XML content and click “validate.” Errors will be …