Skip to content

Instantly share code, notes, and snippets.

@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