Skip to content

Instantly share code, notes, and snippets.

View stefanpejcic's full-sized avatar
:octocat:
Live long and may the source be with you

Stefan Pejcic stefanpejcic

:octocat:
Live long and may the source be with you
View GitHub Profile
@stefanpejcic
stefanpejcic / full.sh
Created October 31, 2025 19:09
cat full docker log for openpanel ui container
cat /var/lib/docker/containers/$(docker ps --no-trunc -q --filter "name=^/openpanel$")/$(docker ps --no-trunc -q --filter "name=^/openpanel$")-json.log
@stefanpejcic
stefanpejcic / custom_blue.css
Created October 31, 2025 14:35
csutom css for openpanel ui
.font-semibold , .font-medium {
font-weight: 400!important;
}
:root {
--tw-ring-color: oklch(62.3% .214 259.815)!important;
}
.rounded-lg , .rounded-md {
border-radius: 0.25em;
@stefanpejcic
stefanpejcic / output.css
Created October 30, 2025 17:50
custom openadmin tailwindcss customize for mono font, no round and redish color
/*! tailwindcss v4.1.6 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha
<html lang="en">
<head>
<head>
<!-- Keep only one jQuery version -->
<script src="https://code.jquery.com/jquery-3.3.1.js"
integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
crossorigin="anonymous"></script>
@stefanpejcic
stefanpejcic / README.md
Created October 17, 2025 16:40
typebot.io on openpanel.com
#!/bin/bash
set -euo pipefail
# Usage: bash csf_drop_country_from_deny_list.sh "<country-pattern>"
# Examples: "RS/Serbia" "RS" "Serbia"
if [ $# -lt 1 ]; then
echo "Usage: $0 <country-pattern>"
exit 1
fi
@stefanpejcic
stefanpejcic / openpanel_run_on_startup.sh
Created October 6, 2025 18:30
Script for OpenPanel UI startup: sets dark mode by default and disables user/system theme switching - https://openpanel.com/
#!/bin/bash
: '
Example script that executes on openpanel UI container startup:
sets dark mode by default and disables user/system theme switching.
'
base="/templates/base.html"
switcher="/templates/partials/theme_switcher.html"
#!/usr/bin/env bash
set -euo pipefail
# Function to print error and exit
die() {
echo "ERROR: $*" >&2
exit 1
}
# Check if running as root
@stefanpejcic
stefanpejcic / dockurr.yml
Last active September 1, 2025 16:59
dockurr compose files for windows,macos,qemu on openpanel
windows:
image: dockurr/windows #-arm
container_name: windows
environment:
VERSION: "${WINDOWS_VERSION:-11}"
DISK_SIZE: "${WINDOWS_DISK:-20G}"
RAM_SIZE: "${WINDOWS_RAM:-4G}"
CPU_CORES: "${WINDOWS_CPU:-2}"
USERNAME: "bill"
@stefanpejcic
stefanpejcic / user_notification_email.html
Created August 29, 2025 15:17
OpenPanel emial notificataions template
<div class="">
<div class="aHl"></div>
<div id=":mg" tabindex="-1"></div>
<div
id=":pi"
class="ii gt"
jslog="20277; u014N:xr6bB; 1:WyIjdGhyZWFkLWY6MTgxMzc5NjU4MTEzOTAwNTM2NiJd; 4:WyIjbXNnLWY6MTgxMzc5NjU4MTEzOTAwNTM2NiIsbnVsbCxudWxsLG51bGwsbnVsbCxudWxsLG51bGwsbnVsbCxudWxsLG51bGwsbnVsbCxudWxsLG51bGwsbnVsbCxudWxsLG51bGwsbnVsbCxudWxsLG51bGwsbnVsbCxudWxsLG51bGwsbnVsbCxudWxsLDBd"
>
<div id=":ph" class="a3s aiL msg-5951896855460130215">
<u></u>