Skip to content

Instantly share code, notes, and snippets.

View gist:ba8f050356977afc42c10bd7e90d2ce2
Oct 26 12:17:13 prdpdf1 podman[2049692]: [Symbol(kBytesRead)]: 0,
Oct 26 12:17:13 prdpdf1 podman[2049692]: [Symbol(kBytesWritten)]: 0,
Oct 26 12:17:13 prdpdf1 podman[2049692]: [Symbol(connect-options)]: {
Oct 26 12:17:13 prdpdf1 podman[2049692]: rejectUnauthorized: true,
Oct 26 12:17:13 prdpdf1 podman[2049692]: ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128>
Oct 26 12:17:13 prdpdf1 podman[2049692]: checkServerIdentity: [Function: checkServerIdentity],
Oct 26 12:17:13 prdpdf1 podman[2049692]: minDHSize: 1024,
Oct 26 12:17:13 prdpdf1 podman[2049692]: method: 'POST',
Oct 26 12:17:13 prdpdf1 podman[2049692]: port: 443,
Oct 26 12:17:13 prdpdf1 podman[2049692]: path: null,
@szydell
szydell / gist:8c32193add47b3a314f7d705f7144b65
Created June 15, 2023 17:26
blokuje cie bo jestes debil
View gist:8c32193add47b3a314f7d705f7144b65
IIablo — Dziś o 18:38
Hej
szydell — Dziś o 18:39
Hej
IIablo — Dziś o 18:39
odnosnie regexp
.+? dobrze stosowac dla krotkich skokow
czyli np 5 wyrazow bedzie szybciej niz .*
.* skacze od razu na koniec zdania i szuka wstecz
wiec jest szybka dla zawartosci plecaka
@szydell
szydell / certbot
Last active July 30, 2021 20:13
Definicja logrotate dla certbota
View certbot
/var/log/letsencrypt/letsencrypt.log
{
missingok
daily
rotate 60
compress
compresscmd xz
}
@szydell
szydell / certbot_renew.timer
Created July 30, 2021 20:10
Certbot Renew Timer
View certbot_renew.timer
[Unit]
Description=Run Certbot Renewal Weekly
[Timer]
OnCalendar=weekly
Persistent=true
[Install]
WantedBy=timers.target
@szydell
szydell / certbot_renew.service
Created July 30, 2021 20:08
Certbot Renew service
View certbot_renew.service
[Unit]
Description=Certbot Renew
Wants=network.target
After=network-online.target
[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
ExecStart=/usr/local/bin/certbot_renew.sh
Type=oneshot
@szydell
szydell / certbot_renew.sh
Created July 30, 2021 20:05
Odśwież certyfikat Let's Encrypt z użyciem dns challenge w OVH
View certbot_renew.sh
#!/usr/bin/env bash
podman pull certbot/dns-ovh:latest
podman run --rm --name letsencrypt \
-v /etc/certbot/ovh-secrets.conf:/ovh-secrets.conf \
-v /etc/letsencrypt:/etc/letsencrypt \
-v /var/lib/letsencrypt:/var/lib/letsencrypt \
-v /var/log/letsencrypt:/var/log/letsencrypt \
certbot/dns-ovh:latest renew \
--dns-ovh --dns-ovh-credentials /ovh-secrets.conf \
View myhypriot.yml
#cloud-config
# vim: syntax=yaml
#
hostname: zmien
manage_etc_hosts: true
apt_preserve_sources_list: true
users:
- name: pirate # tutaj możesz zmienić swój login
View gist:4982253537f404317efb0952c7afc32e
[szydell@laPtak simdjson]$ make SANITIZE=1 -j12 test
g++ -std=c++17 -march=native -Wall -Wextra -Wshadow -Iinclude -Ibenchmark/linux -g3 -O0 -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined -o jsoncheck src/jsonioutil.cpp src/jsonparser.cpp src/stage1_find_marks.cpp src/stage2_build_tape.cpp tests/jsoncheck.cpp -I.
g++ -std=c++17 -march=native -Wall -Wextra -Wshadow -Iinclude -Ibenchmark/linux -g3 -O0 -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined -o numberparsingcheck tests/numberparsingcheck.cpp src/jsonioutil.cpp src/jsonparser.cpp src/stage1_find_marks.cpp -I. -DJSON_TEST_NUMBERS
g++ -std=c++17 -march=native -Wall -Wextra -Wshadow -Iinclude -Ibenchmark/linux -g3 -O0 -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined -o stringparsingcheck tests/stringparsingcheck.cpp src/jsonioutil.cpp src/jsonparser.cpp src/stage1_find_marks.cpp -I. -DJSON_TEST_STRINGS
./numberparsingcheck
Usage: ./numberparsingcheck <directory
View gist:c2a9c01aadced506b1bfb16445a15bd1
[szydell@laPtak simdjson]$ ls
amalgamation.sh AUTHORS benchmark CMakeLists.txt dependencies doc include jsonchecker jsonexamples LICENSE Makefile Notes.md README.md scripts singleheader src tape.md tests tools windows
[szydell@laPtak simdjson]$ make
g++ -std=c++17 -march=native -Wall -Wextra -Wshadow -Iinclude -Ibenchmark/linux -O3 -o parse src/jsonioutil.cpp src/jsonparser.cpp src/stage1_find_marks.cpp src/stage2_build_tape.cpp benchmark/parse.cpp
g++ -std=c++17 -march=native -Wall -Wextra -Wshadow -Iinclude -Ibenchmark/linux -O3 -o minify src/jsonminifier.cpp src/jsonioutil.cpp src/jsonparser.cpp src/stage1_find_marks.cpp src/stage2_build_tape.cpp tools/minify.cpp -I.
g++ -std=c++17 -march=native -Wall -Wextra -Wshadow -Iinclude -Ibenchmark/linux -O3 -o json2json tools/json2json.cpp src/jsonioutil.cpp src/jsonparser.cpp src/stage1_find_marks.cpp src/stage2_build_tape.cpp -I.
g++ -std=c++17 -march=native -Wall -Wextra -Wshadow -Iinclude