Skip to content

Instantly share code, notes, and snippets.

@HorlogeSkynet
HorlogeSkynet / isso.service
Created May 9, 2021
systemd unit file for Isso server installed under /opt
View isso.service
[Unit]
Description=Lightweight Disqus alternative
Wants=apache2.service
After=apache2.service
[Service]
User=isso
Group=isso
Restart=on-failure
Environment="ISSO_SETTINGS=/opt/isso/isso.conf"
@HorlogeSkynet
HorlogeSkynet / TeraStation_Shutdown.py
Last active Apr 27, 2020
A Python script to programmatically shutdown a Buffalo TeraStation 3210DN NAS
View TeraStation_Shutdown.py
#!/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 / ghacks-user-js_updater-sh.patch
Created Apr 4, 2020
Git patch allowing GHacks User.JS's Updater BASH script to work with Thunderbird (see arkenfox/user.js#910)
View ghacks-user-js_updater-sh.patch
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 Mar 23, 2020
TCP/UDP ports used by "popular" torrent trackers
View torrent_trackers_ports.yml
%YAML 1.2
---
# From <https://torrents.io/tracker-list/>.
tcp:
- 80
- 443
- 1337
- 2095
@HorlogeSkynet
HorlogeSkynet / leap_years_starting_on_wednesday.py
Created Dec 14, 2019
Simple Family Challenge : Show the leap years of the 20th and 21st centuries starting on a Wednesday
View leap_years_starting_on_wednesday.py
#!/usr/bin/env python3
import calendar
import datetime
for year in range(1900, 2100):
if not calendar.isleap(year):
continue
@HorlogeSkynet
HorlogeSkynet / minecraft.service
Last active Feb 6, 2021
systemd unit file for Minecraft server running against OpenJDK 11
View minecraft.service
[Unit]
Description=Minecraft Server
Wants=network.target
After=network.target
[Service]
User=minecraft
Group=minecraft
Nice=5
Restart=on-failure
@HorlogeSkynet
HorlogeSkynet / user-overrides.js
Last active Jul 27, 2021
HorlogeSkynet's {Arkenfox,Thunderbird}-User.JS override preferences, for Firefox & Thunderbird
View user-overrides.js
/*
>> HorlogeSkynet's Arkenfox User.JS override preferences <<
Version: v0.7.0
Upstream version: 90.0
Installation : Follow <https://github.com/arkenfox/user.js/wiki/3.2-Applying-Your-Changes#small_orange_diamond-the-solution>.
Note : This is an OVERRIDE script for <https://github.com/arkenfox/user.js>, DO NOT USE IT ALONE.
*/
// Re-enables 'about:home' page for startup landing page and new tabs.
/* 0102 */ user_pref("browser.startup.page", 1);
@HorlogeSkynet
HorlogeSkynet / certificate_authorities
Last active Nov 8, 2019
_Minimal_ set of required Certificate Authorities to browse (a part of) the WWW on Mozilla Firefox
View certificate_authorities
# _Minimal_ set of required Certificate Authorities to browse (a part of) WWW on Mozilla Firefox.
# This is based on the incredible work of [@aeris](https://imirhil.fr/).
# The set has been sorted by certificate nickname.
Certificate Nickname Trust Attributes
SSL,S/MIME,JAR/XPI
Amazon Root CA 1 C,,
Baltimore CyberTrust Root C,,
COMODO ECC Certification Authority C,,
@HorlogeSkynet
HorlogeSkynet / update_gitea.sh
Last active Apr 17, 2021
Gitea automatic update script from binary for Linux
View update_gitea.sh
#!/usr/bin/env bash
#
# @HorlogeSkynet's Gitea (automatic-)update script (for GNU/Linux).
#
# Version : v2.0.2
# URL : <https://gist.github.com/HorlogeSkynet/d676b9204869842933169dbe35ed8650>
#
# /!\ A proper Gitea server managed by a systemd service is required /!\
@HorlogeSkynet
HorlogeSkynet / TeraStation_Shutdown.py
Last active Jan 6, 2020
A Python script to programmatically shutdown a Buffalo TeraStation NAS
View TeraStation_Shutdown.py
#!/usr/bin/env python3
"""
A Python script to programmatically shutdown a Buffalo TeraStation NAS.
===
Usage documentation :
1. Install dependency : `pip3 install requests`