Skip to content

Instantly share code, notes, and snippets.

View miawgogo's full-sized avatar
🐧
Processing Gender, Please Wait

nyangogo miawgogo

🐧
Processing Gender, Please Wait
View GitHub Profile
#! /bin/bash
filename="$1"
name=$(basename "$filename" .flac)
mp2br=( 80 128 160 192 )
aacbr=( 40 32 24 )
opus=("${mp2br[@]}" "${aacbr[@]}")
echo "Generating MP2 files:"
for br in "${mp2br[@]}"; do
echo "Converting to mp2 at $br k"
2001:1c00::/24 33915
2001:1d00::/24 33915
2001:4600::/24 2119
2001:b100::/24 3462
2403:9900::/24 17676
2408:2000::/24 4608
240b:c000::/24 138384
240e::/24 4134
240f::/24 2516
240f:100::/24 2516
@miawgogo
miawgogo / README.md
Last active April 22, 2021 15:10 — forked from roelentless/README.md
Countdown. REVISED EDITION!!!!

Countdown. REVISED EDITION!!!!

This is a fork of ruleb's count down that rended one of the else ifs unreachable in his code. Even though he was notified by menny people he never fixed his code so i took it on to... fix 1 line of code. This Fork may expand if i have the time to re-learn coffie and see if any outher code is broken.

The rest of this readme and the html code and scss is still the orginal by ruleb.

Description

Simple Dashing widget to countdown until a certain moment. Flashes the widget when finished.

@miawgogo
miawgogo / IPv6_cloaking_rules.txt
Last active January 3, 2021 16:41
Some rules i use to get some IPv4 only sites to use the IPv6 CDNs they have, primarily reddit, twitch and the BBC. I currently use this with dnscrypt-proxy
## Reddit IPv6 Force
*.reddit.com dualstack.reddit.map.fastly.net
redditmedia.com dualstack.reddit.map.fastly.net
*.redditmedia.com dualstack.reddit.map.fastly.net
redditstatic.com dualstack.reddit.map.fastly.net
*.redditstatic.com dualstack.reddit.map.fastly.net
@miawgogo
miawgogo / cast.log
Created August 10, 2020 09:35
chromecast logs
2020-08-10 09:04:47 DEBUG (zeroconf-ServiceBrowser__googlecast._tcp.local._139757121455872) [pychromecast.discovery] update_service _googlecast._tcp.local., _9031CF11._sub._googlecast._tcp.local.
2020-08-10 09:04:47 DEBUG (zeroconf-ServiceBrowser__googlecast._tcp.local._139757121455872) [pychromecast.discovery] _add_update_service ignoring _googlecast._tcp.local., _9031CF11._sub._googlecast._tcp.local.
2020-08-10 09:04:47 DEBUG (zeroconf-ServiceBrowser__googlecast._tcp.local._139757121455872) [pychromecast.discovery] update_service _googlecast._tcp.local., _9031CF11._sub._googlecast._tcp.local.
2020-08-10 09:04:47 DEBUG (zeroconf-ServiceBrowser__googlecast._tcp.local._139757121455872) [pychromecast.discovery] _add_update_service ignoring _googlecast._tcp.local., _9031CF11._sub._googlecast._tcp.local.
2020-08-10 09:04:53 DEBUG (zeroconf-ServiceBrowser__googlecast._tcp.local._139757121455872) [pychromecast.discovery] update_service _googlecast._tcp.local., _9031CF11._sub._googlecast._tcp.local.
2020-08-10 09:04
@miawgogo
miawgogo / cast.log
Created August 10, 2020 09:35
chromecast logs
2020-08-10 09:04:47 DEBUG (zeroconf-ServiceBrowser__googlecast._tcp.local._139757121455872) [pychromecast.discovery] update_service _googlecast._tcp.local., _9031CF11._sub._googlecast._tcp.local.
2020-08-10 09:04:47 DEBUG (zeroconf-ServiceBrowser__googlecast._tcp.local._139757121455872) [pychromecast.discovery] _add_update_service ignoring _googlecast._tcp.local., _9031CF11._sub._googlecast._tcp.local.
2020-08-10 09:04:47 DEBUG (zeroconf-ServiceBrowser__googlecast._tcp.local._139757121455872) [pychromecast.discovery] update_service _googlecast._tcp.local., _9031CF11._sub._googlecast._tcp.local.
2020-08-10 09:04:47 DEBUG (zeroconf-ServiceBrowser__googlecast._tcp.local._139757121455872) [pychromecast.discovery] _add_update_service ignoring _googlecast._tcp.local., _9031CF11._sub._googlecast._tcp.local.
2020-08-10 09:04:53 DEBUG (zeroconf-ServiceBrowser__googlecast._tcp.local._139757121455872) [pychromecast.discovery] update_service _googlecast._tcp.local., _9031CF11._sub._googlecast._tcp.local.
2020-08-10 09:04
@miawgogo
miawgogo / rules.md
Last active July 23, 2020 13:37
Rules and guidelines for the JB unoffical Matrix Room

RULES and stuff

Rules

  • No Drama, Civil disccustion of drama is ok, but flamewars is not allowed.
  • No Polarising politics, well researched debate and comedy is allowed. This boils down to the rule above, No Flamewars
  • Just respect each other and dont be a jerk
  • No NSFW Images due to the fact that matrix shows all images inline at full size. Links must be marked

As per the unspoken JB IRC Rule, the mods will also make it up as they go along if they want, Really it doesnt matter, its just to prevent arguments

Dear Karin Smyth

I am writing to you today as an ally of the trans community regarding the issues with the planned changes to the Gender Recognition Act. My issues with this act comes in 2 parts, the risky aspect of preventing under-18's from accessing the care they need, and the unsubstantiated reasoning behind the female-only spaces safeguards within the act. Acts like the one planning to be introduced have been introduced in America and have mostly been removed by judges did more harm than good to both trans and cisgender individuals, and many laws in other European nations show that the fears of allow individuals to self-ID are unfounded.

The issue with preventing under-18 from accessing healthcare for their gender dysphoria is that research shows that preventing access to the care causes more harm to the individuals, with many taking to suicide the longer their gender dysphoria goes on when access to transitioning surgery is prevented. Also post transition regret is rare, this this [Mermaids press rel

light:
- platform: WS2813
variant: WS2813
pin: GPIO3
num_leds: 132
type: GRB
color_correct: [33%, 33%, 33%]
name: "Matrix Light"
#!/bin/bash
mapfile -t files < <(git diff --name-only | grep "^.*\.(c|h|cpp|hpp|m|mm)$" -E)
dirtyfiles=()
pathtop=$(git rev-parse --show-toplevel)
for i in "${files[@]}"
do
clang-format --dry-run -Werror $1 "$pathtop/$i" &>/dev/null
if [[ $? != 0 ]]; then
dirtyfiles+=( "$i" )