Skip to content

Instantly share code, notes, and snippets.

View Eriner's full-sized avatar

Matt Hamilton Eriner

View GitHub Profile
@Eriner
Eriner / CVE-2021-45099.yaml
Created December 16, 2021 16:27
PoC for github.com/hassio-addons/addon-ssh <= 9.1.1 - CVE-2021-45099
blueprint:
name: PoC for CVE-2021-45099
description: the not-a-vulnerability was patched in github.com/hassio-addons/addon-ssh v10.0.0
domain: automation
input:
boolean:
name: Toggle
description: Some boolean light switch.
selector:
entity:
@Eriner
Eriner / blame-bip-poc.go
Created June 23, 2022 04:41
a poor implementation w/ discarding the 5 most significant bits... will fix after I implement in JS first.
package main
import (
"bytes"
"crypto/md5"
"fmt"
"io/ioutil"
"log"
"os"
"strings"
@Eriner
Eriner / docker-compose.yml
Created November 7, 2022 22:40
mastodon-linux-cap-drops
services:
sidekiq:
image: tootsuite/mastodon:v3.5.3
cap_drop:
- ALL
redis:
image: redis:6-alpine
cap_drop:
# dsnooped input
# dsnooped allows multiple applications to use an input device (microphone)
# without dsnoop, devices are exclusive, and the mic can only be used by one app at a time.
pcm.dsnooped {
type dsnoop
ipc_key 5978293 # must be unique for all dmix plugins!!!!
ipc_key_add_uid yes
slave {
pcm "hw:Microphone"
channels 2
@Eriner
Eriner / custom.css
Last active January 17, 2023 20:06
Bring back the Mastodon toots
.compose-form__publish-button-wrapper .button--block {
font-size: 0px;
}
.compose-form__publish-button-wrapper .button--block::after {
content: "Toot!";
font-size: 15px;
vertical-align: middle;
color: #fff;
}
@Eriner
Eriner / fediverse-blocked-in-china-02-19-24.csv
Created February 19, 2024 23:35
Top 1000 Fediverse servers and if they're blocked in China or not
Blocked mastodon.social
Not_Blocked alien.top
Blocked pawoo.net
Not_Blocked daystorm.netz.org
Blocked misskey.io
Blocked mstdn.jp
Not_Blocked joindiaspora.com
Not_Blocked baraag.net
Blocked mastodon.cloud
Not_Blocked pravda.me