Skip to content

Instantly share code, notes, and snippets.

View BSoDium's full-sized avatar
🔒
Deadlocked

Elliot Négrel-Jerzy BSoDium

🔒
Deadlocked
View GitHub Profile
@BSoDium
BSoDium / Mkdocs-system-theme.md
Last active September 8, 2022 08:46
A simple script to add the mkdocs material sponsors only system theme feature

Installation

Simply add the previous mkdocs configuration to your mkdocs.yml (only the palette field is important if you want your page to have a theme toggle button). Then, proceed to create a new file named extra.js in the same directory as the one mentioned in the mkdocs config file (extra_javascript field).

This is pretty much it, feel free to suggest any modifications by commenting on this gist.

@BSoDium
BSoDium / nextcloud.css
Last active February 4, 2024 20:12
Nextcloud GitHub custom CSS
.theme--dark {
--color-main-background: rgb(13, 17, 23);
--color-main-background-translucent: rgb(13, 17, 23);
--color-background-dark: rgb(13, 17, 23);
--color-background-hover: #21262c;
--color-primary-light: #21262c;
--color-border: #21262d;
--input-form-background: #010409;
--btn-primary: #238636;
--btn-primary-hover: #1b6e2b;
@BSoDium
BSoDium / CIWS.md
Last active April 4, 2022 22:08
CIWS Phallanx-like weapon software (besiege replica) created thanks to the LogicExtensions mod by Lambda & fanzhuyifan

CIWS controller software

Close-in weapon system "Sentinel"

Defined PIOs

PIO Value
00 5001
01 5000
02 6024
03 E
04 Alpha3
docker run \
--network host \
-v /proc/mounts:/host/proc/mounts \
--env SHAREDSECRET="128charSecretKey" \
l3alr0g/slashboard-pulsar:latest
@BSoDium
BSoDium / acc-convert.sh
Last active September 19, 2021 21:45
A simple nextcloud flow script to convert ac3 audio codec to acc in .mkv files
# When [ File created ] and [ File name ] matches [ /[[:ascii:]]+\.mkv/i ] run following script (tested on nc 21.0.1)
ffmpeg -i /var/www/nextcloud/data/%n -vcodec copy -acodec aac -strict -2 -ab 320K /var/www/nextcloud/data/$(dirname %n)/$(basename %n .mkv)_temp.mkv;
rm /var/www/nextcloud/data/%n;
mv /var/www/nextcloud/data/$(dirname %n)/$(basename %n .mkv)_temp.mkv /var/www/nextcloud/data/%n;
/var/www/nextcloud/occ files:scan --path="$(dirname %n)";
chown www-data:www-data /var/www/nextcloud/data/%n;