Skip to content

Instantly share code, notes, and snippets.

View thcrt's full-sized avatar

theo court thcrt

View GitHub Profile
@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 November 9, 2023 22:09
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 2023-09-24
#
# 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