Skip to content

Instantly share code, notes, and snippets.

View thcrt's full-sized avatar

theo court thcrt

View GitHub Profile
@thcrt
thcrt / release.yml
Created December 11, 2024 11:17 — forked from nathanjmcdougall/release.yml
Example release.yml using uv
name: Release to PyPI
on:
push:
tags:
- 'v*'
jobs:
deploy:
runs-on: ubuntu-latest
environment: release
permissions:
@thcrt
thcrt / style.css
Last active October 24, 2024 10:59
jellyfin style
/* Variables */
:root {
--primary-r: 255;
--primary-g: 201;
--primary-b: 92;
--primary-accent-color: rgba(var(--primary-r), var(--primary-g), var(--primary-b), 1.0);
--secondary-accent-color: rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.2);
--primary-background-color: #101010;
--secondary-background-color: #181818;
--primary-background-transparent: rgba(35,35,35,0.5);
@thcrt
thcrt / _reset.css
Created November 16, 2023 15:49
CSS reset
/*
* CSS reset by thcrt
* https://gist.github.com/thcrt/2b8a8d492249a945a307397e120a5dd4 | https://theocourt.com
* Based on Andy Bell's More Modern CSS Reset | https://andy-bell.co.uk/a-more-modern-css-reset/
*/
*, *::before, *::after {
/* Include border and padding in size calculation
See https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing#sect1 */
box-sizing: border-box;
@thcrt
thcrt / _reset.scss
Last active November 16, 2023 15:36
SCSS reset
// SCSS reset by thcrt
// https://gist.github.com/thcrt/2b8a8d492249a945a307397e120a5dd4 | https://theocourt.com
// Based on Andy Bell's More Modern CSS Reset | https://andy-bell.co.uk/a-more-modern-css-reset/
$headings: "h1, h2, h3, h4, h5, h6";
*,
*::before,
*::after {
// Include border and padding in size calculation
@thcrt
thcrt / sshd_config
Last active September 25, 2024 17:11
Theo's sshd configuration
# Theo's sshd configuration
# Based on work by k4yt3x -- https://k4t.io/sshd
# See also https://infosec.mozilla.org/guidelines/openssh
#
# Created 2020-10-05
# Updated 2024-09-25
#
# Licensed under the GNU GPL v3
# https://www.gnu.org/licenses/gpl-3.0.txt
@thcrt
thcrt / zonefile-fastmail.txt
Last active July 8, 2023 16:04
A basic zonefile for configuring DNS for Fastmail
$ORIGIN theocourt.com.
$TTL 86400
; SOA Records
@ IN SOA [[ SOA RECORDS HERE ]]
; NS Records
@ IN NS [[ NS RECORDS HERE ]]
; MX Records
* IN MX 10 in1-smtp.messagingengine.com
* IN MX 20 in2-smtp.messagingengine.com
@ IN MX 10 in1-smtp.messagingengine.com.
@thcrt
thcrt / custom.css
Created July 6, 2023 16:51
Replace "Publish!" with "Toot!" on Mastodon
.compose-form__publish-button-wrapper button {
font-size: 0;
}
.compose-form__publish-button-wrapper button::after {
font-size: 1rem;
content: "Toot!";
}

openpgp4fpr:8D77EF0937A8E58D1103CCA3EBD8E168DB9D40A1

@thcrt
thcrt / managed-schema.xml
Created April 13, 2023 21:01
Solr default 'gettingstarted' managed-schema.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0