This article shows how to capture Docker container’s network traffic in a few easy steps.
-
posts
-
How to capture network traffic in Docker container
-
Decrypt HTTPS traffic from Java application in Wireshark
You need to read HTTPS traffic from your application, but it is encrypted? I might have a solution for you.
-
Docker without sudo on Linux
Writing sudo before every docker command could be a pain in the ass. We can get around this by adding our user to the docker group.
-
Docker - login to any container as root
Many Docker images are set up to run under non-root user accounts. Although it is a solid security practice, we occasionally want root access to a container in order to make modifications for debugging or development purposes. Here are some tips on how to obtain it.
-
C++ multithreaded TCP server
The article describes how to implement a concurrent TCP/IP server in C++ for Linux environment. Multithreading provides concurrency in my solution. Thanks to concurrency, clients do not have to wait for their turn and can be served immediately. The server I created has one thread to handle new connections (
TCPServer
class). After accepting such a connection, a new thread is created which is responsible for all communication with a given client (ConnectionHandler
class). Implementation ofConnectionHandler
can be freely changed. It may allow any use of the server, for example it could work well as an HTTP server. -
Git - WSL - Visual Studio Code - fix for 'unable to write new index file'
- Error in external git client (for example SourceTree, GitKraken):
Rename from 'C:/path/to/repository/.git/index.lock' to 'C:/path/to/repository/.git/index' failed. fatal: unable to write new index file
- OS: Windows
- Project opened in Visual Studio Code
- Remote connection type: WSL
- Visual Studio Code Extension: Remote - WSL
- Error in external git client (for example SourceTree, GitKraken):
-
std::atomic - C++11 spinlock implementation
Spinlock is a synchronization mechanism that waits in a loop to acquire the lock. This kind of lock is busy waiting. It consumes processor time, doing an empty loop, so it may seem like an inefficient mechanism. In multiprocessor systems, spinlock can sometimes be more efficient than mutexes, because the loop is executing in the userspace context. Time-consuming context switching to system code is avoided. Spinlocks works great when threads are blocked only for short periods.
-
Training an AI bot to play Snake
The goal of this project was to train an AI bot to play Snake. The bot didn’t get any information about the rules of the game - it had to guess them by itself. All information it got was snake vision and information about reward or penalty. The game and the bot were written in Python.
-
How to upload mp3 files to Overcast with command line
I love listening to podcasts and audiobooks. I listen to them in every free moment - while cleaning, travelling by public transport, cooking, etc. Thanks to the audio materials, I feel that I’m learning something all the time and I don’t waste a single moment.
-
cron - How to set periodic tasks on Linux and macOS
Cron is a job scheduler in Unix-like computer systems. You can use it to set schedules for tasks, for example, every 5 minutes or every Monday at 4:23. Cron is most suitable for scheduling repetitive tasks.