Skip to content

Instantly share code, notes, and snippets.

View MatthewEdge's full-sized avatar

Matthew Edge MatthewEdge

View GitHub Profile
@adtac
adtac / README.md
Last active August 2, 2025 20:42
Using your Kindle as an e-ink monitor

3.5 fps, Paperwhite 3
@adtac_

step 1: jailbreak your Kindle

mobileread.com is your best resource here, follow the instructions from the LanguageBreak thread

I didn't really follow the LanguageBreak instructions because I didn't care about most of the features + I was curious to do it myself, but the LanguageBreak github repo was invaluable for debugging

Sorting

Everyone does it differently 😭 and most query string parsers don't support LHS or RHS parsing or building. Prefer RHS for clarity and simplicity of parsing. I don't like the - or + operators because It's easy to over look.

Options from different sources

  • ChatGPT /users?sort=email,asc
  • RHS Single Field /users?sort=email:ASC
  • RHS Multiple Fields /users?sort=email:asc,name:desc
  • RHS Multiple Fields Keyed /users?sort=email:asc&sort=name:desc
  • LHS /users?sort=[asc]email
  • LHS Multiple Fields /users?sort=[asc]email,[desc]name
@WesleyAC
WesleyAC / build.sh
Last active June 1, 2025 09:19
Simple rust build and deploy script — https://blog.wesleyac.com/posts/simple-deploy-script
#!/usr/bin/env bash
cd $(dirname $0)
docker run --rm -it -v "$(pwd)":/home/rust/src -v cargo-git:/home/rust/.cargo/git -v cargo-registry:/home/rust/.cargo/registry -v "$(pwd)/target/":/home/rust/src/target ekidd/rust-musl-builder:nightly-2021-01-01 sudo chown -R rust:rust /home/rust/.cargo/git /home/rust/.cargo/registry /home/rust/src/target
docker run --rm -it -v "$(pwd)":/home/rust/src -v cargo-git:/home/rust/.cargo/git -v cargo-registry:/home/rust/.cargo/registry -v "$(pwd)/target/":/home/rust/src/target ekidd/rust-musl-builder:nightly-2021-01-01 cargo build --release
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active August 4, 2025 13:45
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@sj26
sj26 / LICENSE.md
Last active July 30, 2025 13:50
Bash retry function

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit

@jay-johnson
jay-johnson / common-logger.sh
Last active February 6, 2018 14:16
Colorize bash stdout with log appending
# include these methods and colors from another bash file with: source common-logger.sh .
# the parent bash script can override this log variable as needed this is a just a placeholder
log="/tmp/some-common.log"
txtund=$(tput sgr 0 1) # Underline
txtbld=$(tput bold) # Bold
blddkg=${txtbld}$(tput setaf 0) # Dark Gray
bldred=${txtbld}$(tput setaf 1) # Red
bldblu=${txtbld}$(tput setaf 2) # Blue
@timyates
timyates / pisystem.groovy
Last active July 23, 2018 13:27
Pi Approximation With Akka and Groovy
@Grab( 'com.typesafe.akka:akka-actor_2.10:2.3.2' )
@Grab( 'com.typesafe:config:1.2.0' )
import groovy.transform.Immutable
import akka.actor.ActorRef
import akka.actor.ActorSystem
import akka.actor.Props
import akka.actor.UntypedActor
import akka.actor.UntypedActorFactory
import akka.routing.RoundRobinRouter
import scala.concurrent.duration.Duration