lscpu
excerpt:Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian NUMA node(s): 1
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
# syntax=docker/dockerfile:1 | |
# | |
# Since that: | |
# Make large dependencies optional #235 | |
# https://github.com/memgraph/gqlalchemy/pull/235 | |
# See also (doc upd): | |
# Update installation prerequisites #233 | |
# https://github.com/memgraph/gqlalchemy/pull/233 | |
# |
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 csv | |
import re | |
from collections import Counter as C | |
from pathlib import Path as P | |
import dateutil.parser as dp | |
def foo(s): | |
if m := p.match(s.strip()): |
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 bz2 | |
import csv | |
import gzip | |
from datetime import datetime | |
from pathlib import Path | |
# from ngxlogz_namdtup import NgxAccessLine, NgxErrLine # obsoleted; for comparison | |
from ngxlogz import NgxAccessLine, NgxErrLine | |
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
"""Unbound python demo module, add route on DNS reply. | |
Related article: https://vp.ag/posts/2021-04-15-dns-based-routing/ | |
Reference: https://nlnetlabs.nl/documentation/unbound/pythonmod/ | |
""" | |
def init(id, cfg): | |
return True | |
def deinit(id): |
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
"""Searching for dupicate directories. | |
The main idea is to define customizable* hash function for a directory, | |
that returns the same result for directories with equal (*or similar) | |
contents. | |
""" | |
from collections import Counter as C | |
from hashlib import sha256 as H | |
from pathlib import Path as P |
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
function scramble { | |
# Famous example rewritten in more secure way by passing random password using a pipe | |
openssl enc -aes-256-ctr -pbkdf2 -nosalt \ | |
-pass file:<(dd if=/dev/urandom bs=128 count=1 2>/dev/null | base64) \ | |
</dev/zero 2>/dev/null \ | |
| sudo dd status=progress iflag=fullblock bs=8M of=$1 oflag=direct | |
} | |
## Usage sample | |
# for (( i = 3 ; i ; i-- )) |
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
// AutoGenerate() demo-sample | |
t: | |
NoConcatenate LOAD | |
10 + RowNo() - 1 as t | |
, RecNo() as g | |
, (6 + RecNo()) * 1e3 + IterNo() - 1 as v | |
AutoGenerate 7 While IterNo() <= 10; |
- Schema (boot timeline)
- Features
- Boot options
- Boot-modes
Mind the tag
INITRD_POST_SHELL=1
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
@ECHO off | |
SETLOCAL EnableDelayedExpansion | |
:: | |
:: samples.txt | |
:: ----------- | |
:: hostname.or.ip | |
:: hostname.or.ip:80 | |
:: hostname.or.ip/11 | |
:: hostname.or.ip:80/11 | |
:: xx://hostname.or.ip |
NewerOlder