Skip to content

Instantly share code, notes, and snippets.

View sinistersnare's full-sized avatar
🕹️
Coding

Davis Silverman sinistersnare

🕹️
Coding
View GitHub Profile
@Nezteb
Nezteb / Dockerfile
Created June 7, 2023 01:01
Deploying Conduit (Matrix homeserver built in Rust) on Fly.io
# https://gitlab.com/famedly/conduit/-/blob/next/docker/README.md
# https://gitlab.com/famedly/conduit/-/blob/next/Dockerfile
# https://hub.docker.com/r/matrixconduit/matrix-conduit
FROM matrixconduit/matrix-conduit:next-bullseye
ENV CONDUIT_SERVER_NAME="my.domain.com"
ENV CONDUIT_DATABASE_BACKEND="rocksdb"
# Set to false after making your first admin user
@sinistersnare
sinistersnare / userChrome.css
Last active April 19, 2023 20:16
my firefox userChrome.css file (check about:profiles), and config
/*
MAKE SURE toolkit.legacyUserProfileCustomizations.stylesheets IS SET TO TRUE!
Also set:
* mousewheel.with_meta.action = 3 // When cmd+scroll to zoom is used (macOS)
* mousewheel.with_control.action = 3 // When ctrl+scroll to zoom (!macOS).
* privacy.resistFingerprinting = true
* privacy.resistFingerprinting.autoDeclineNoUserInputCanvasPrompts = false
* privacy.userContext.enabled = false // disables 'open in new container tab'
And turn titlebar on in the "customize toolbar" page.
use std::path::PathBuf;
use std::collections::{BTreeMap, HashMap, HashSet};
use std::thread;
use std::os::raw::c_void;
use std::rc::Rc;
use std::cell::{Cell, RefCell};
use std::i16;
use std::time::Instant;
use failure::{err_msg, Error};
@CharlieScarver
CharlieScarver / AdventureTime.csv
Last active April 11, 2024 12:46 — forked from austinpray/AdventureTime.csv
List of important adventure time episodes
Season Episode Title Reason
1 5 The Enchiridion A good intro to the series, plus introduces the important Enchiridion
1 2 Trouble in Lumpy Space* Introduces LSP (episode out of order)
1 3 Prisoners of Love Introduces Ice King and his obsession (episode out of order)
1 7 Ricardio the Heart Guy Finn and PB development, Sets a returning plot
1 8 Business Time* First mention of Ooo being post-apocalyptic
1 9 My Two Favorite People Intros the Jake and Lady Rainicorn plotline
1 10 Memories of Boom Boom Mountain A look at how Finn was adopted into Jake's Family
1 12 Evicted! Intros Marceline
@st3v
st3v / ssh-host-color
Last active January 31, 2023 00:34
Automatically set background color in iTerm depending on ssh host
#!/bin/bash
#
# ssh into a machine and automatically set the background
# color of Mac OS X Terminal depending on the hostname.
#
# Installation:
# 1. Save this script to /usr/local/bin/ssh-host-color
# 2. chmod 755 /usr/local/bin/ssh-host-color
# 3. alias ssh=/usr/local/bin/ssh-host-color
# 4. export PRODUCTION_HOST="<hostname_production_server>"