Table des matières
- 2026:
- 2025:
4 billet(s) pour juillet 2026
| Procédure simple augmentation de la SWAP | 2026/07/17 15:49 | Jean-Baptiste |
| Exemple git clone avec Ansible | 2026/07/16 14:47 | Jean-Baptiste |
| Windows exe - Comparaison de fichiers binaires | 2026/07/16 10:25 | Jean-Baptiste |
| Pb git | 2026/07/01 17:36 | Jean-Baptiste |
Notes sites Web statiques - Static site generators - SSG
Voir :
- MkDocs - Material - Zensical
- Jekyll
- Hugo
- Gatsby
- Remark Enhanced Wikilink
- 11ty - Eleventy
- GetPelican
- Docusaurus
MkDocs
Voir aussi :
- ReadTheDocs
- Material - Zensical
Voir :
Nessaire avec Material ?
Les des plugins
$ ls -1 lib/python3.11/site-packages/material/plugins/ __init__.py __pycache__ blog group info offline privacy search social tags
mkdocs.yml
site_name: My Docs theme: name: material features: - content.code.copy - content.code.annotate #markdown_extensions: # - codehilite markdown_extensions: - pymdownx.highlight: anchor_linenums: true line_spans: __span pygments_lang_class: true - pymdownx.inlinehilite - pymdownx.snippets - pymdownx.superfences plugins: - tags - search - offline - blog: enabled: false #blog_toc: true - privacy # - protects # - meta
Web - Générateur de sites statiques
Voir :
Hugo (Go)
Voir :
Jekyll (Ruby)
Hexo (NodeJS)
11ty / Eleventy (NodeJS)
Web blog statique compilé
Site web statique, généré et compilé. Séparation forme et contenu. «Gitable» !
Un Makefile pour mon blog !
syntax-highlighting-in-markdown
http://www.orgrim.net/unix/2014/05/28/migration-du-blog-sur-github.html
pandoc -f html -t markdown http://wiki.orgrim.net/page?do=export_html
avec Ruhoh
Documentation Pandoc et autres
Langage de balisage léger
https://wooster.checkmy.ws/2014/02/markdown-interets-limites-alternatives/
Tester pandoc en ligne :
Pandoc \ Cet outil vous permettra de convertir les fiches en un fichier docx ou bien un document HTML.
Pour générer un fichier .docx
pandoc -s --toc --toc-depth=1 -o Guide_RGPD_developpeur.docx [0-9][0-9]*.md
Pour générer un fichier .html
pandoc -s --template="templates/mytemplate.html" -H templates/pandoc.css -o index.html README.md [0-9][0-9]*.md
Autres Pandoc
pandoc -f odt MadewithCreativeCommonsmostup-to-dateversion.odt -t markdown > MadewithCreativeCommonsmostup-to-dateversion.md
Éditeur balisage léger
- hedgedoc
- stackedit
- tiro-notes
- Dillinger
Autres
Notes serveur ssh openssh sshd config
ssh Autoriser que les connexions en root depuis seulement un ou deux serveurs de rebond
sed -i.bak -e 's/^PermitRootLogin.*/PermitRootLogin no/' /etc/ssh/sshd_config cat <<EOF >>/etc/ssh/sshd_config Match Address 192.168.1.32,192.168.1.15 PermitRootLogin yes EOF service ssh restart
Notes : Il est aussi possible d'utilisaser la notation CIDR :
/etc/ssh/sshd_config
Match Address 192.0.2.128/25,10.10.10.32/27
Voir Limit_access_to_openssh_features_with_the_Match_keyword.html
Autres
# Example of overriding settings on a per-user basis #Match User anoncvs # X11Forwarding no # AllowTcpForwarding no # PermitTTY no # ForceCommand cvs server
Notes serveur DNS Unbound
Voir :
Voir aussi :
- CoreDNS (cncf.io)
Exemple sur RedHat
Fix Unbound is very slow to start
/etc/sysconfig/unbound
DISABLE_UNBOUND_ANCHOR=yes
Conf Unbound en resolveur avec Cache DNS
/etc/unbound/unbound.conf
server: #verbosity: 1 #use-syslog: no #module-config: "subnetcache validator iterator" interface: 127.0.0.53 #interface: ::0 #prefer-ip4: yes #prefer-ip6: no do-ip4: yes do-ip6: no #do-tcp: yes access-control: 127.0.0.0/8 allow #cache-min-ttl: 3600 #cache-max-ttl: 86400 cache-max-negative-ttl: 1 #prefetch: yes #serve-expired: yes #serve-expired-ttl: 14400 #qname-minimisation: yes # Default yes #minimal-responses: yes # Default yes #rrset-roundrobin: yes # Default yes forward-zone: name: "." forward-addr: 8.8.8.8 forward-addr: 8.8.4.4
unbound-checkconf systemctl enable --now unbound.service
Conf autres
Administration
Source : https://gist.github.com/f9n/3c4453489820f150c81bdf2f1ccd9516
Verify configuration
unbound-checkconf
Unbound Status
unbound-control status
List Forwards
unbound-control list_forwards
Lookup on Cache
unbound-control lookup youtube.com
Dump Cache
unbound-control dump_cache > dns-cache.txt
Restore Cache
unbound-control load_cache < dns-cache.txt
Flush Cache
# Flush Specific Host unbound-control flush www.youtube.com # Flush everything unbound-control flush_zone .
Diag
Increase logged verbosity only runtime
unbound-control verbosity 3
Print operational statistics numbers.
unbound-control stats
Print used root server hints
unbound-control list_stubs
Print contacted servers details. Useful to read how fast they respond and what features they support.
unbound-control dump_infra
Test DNSSEC status of host
unbound-host -rv example.net -D
Autres
Essaie de surcharger la conf /etc/unbound/unbound.conf (RedHat)
/etc/unbound/cond.d/common.conf
server: #trust-anchor-file: "" #auto-trust-anchor-file: "" #trust-anchor: "" #trusted-keys-file: "" #val-permissive-mode: yes #prefetch: no #disable-dnssec-lame-check: no #harden-dnssec-stripped: no #harden-glue: no #harden-below-nxdomain: no #harden-referral-path: no
Notes serveur DNS filtrant - relais DNS
Voir aussi /etc/hosts
- Adguard DNS
- AdGuardHome
- Pi-hole
- aardvark-dns pour Docker / Podman en mode rootless
