Skip to content

Instantly share code, notes, and snippets.

View celestefox's full-sized avatar
💭
I may be slow to respond.

Celeste Fox celestefox

💭
I may be slow to respond.
View GitHub Profile
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p xdotool hacksaw
set -euo pipefail
IFS=$' '
shopt -s lastpipe
# hacksaw to get coords, this needs lastpipe
hacksaw -c "#5511bb" -f "%w %h %x %y" | read -r W H X Y
#echo "$X $Y $W $H"

openpgp4fpr:9A1721C44C2E015E15EF6DFBE642875C488F6874

@celestefox
celestefox / README.md
Last active June 22, 2020 03:55
See Slack Pinned Message UserCSS

See Slack Pinned Message

Just shows the full pinned messages in the sidebar. That's it. Mostly useful for if you're on a free Slack, where messages can be pushed out of the visible history, but stay pinned. In that case, you can't see the full message, and can't click on the message to go to it to see the full thing - but the full contents are only hidden with CSS, which is easy to "fix".

Install directly with Stylus

Or just click on the Raw button below, above the css file. That works too.

@celestefox
celestefox / README.md
Last active December 22, 2019 21:47
Advent of Code Day 1 in Multi User Forth

AoC Day 1 in MUF

There's some needed setup to use this. You'll need to take your input and insert lsedit aocd1=input at the start and .end at the end, and save it as day1.txt (or remember what you named it and use that instead below).

Then, do this on a MUCK, from a user with at least a M1 bit:

@program aocd1.muf
q
@celestefox
celestefox / README.md
Last active April 2, 2019 03:49
Because sometimes I put too much effort into a joke.

Let it all Snout!

I took a joke too far.

a demonstration

Install directly with Stylus

You'll need to put your domain in the script instead of vulpine.club, if you're not on there. You might be able to edit during the install, I think? Definitely works with the Stylus addon for Firefox for me, YMMV. Probably doesn't rely on being the glitchsoc fork, I hope, but probably doesn't work on pleroma and might not even on the Mastodon-like interface of pleroma.

@celestefox
celestefox / multimc_backuptool.bash
Last active December 8, 2018 01:40
Script to handle out-of-minecraft save backups, designed for MultiMC
#! /usr/bin/env bash
#
# Automatic world backups, outside of minecraft.
# This is expected to be run as a "post-exit command" from MultiMC.
# (Or pre-launch, which might make more sense if you use external tools?)
set -o errexit -o nounset -o pipefail
IFS=$'\n'

Keybase proof

I hereby claim:

  • I am mystfox on github.
  • I am flaeme (https://keybase.io/flaeme) on keybase.
  • I have a public key whose fingerprint is 7527 4A41 676D 23D7 352D 12C0 E1BF D5E9 DD8E 7187

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am Flaeme on github.
  • I am flaeme (https://keybase.io/flaeme) on keybase.
  • I have a public key whose fingerprint is B0DC 57E3 42A1 0513 0F0E 8436 7CAD 1EDD 5626 FE54

To claim this, I am signing this object:

@celestefox
celestefox / serialization.rs
Last active August 29, 2015 14:04
Playing with Rust and serialization
extern crate serialize;
extern crate uuid;
use uuid::Uuid;
use std::fmt::Show;
use std::collections::HashMap;
use serialize::{Encodable, Decodable};
use serialize::ebml::writer::Encoder;
use serialize::ebml::reader::Decoder;
use serialize::ebml::{Doc, Error};
@celestefox
celestefox / stdin
Created March 5, 2014 23:21 — forked from anonymous/stdin
African
Antarctican
Asian
Australian
European
American
Abkhazian
Albanian
Algerian
Andorran