Skip to content

Instantly share code, notes, and snippets.

View HonbraDev's full-sized avatar

Honbra HonbraDev

View GitHub Profile
@HonbraDev
HonbraDev / forgejo-auto.css
Created November 14, 2023 17:49
Forgejo auto
/* ==UserStyle==
@name Forgejo auto
@namespace github.com/openstyles/stylus
@version 1.0.0
@description The Forgejo auto theme but for <insert domain here>
@author HonbraDev
==/UserStyle== */
@-moz-document domain("<insert domain here>") {
:root{--steel-900: #10161D;--steel-850: #131A21;--steel-800: #171E26;--steel-750: #1D262F;--steel-700: #242D38;--steel-650: #2B3642;--steel-600: #374351;--steel-550: #445161;--steel-500: #515F70;--steel-450: #5F6E80;--steel-400: #6D7D8F;--steel-350: #7C8C9F;--steel-300: #8C9CAF;--steel-250: #9DADC0;--steel-200: #AEBED0;--steel-150: #C0CFE0;--steel-100: #D2E0F0;--zinc-50: #FAFAFA;--zinc-100: #F4F4F5;--zinc-150: #ECECEE;--zinc-200: #E4E4E7;--zinc-250: #DCDCE0;--zinc-300: #D4D4D8;--zinc-350: #BABAC1;--zinc-400: #A1A1AA;--zinc-450: #898992;--zinc-500: #71717A;--zinc-550: #61616A;--zinc-600: #52525B;--zinc-650: #484850;--zinc-700: #3F3F46;--zinc-750: #333338;--zinc-800: #27272A;--zinc-850: #1F1F23;--zinc-900: #18181B;--color-primary: #c2410c
@HonbraDev
HonbraDev / theme-forgejo-auto.css
Created November 14, 2023 17:41
Forgejo auto 1.20.5~0
:root{--steel-900: #10161D;--steel-850: #131A21;--steel-800: #171E26;--steel-750: #1D262F;--steel-700: #242D38;--steel-650: #2B3642;--steel-600: #374351;--steel-550: #445161;--steel-500: #515F70;--steel-450: #5F6E80;--steel-400: #6D7D8F;--steel-350: #7C8C9F;--steel-300: #8C9CAF;--steel-250: #9DADC0;--steel-200: #AEBED0;--steel-150: #C0CFE0;--steel-100: #D2E0F0;--zinc-50: #FAFAFA;--zinc-100: #F4F4F5;--zinc-150: #ECECEE;--zinc-200: #E4E4E7;--zinc-250: #DCDCE0;--zinc-300: #D4D4D8;--zinc-350: #BABAC1;--zinc-400: #A1A1AA;--zinc-450: #898992;--zinc-500: #71717A;--zinc-550: #61616A;--zinc-600: #52525B;--zinc-650: #484850;--zinc-700: #3F3F46;--zinc-750: #333338;--zinc-800: #27272A;--zinc-850: #1F1F23;--zinc-900: #18181B;--color-primary: #c2410c;--color-primary-contrast: #ffffff;--color-primary-dark-1: #c2410c;--color-primary-dark-2: #9a3412;--color-primary-dark-3: #9a3412;--color-primary-dark-4: #7c2d12;--color-primary-dark-5: #7c2d12;--color-primary-dark-6: #7c2d12;--color-primary-dark-7: #7c2d12;--color-primary-lig
@HonbraDev
HonbraDev / _.md
Last active September 2, 2022 21:46
Next Conf October 2022 Vordle words

Warning: This will ruin the fun.

@HonbraDev
HonbraDev / rpi-atv-usb.md
Created April 23, 2022 18:45
Installing Android TV 11 on a Raspberry Pi 4 and using USB as storage

Installing Android TV 11 on a Raspberry Pi 4 and using USB as storage

This guide will only focus on the things that are specific to installing the OS on a USB drive. Follow this tutorial for everything else.

Download images

OpenGapps are not available for Android 12, so download TVStock for Android 11 and the Android TV 11 image.


@HonbraDev
HonbraDev / _readme.md
Last active July 14, 2021 16:17
PulseAudio virtual microphone sink
@HonbraDev
HonbraDev / remove.sh
Last active February 19, 2024 22:07
Ubuntu Server 20.04 LTS Firefox kiosk
# Stop the kiosk service
sudo systemctl stop kiosk
# Remove the kiosk service from startup
sudo systemctl disable kiosk
# Remove the kiosk service
sudo rm -f /etc/systemd/system/kiosk.service
# Reload systemctl daemons
@HonbraDev
HonbraDev / PopularRooms.ts
Last active March 31, 2021 15:52
Underwater
export type PopularRooms = {
rooms: {
voiceServerId: string;
peoplePreviewList: {
numFollowers: number;
id: string;
displayName: string;
}[];
numPeopleInside: number;
name: string;
@HonbraDev
HonbraDev / startloop.sh
Created March 28, 2021 17:46
Start loop
while :
do
node .
done
@HonbraDev
HonbraDev / realtimedb.ts
Created March 28, 2021 12:32
Realtime DB in DodgyCoin
import { User } from "../typings/Database";
import * as admin from "firebase-admin";
const serviceAccount = require("../../firebaseadmin.json");
admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
databaseURL:
"https://dodgycoin-default-rtdb.europe-west1.firebasedatabase.app",
});
@HonbraDev
HonbraDev / firegresql.ts
Created March 25, 2021 17:09
FireGreSQL
import db from "../libs/database";
import { DBUserProfile } from "./types";
const getUser = (id: string): Promise<DBUserProfile> =>
new Promise((res, rej) =>
db
.ref("users")
.orderByChild("id")
.equalTo(id)
.once("value", (snap) => {