Skip to content

Instantly share code, notes, and snippets.

View Prophet-Phoenix's full-sized avatar

Prophet-Phoenix

View GitHub Profile
@Prophet-Phoenix
Prophet-Phoenix / Caddyfile
Last active May 2, 2021 19:55
Caddyfile for Nextcloud 21 and Caddy 2.4
# Thanks to https://caddy.community/
example.com {
## optional logging here
# Change root path accordingly
root * /usr/local/www/nextcloud
file_server
#!/bin/bash
# unraid_array_fan.sh v0.5
# v0.1: By xamindar: First try at it.
# v0.2: Made a small change so the fan speed on low doesn't fluctuate every time the script is run.
# v0.3: It will now enable fan speed change before trying to change it. I missed
# it at first because pwmconfig was doing it for me while I was testing the fan.
# v0.4: Corrected temp reading to "Temperature_Celsius" as my new Seagate drive
# was returning two numbers with just "Temperature".
# v0.5: By Pauven: Added linear PWM logic to slowly ramp speed when fan is between HIGH and OFF.
# A simple script to check for the highest hard disk temperatures in an array
@Prophet-Phoenix
Prophet-Phoenix / OCRmyPDF.bat
Created October 8, 2021 11:53
Drag and Drop windows batch file for ocrmypdf
@echo off
setlocal ENABLEDELAYEDEXPANSION
for %%x in (%*) do (
set tmp=%%~x
echo OCR for !tmp!
ocrmypdf -l deu+eng --rotate-pages --jobs 12 "!tmp!" "!tmp:~0,-4!-ocr.pdf"
)
pause
@Prophet-Phoenix
Prophet-Phoenix / Brother-HL-5450DN-cups-en.PPD
Last active April 19, 2022 02:50
CUPS PPD for Brother HL-5450DN
*PPD-Adobe: "4.3"
*%================================================
*% Copyright Brother Industries,Ltd 2006-2012
*% "Brother HL-5450DN for CUPS"
*%================================================
*%==== General Information Keywords ========================
*FormatVersion: "4.3"
*FileVersion: "1.00"
*LanguageEncoding: ISOLatin1
@Prophet-Phoenix
Prophet-Phoenix / 100morebytes+1.css
Last active October 18, 2022 16:06
Small adaptation of 100morebytes (https://t.mkws.sh/100morebytes).
html {
max-width: 70ch;
padding: 3em 1em;
margin: auto;
line-height: 1.75;
font-size: 1.25em;
font-family: sans-serif;
}
h1,h2,h3,h4,h5,h6 {
@Prophet-Phoenix
Prophet-Phoenix / Huawei_E3372_openwrt.md
Created September 20, 2023 17:51 — forked from bjoern-r/Huawei_E3372_openwrt.md
How to use a Huawei E3372 on OpenWRT

HOWTO use a Huawei E3372 on OpenWRT

This modem is also sold as a MegaFon M150-2 USB dongle

Needed Software

Install the needed packages via opkg tool

opkg update