Skip to content

Instantly share code, notes, and snippets.

View loulecrivain's full-sized avatar

Lou Lecrivain loulecrivain

  • WDZ GmbH
  • Rennes, France
  • 08:36 (UTC +01:00)
View GitHub Profile
from abc import ABCMeta, abstractmethod
class AsnDataHandlerInterface(metaclass=ABCMeta):
@abstractmethod
def getASN(self) -> int:
pass
class RouteTargetTrait(AsnDataHandlerInterface, metaclass=ABCMeta):
@loulecrivain
loulecrivain / [email protected]
Created September 29, 2024 15:20
PaperMC systemd service template
[Unit]
Description=Minecraft Server %i
After=network.target
[Service]
WorkingDirectory=/opt/minecraft/%i
# Solves the issue where the minecraft server will endlessly restart itself
# See https://askubuntu.com/questions/953920/systemctl-service-timed-out-during-start for more info
Type=forking
@loulecrivain
loulecrivain / configuration.nix
Last active July 29, 2025 13:50
Lou's NixOS config
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
@loulecrivain
loulecrivain / mxpackage.txt
Last active January 17, 2024 14:32
Install Emacs package from file
M-x package-install-file FILE
@loulecrivain
loulecrivain / pipsourceinstall.txt
Last active January 17, 2024 14:33
pip install without precompiled binaries
pip install --no-binary=:all: -r requirements.txt