About Posts
Posts are more formal than WiKi, in which I will do some research and try to dive deeper. I will also present the references at the end of posts.
All Posts
Most recent posts in chronological order:
USB Controller fighternan# ls /sys/bus/usb/devices/ -l lrwxrwxrwx 1 root root 0 Jan 1 00:28 usb1 -> ../../../devices/platform/0.soc/878010000000.pci/pci0001:00/0001:00:0c.0/usb1 lrwxrwxrwx 1 root ...
Coroutines Coroutines are special functions that can have their execution suspended and resumed. To define a coroutine, the co_return, co_await, or co_yield keywords must be ...
std::string_view // Regular strings. std::string_view cppstr {"foo"}; // Wide strings. std::wstring_view wcstr_v {L"baz"}; std::optional A common use case for optional ...
VM docker update --restart unless-stopped $container_name Container # start apache2 at boot up update-rc.d apache2 defaults # check init.d config ...
Got a coredump Let's say a daemon got a segmentation fault. $ coredumpctl TIME PID UID GID SIG COREFILE EXE ...
#include <charconv> #include <future> #include <iostream> #include <sstream> #include <string> #include <string_view> #include <variant> #include <vector> #include <unordered_set> #include <span> ...
This post is based on this post "Containerized Wordpress, Migration, and SSL". I found it a hassle to install and ...
Unless you really need to expose a read-only reference to clients (rare). #include <iostream> class Struct { public: Struct() {} ...
vector<string> Split(const string &s, char delim) { vector<string> result; stringstream ss(s); string item; while (getline(ss, item, delim)) { result.push_back(item); } ...
In graph theory, an Eulerian trail (or Eulerian path) is a trail in a finite graph that visits every edge exactly once (allowing for revisiting vertices). Similarly, an Eulerian ...