Tcpdump is a very useful tool to capture network packets.
e.g. to capture TCP packet from interface lo0 via port 9999
sudo tcpdump -i lo0 port 9999 -XX -v
A recent project, we have to send TCP and UDP data from Host to Docker, back and forth. Docker is great and it is easy to expose port to provide service inside Docker instance. For example:
docker run -itd --name my_instance -p 1111:2222 -p 8888:9999/udp my_image
Previously I am using spf13 for my vim configuration. However it is a bit sluggish for me since it includes too much settings and plugins which might not be needed for my daily usage, therefore I deicide to move to this vimrc.
New plugins installed manually such as vim-rails, vim-autoformat, YouCompleteMe, tagbar, vim-ctrlp-tjump etc.
Ctags is also needed for go to definition.
Given the year and month, we would like to know the date of the first/last Monday, Tuesday, Wednesday, etc.
This is a small lab I have done to see how easy to use python to transfer file over TCP and UDP. File formats including plain text, MS word, pdf, image and vedio.
Since version 1.4, mosquitto MQTT broker starts to support websockets natively. Now it is a try out for this great new feature.
The websocket support is not enabled by default, so we have to fetch the source code firstly and update one line in file config.mk
Software development and deployment work flow is quite important for a development team when the product has rapid iterations and code base getting more and more large. There are three concepts/terms around development & deployment: Continuous Integration, Continuous Delivery and Continuous Deployment.