| Metric | chronyd | systemd-timesyncd | Difference |
|---|---|---|---|
| PID | 2561 | 344 | - |
| RSS (Physical RAM) | 1,188 KiB (~1.2 MB) | 7,004 KiB (~6.8 MB) | chronyd uses ~83% less RAM |
| VSZ (Virtual Memory) | 8,956 KiB (~8.7 MB) | 88,244 KiB (~86.1 MB) | chronyd maps ~10x less memory |
| Command | /usr/sbin/chronyd |
/usr/lib/systemd/systemd-timesyncd |
- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sp = [ | |
| [1, 2, 3], | |
| [8, 9, 4], | |
| [7, 6, 5] | |
| ] | |
| def rot90(m): | |
| return list(zip(*m))[::-1] |
This Erlang module implements a function that returns the elements of a 2D matrix (list of lists) in a spiral order. The spiral order starts from the top-left corner and proceeds in a spiral pattern, moving right across the top row, down the right column, left across the bottom row, and up the left column, and continues until all elements are traversed.
-module(spiral).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { Kafka, logLevel, Partitioners, CompressionTypes, CompressionCodecs } = | |
| require("kafkajs"); | |
| const ZstdCodec = require("@kafkajs/zstd"); | |
| const compressionParams = { level: 1 }; | |
| const decompressionParams = {}; | |
| CompressionCodecs[CompressionTypes.ZSTD] = ZstdCodec( | |
| compressionParams, | |
| decompressionParams, | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def get_files(bucket: str, prefix: str): | |
| max_files = 100000 | |
| files = [] | |
| truncated = True | |
| continuation_token = None | |
| try: | |
| response = s3_client.list_objects_v2( |
Két végéről égetem a gyertyám,
reggelig sem tart ki tán, tudom,
de addig ellenség s te édes jóbarát,
hullócsillag fényemnél vigasztalódj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| resource "aws_apigatewayv2_domain_name" "api-gw-domain-name" { | |
| domain_name = var.domain-name | |
| domain_name_configuration { | |
| certificate_arn = var.acm-certificate-arn | |
| endpoint_type = "REGIONAL" | |
| security_policy = "TLS_1_2" | |
| } | |
| } |
doas apt-get install bpfcc-tools linux-headers-(uname -r)This uses the partition UUID to be able to tolarate device name changes.
doas /sbin/mdadm \
--verbose --create /dev/md/nas0 \
--level=mirror --raid-devices=2 \
/dev/disk/by-partuuid/7b139fcf-e971-4806-b0f9-cbbd8c1d24de \
/dev/disk/by-partuuid/a11e2aa2-c404-48a1-8e3e-51a8dec0c967
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| doas apt install npm | |
| Reading package lists... Done | |
| Building dependency tree... Done | |
| Reading state information... Done | |
| The following additional packages will be installed: | |
| binutils binutils-aarch64-linux-gnu binutils-common build-essential dpkg-dev fakeroot g++ g++-10 gcc gcc-10 gyp libalgorithm-diff-perl | |
| libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan6 libatomic1 libbinutils libc-dev-bin libc-devtools libc6-dev libcc1-0 libcrypt-dev libctf-nobfd0 | |
| libctf0 libfakeroot libgcc-10-dev libitm1 libjs-inherits libjs-is-typedarray libjs-psl libjs-typedarray-to-buffer liblsan0 libnode-dev libnsl-dev libssl-dev | |
| libstdc++-10-dev libtirpc-dev libtsan0 libubsan1 libuv1-dev linux-libc-dev make manpages-dev node-abbrev node-agent-base node-ajv node-ansi node-ansi-regex | |
| node-ansi-styles node-ansistyles node-aproba node-archy node-are-we-there-yet node-asap node-asn1 node-assert-plus node-asynckit node-aws-sign2 node-aws4 |
NewerOlder