C++ links: Coroutines
https://github.com/MattPD/cpplinks / C++ Standard / C++20 / Coroutines
(draft; work in progress)
#coroutines (C++ Slack): https://cpplang.slack.com/archives/C5JS5JXT5
#include <windows.h> | |
#include <stdio.h> | |
#pragma pack(push, 2) | |
#define RT_ICON MAKEINTRESOURCE(3) | |
#define RT_GROUP_ICON MAKEINTRESOURCE((ULONG_PTR)(RT_ICON) + 11) | |
/* Icon file header */ | |
typedef struct |
/************************************************************************** | |
* simpletun.c * | |
* * | |
* A simplistic, simple-minded, naive tunnelling program using tun/tap * | |
* interfaces and TCP. Handles (badly) IPv4 for tun, ARP and IPv4 for * | |
* tap. DO NOT USE THIS PROGRAM FOR SERIOUS PURPOSES. * | |
* * | |
* You have been warned. * | |
* * | |
* (C) 2009 Davide Brini. * |
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm | |
rpm -ivh epel-release-7-5.noarch.rpm | |
sudo yum install byobu -y --enablerepo=epel-testing |
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz |
<html> | |
<head> | |
<title>Checkout Example</title> | |
</head> | |
<body> | |
<form action="/charge" method="post" class="payment"> | |
<article> | |
<label class="amount"> | |
<span>Amount: $5.00</span> |
jit-toy: jit-toy.cpp | |
clang++ -g -o $@ $^ $(shell /usr/lib/llvm-5.0/bin/llvm-config --cxxflags --ldflags --system-libs --libs core) |
https://github.com/MattPD/cpplinks / C++ Standard / C++20 / Coroutines
(draft; work in progress)
#coroutines (C++ Slack): https://cpplang.slack.com/archives/C5JS5JXT5
With GitHub Actions, a workflow can publish artifacts, typically logs or binaries. As of early 2020, the life time of an artifact is hard-coded to 90 days (this may change in the future). After 90 days, an artifact is automatically deleted. But, in the meantime, artifacts for a repository may accumulate and generate mega-bytes or even giga-bytes of data files.
It is unclear if there is a size limit for the total accumulated size of artifacts for a public repository. But GitHub cannot reasonably let multi-giga-bytes of artifacts data accumulate without doing anything. So, if your workflows regularly produce large artifacts (such as "nightly build" procedures for instance), it is wise to cleanup and delete older artifacts without waiting for the 90 days limit.
Using the Web page for the "Actions" of a repository, it is possible to browse old workflow runs and manually delete artifacts. But the procedure is slow and tedious. It is fine to delete one selected artifact. It is not for a regular cleanup. We need
Cgroups is a flexible Linux kernel feature to limit, police and account resources usage. A cgroup is a set of tasks for a subsystems, that is typically a resource controller.
A file system of type cgroup is mounted and all operations are run over it.
The installation can be done using any of libcgroup, cgmanager or systemd.