Skip to content

Instantly share code, notes, and snippets.

@appel
appel / ubuntu_setup.py
Last active February 22, 2025 21:39 — forked from RohitAwate/ubuntu_setup.py
Setup script to quickly install my applications on a new Ubuntu installation
#! /usr/bin/env python3
import os
def confirm(package: str) -> bool:
choice = input(f"Install '{package}'? (y/n)\n").lower()
if choice in ["n", "no"]:
return False
elif choice in ["y", "yes"]:
return True
@appel
appel / fonts.css
Created July 27, 2024 18:39 — forked from dextermb/fonts.css
Gotham SSm A
@font-face{
font-family: "Gotham SSm A";
src: url(data:application/x-font-woff;base64,d09GRgABAAAAAGouABIAAAAA3TwAAQAAAABn/AAAAjIAAAarAAAAAAAAAABHREVGAABfUAAAAB4AAAAgAQwABUdQT1MAAF9wAAAILgAAHTLmkqBOR1NVQgAAZ6AAAABaAAAAgOo0LbVPUy8yAAACCAAAAE4AAABgW99XdWNtYXAAAA1oAAACZgAAA1iBBKFQY3Z0IAAAEdAAAABOAAAATgNZCk1mcGdtAAAP0AAAAQIAAAFzBlmcN2dhc3AAAF9EAAAADAAAAAwAFAAOZ2x5ZgAAE+AAAESqAACPPKFTqktoZG14AAAEeAAACO8AABOgQkiZw2hlYWQAAAGUAAAANAAAADb+/uTZaGhlYQAAAcgAAAAgAAAAJAgbBH9obXR4AAACWAAAAiAAAANg+4xAqWxvY2EAABIgAAABwAAAAcBVZXgkbWF4cAAAAegAAAAgAAAAIAMAAnxuYW1lAABYjAAABLkAAAwYXW/oGHBvc3QAAF1IAAAB+QAAAqOaab3GcHJlcAAAENQAAAD6AAABfrXGiCB42mNgZGBgYPQ5U/29eGk8v81XBnnmF0ARhrM7V8nC6P8f//OwpDM/AnI5GJhAogC/rA89eNpjYGRgYD7wX4CBgWXN/4//P7KkMwBFUMBFAKjiB6EAAQAAAN8AzgAQAFgABAABAAAAAAAKAAACAAFUAAIAAXjaY2BmymPUYWBlYGHaw9TFwMDQA6EZ7zIYMfxiQAILGZj+OzAwRMP4HmpuXkBKQVGJWeG/BcMJ5gMMH4D8+SA5JjGmGyA5BiYAzT4O+gAAeNptkktoU0EUhv9z5goqohKoFdwURBEUWqXmgY03qY9oG+MDNSJ1c2uLUbwi2ApdFFRoyUp0pYJQUYiFCqLiphtFqQYsXbix4AMUFFwpFopdGP8ZEoiYe/k4Z848mPlmZA7u
@appel
appel / JELOS Beginners Guide.md
Created July 21, 2024 12:22 — forked from milnak/JELOS Beginners Guide.md
JELOS Beginners Guide

JELOS Beginner's Guide

Powkiddy X55 (RK3566) note

JELOS has stopped being developed. Powkiddy X55 owners should consider moving to ROCKNIX.

To turn your device off

IMPORTANT INFORMATION! NEVER TURN THE UNIT OFF or RESET! ALWAYS DO A SYSTEM SHUT DOWN (LIKE A PC!)

@appel
appel / gtk.css
Last active February 24, 2025 14:35 — forked from sketchbuch/ubuntu-terminal-padding.txt
Opiniated tweaks for GTK via ~/.config/gtk-4.0/gtk.css
/* Add padding to Gnome Terminal */
VteTerminal,
TerminalScreen,
vte-terminal {
padding: 2rem;
-VteTerminal-inner-border: 2rem;
}
/* Square corners for windows */
@appel
appel / windows_shortcuts.sh
Created October 7, 2023 02:30
Set Windows shortcuts on Gnome (Work in progress)
#!/bin/bash
# Function to set a keyboard shortcut
set_shortcut() {
local schema="$1"
local key="$2"
local value="$3"
local description="$4"
read -p "Do you want to set ${description}? (y/n): " -n 1 -r
@appel
appel / docker-compose.yml
Created August 13, 2023 10:35 — forked from Webreaper/docker-compose.yml
Sample Docker-compose file which shows how to set up Sonarr, Radarr, Prowlarr, Lidarr, QBittorrent and a VPN container so that all all traffic from the containers is routed through the VPN. Also includes Plex and get_iplayer containers, which are not routed through the VPN.
# Docker compose to set up containers for all services you need:
# VPN
# Sonarr, Radarr, Lidarr, Qbittorrent
# Non-VPN
# Plex, get_iplayer
# Before running docker-compose, you should pre-create all of the following folders.
# Folders for Docker State:
# /volume1/dockerdata. - root where this docker-compose.yml should live
# /volume1/dockerdata/plex - Plex config and DB
# /volume1/dockerdata/sonarr - Sonarr config and DB
@appel
appel / ubuntu-lamp.md
Last active April 16, 2025 13:38 — forked from abobija/wsl2-ubuntu-lamp.md
LAMP/Docker stack on Ubuntu 24.04.3 LTS - Apache, MySQL, PHP

LAMP stack (+ docker) on Ubuntu 24.04.3 LTS

These are my personal notes and, as such, highly opinionated. Currently still editing these, so not everything is battle tested or ready and some things might seem contradictory. Nonetheless, hope it is useful!

Apache

sudo apt update && sudo apt upgrade 
sudo apt install -y apache2
@appel
appel / search-engines-import-export-chrome-edge-brave.md
Last active October 29, 2024 01:00
Export and import search engines from Chrome/Edge to Brave (bonus: Firefox to Firefox)

Export and import search engines from Chrome/Edge/Brave to Chrome/Edge/Brave

Bonus: Firefox to Firefox, see instructions at the bottom

As discussed here: brave/brave-browser#695

Thanks to the excellent answer by @Redsandro I was able to do this on Windows, which I'll document below because my future self will inevitably find this via Google a few years from now. Since it's using SQLite it should not be too hard to adapt for Macos and Linux.

Edit: this method still worked as of 9/3/2023. :)

@appel
appel / index.html
Created August 2, 2021 19:43 — forked from jsanta/index.html
PWA index.html file for Android and iOS copy & paste enabled
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Ionic App</title>
<base href="/" />
<meta
name="viewport"
@appel
appel / dark-google.user.css
Created February 18, 2021 19:37
Dark Google
html{font-family:arial,sans-serif}html{-webkit-filter:none}body.srp,body{background:#202124}img,[role=img],video,iframe{-webkit-filter:none}body,h1{font-family:arial,sans-serif;font-size:14px;}h1{font-weight:normal;margin:0;padding:0}h3{font-size:medium;font-weight:normal;margin:0;padding:0}body{margin:0;color:#ddd;}a{color:#a0b7f6;text-decoration:none;-webkit-tap-highlight-color:rgba(255,255,255,.10)}a:visited{color:#C58AF9}a:hover{text-decoration:underline}a:hover h3{text-decoration:underline}cite,cite a:link,cite a:visited{color:#bdc1c6;font-style:normal}button{margin:0}ol li{list-style:none}ol,ul,li{margin:0;padding:0}input{font-family:arial,sans-serif;font-size:14px}em{font-weight:bold;font-style:normal}.aCOpRe em,.st em{color:#bcc0c3}.aCOpRe a em,.st a em{color:inherit}.u9DLmf{}.mfMhoc{}.DsryEe{color:#fff !important;text-transform:none !important}.V88cHc{}.wf-b .mfMhoc,.wf-b .DsryEe,.wf-b .V88cHc{font-family:Google Sans,arial,sans-serif !important}.wf-b .u9DLmf{font-family:Google Sans,arial,sans-serif !