Skip to content

Instantly share code, notes, and snippets.

View HorlogeSkynet's full-sized avatar

Samuel FORESTIER HorlogeSkynet

View GitHub Profile
@HorlogeSkynet
HorlogeSkynet / rfc1918_thw.txt
Last active November 10, 2024 18:59
RFC1918 the hard way : an ongoing list of commonly used private IP networks. Inspired by <https://www.mail-archive.com/frnog@frnog.org/msg76954.html> (french)
# QEMU / Oracle VirtualBox / Slirp4netns
## <https://www.qemu.org/docs/master/system/devices/net.html#using-the-user-mode-network-stack>
## <https://docs.oracle.com/en/virtualization/virtualbox/7.1/user/networkingdetails.html#network_nat>
## <https://github.com/containers/common/blob/1d04efa071b124b40f0e56284e0840b4d9f0690a/docs/containers.conf.5.md#engine-table>
10.0.2.0/24
# Rancher cluster
## <https://www.rancher.com/docs/rancher/v1.6/en/rancher-services/networking/>
10.42.0.0/16
10.43.0.0/16
@HorlogeSkynet
HorlogeSkynet / README.md
Last active April 14, 2024 19:50
[isso] feature: add support for log messages formatting

Isso feature: add support for log messages formatting

Patch v1.0.0 (for Isso v0.13.0+)

Why ?

See isso-comments/isso#976 for context.

How to apply this patch in production ?

@HorlogeSkynet
HorlogeSkynet / gensdeconfiance.user.css
Created December 30, 2023 15:09
Hide ads on "Gens de Confiance"
/* ==UserStyle==
@name gensdeconfiance.com - Dec 2023
@namespace github.com/openstyles/stylus
@version 1.0.0
@description Hide ads on "Gens de Confiance"
@author HorlogeSkynet
==/UserStyle== */
@-moz-document domain("gensdeconfiance.com") {
div[class *= "SearchMarketing"] {
width: 0;
@HorlogeSkynet
HorlogeSkynet / Registre_Expressions_FORESTIER_DURAND.md
Last active November 4, 2023 20:17
Registre d’Expressions FORESTIER - DURAND

Registre d’Expressions FORESTIER - DURAND

Dans l’agriculture il y a toujours un voleur.

@HorlogeSkynet
HorlogeSkynet / qwant.user.css
Last active December 9, 2023 12:43
Hide ads on Qwant
/* ==UserStyle==
@name qwant.com - 09/12/2023, 13:42:04 AM
@namespace github.com/openstyles/stylus
@version 1.0.1
@description Hide ads on Qwant
@author HorlogeSkynet
==/UserStyle== */
@-moz-document domain("www.qwant.com") {
.result--ext, .result__ext {
display: none;
@HorlogeSkynet
HorlogeSkynet / TeraStation_Shutdown.py
Created May 23, 2022 13:16
A Python script to programmatically shutdown a Buffalo TeraStation 3210DN NAS
#!/usr/bin/env python3
"""
A Python script to programmatically shutdown a Buffalo TeraStation 3210DN NAS.
Written by Samuel FORESTIER for Stefano PICA.
Inspired from : <https://gist.github.com/HorlogeSkynet/703c1546ae2e70fc6cf6f04b8eb5a9d1>.
===
@HorlogeSkynet
HorlogeSkynet / gitea.service
Last active October 20, 2023 17:06
systemd unit service for Gitea server running against Redis
[Unit]
Description=Gitea (Git with a cup of tea)
After=syslog.target
After=network.target
Wants=redis-server.service
Requires=redis-server.service
[Service]
User=git
WorkingDirectory=/var/lib/gitea/
@HorlogeSkynet
HorlogeSkynet / isso.service
Last active November 5, 2023 09:45
systemd unit file for Isso server installed under /opt
[Unit]
Description=Lightweight Disqus alternative
After=network-online.target
Wants=network-online.target
[Service]
User=isso
ExecStart=/opt/isso/venv/bin/isso -c isso.cfg run
Restart=on-failure
@HorlogeSkynet
HorlogeSkynet / torrent_trackers_ports.yml
Created March 23, 2020 09:02
TCP/UDP ports used by "popular" torrent trackers
%YAML 1.2
---
# From <https://torrents.io/tracker-list/>.
tcp:
- 80
- 443
- 1337
- 2095
@HorlogeSkynet
HorlogeSkynet / leap_years_starting_on_wednesday.py
Created December 14, 2019 13:26
Simple Family Challenge : Show the leap years of the 20th and 21st centuries starting on a Wednesday
#!/usr/bin/env python3
import calendar
import datetime
for year in range(1900, 2100):
if not calendar.isleap(year):
continue