Skip to content

Instantly share code, notes, and snippets.

View HorlogeSkynet's full-sized avatar

Samuel FORESTIER HorlogeSkynet

View GitHub Profile
@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 / ghacks-user-js_updater-sh.patch
Created April 4, 2020 13:29
Git patch allowing GHacks User.JS's Updater BASH script to work with Thunderbird (see arkenfox/user.js#910)
From 71705c402e0abc7392c08f185ef932e68621368c Mon Sep 17 00:00:00 2001
From: Samuel FORESTIER <dev@samuel.domains>
Date: Mon, 23 Mar 2020 15:42:57 +0100
Subject: [PATCH 1/6] Adds `-t` option to work with Thunderbird profiles
(instead of Firefox)
See (and closes) [HorlogeSkynet/thunderbird-user.js#1].
Co-Authored-By: atomGit <atomgit@users.noreply.github.com>
---
@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