| 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
| WIZARDRY 8 HEX-EDIT | |
| By Zyvr (zyvrmaccom) | |
| Steps: | |
| 1.Open your save file (/save/*.sav) with a hex-editor. | |
| 2.Locate the nick-name of your character. | |
| 3.The order of characters' attributes in the .sav is L1-R1-L2-R2-L3-R3. | |
| Each charater takes 1866 bytes. | |
| 4.See below for the positions for the attributes. Take the byte which | |
| represents the first letter of the nick name as relative byte 0000. |
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
| import os | |
| import pyarrow.parquet as pq | |
| # | |
| # Warning!!! | |
| # Suffers from the same problem as the parquet-tools merge function | |
| # | |
| #parquet-tools merge: | |
| #Merges multiple Parquet files into one. The command doesn't merge row groups, | |
| #just places one after the other. When used to merge many small files, the |
sqlite3 ~/Library/Safari/History.dbsqlite> .tables
history_client_versions history_items history_tombstones
history_event_listeners history_items_to_tags history_visits
history_events history_tags metadata
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
| CREATE TABLE testing_partition(patent_id BIGINT, date DATE) WITH ( OIDS=FALSE); | |
| CREATE OR REPLACE FUNCTION create_partition_and_insert() RETURNS trigger AS | |
| $BODY$ | |
| DECLARE | |
| partition_date TEXT; | |
| partition TEXT; | |
| BEGIN | |
| partition_date := to_char(NEW.date,'YYYY_MM_DD'); | |
| partition := TG_TABLE_NAME || '_' || partition_date; |
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
| brew tap homebrew/versions | |
| brew search gradle | |
| brew install homebrew/versions/gradle112 | |
| gradle -version | |
| brew link --overwrite gradle112 | |
| gradle -version |
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
| -module(ntp). | |
| -export([get_time/1, get_time/0]). | |
| -define(NTP_PORT, 123). % udp | |
| -define(SERVER_TIMEOUT, 5000). % ms | |
| -define(EPOCH, 2208988800). % offset yr 1900 to unix epoch | |
| ntp_servers() -> | |
| [ "0.europe.pool.ntp.org", |
NewerOlder