Skip to content

Instantly share code, notes, and snippets.

View ephdtrg's full-sized avatar
💭
🍃

Euphemia Deathridge ephdtrg

💭
🍃
View GitHub Profile
#!/bin/bash
# This file will be sourced in init.sh
# Namespace functions with provisioning_
# https://raw.githubusercontent.com/ai-dock/stable-diffusion-webui/main/config/provisioning/default.sh
### Edit the following arrays to suit your workflow - values must be quoted and separated by newlines or spaces.
DISK_GB_REQUIRED=30
<134>1 2024-12-04T06:12:29+03:00 OPNsense.local filterlog 75823 - [meta sequenceId="601739"] 9,,,02f4bab031b57d1e30553ce08e0ec131,re4,match,block,in,4,0x0,,244,59273,0,none,6,tcp,40,194.180.49.31,10.189.21.149,56635,62961,0,S,1510101503,,1024,,
<134>1 2024-12-04T06:12:29+03:00 OPNsense.local filterlog 75823 - [meta sequenceId="601740"] 9,,,02f4bab031b57d1e30553ce08e0ec131,re4,match,block,in,4,0x0,,244,59273,0,none,6,tcp,40,194.180.49.31,10.189.21.149,56635,62961,0,S,1510101503,,1024,,
<134>1 2024-12-04T07:02:12+03:00 OPNsense.local filterlog 75823 - [meta sequenceId="678578"] 9,,,02f4bab031b57d1e30553ce08e0ec131,wg3,match,block,in,4,0x0,,64,34489,0,none,6,tcp,52,151.101.1.91,10.0.0.3,443,11549,0,FA,4279035870,2703908676,4096,,nop;nop;TS
<134>1 2024-12-04T07:02:12+03:00 OPNsense.local filterlog 75823 - [meta sequenceId="678579"] 9,,,02f4bab031b57d1e30553ce08e0ec131,wg3,match,block,in,4,0x0,,64,34489,0,none,6,tcp,52,151.101.1.91,10.0.0.3,443,11549,0,FA,4279035870,2703908676,4096,,nop;nop;TS
<134>1 2024-12-04T07
@ephdtrg
ephdtrg / led_controller.yaml
Last active November 18, 2024 00:27
Bambu LED controller
blueprint:
name: Bambu Lab LED Controller
description: Control one or more LED lights with Bambu 3d printer
domain: automation
input:
printer_status:
name: Print Status of your Bambu Lab printer
description: Select the print status entity.
selector:
entity:
@ephdtrg
ephdtrg / settings.json
Created December 26, 2022 23:35
Dracula colorscheme for Windows Terminal
[
{
"background": "#282A36",
"black": "#21222C",
"blue": "#BD93F9",
"brightBlack": "#6272A4",
"brightBlue": "#D6ACFF",
"brightCyan": "#A4FFFF",
"brightGreen": "#69FF94",
"brightPurple": "#FF92DF",
@ephdtrg
ephdtrg / install.sh
Created October 2, 2022 21:17
TESLA-Docker-Nvidia Docker on Rocky 8.5
sudo dnf upgrade -y --refresh
sudo su
sudo dnf install -y epel-release
sudo dnf install -y gcc
sudo dnf install -y kernel-devel-$(uname -r) kernel-headers-$(uname -r)
sudo dnf install -y aria2
aria2c 'https://us.download.nvidia.com/tesla/470.82.01/nvidia-driver-local-repo-rhel8-470.82.01-1.0-1.x86_64.rpm'
sudo rpm -i nvidia-driver-local*x86_64.rpm
sudo dnf install -y nvidia-driver nvidia-settings
@ephdtrg
ephdtrg / config.toml
Last active August 26, 2022 10:18
DucatusX Mainnet bootnodes network example
[network]
allow_ips = "public"
port = 30301
bootnodes = [
"enode://82caa5fbcb7f71dfaa10ffef4c915644e55921400544170ecd244a2dc325a2415b1af5870d1036a860a336f985ac28149d5063c18c9b07518db8ce8cdfe455d5@195.181.242.115:30301",
"enode://771e47b7fdd94d5502a60f3cf729180c7ca59663210ec11c8a2050fb99e68fbd3dbe8abc5f5b5f958b2996cbf491535fd160d673f72a1e83325896f899359078@212.24.108.89:30301",
"enode://6758e9e6850e564938a1d20e9e2c8013eca1a2d28963e020867d33a22c297af3fb27e2de38ab1bc28ff60262a7ffd2ae9398c0e4d90a63a993e08a14cb8e4216@194.135.83.113:30301",
"enode://ec1623dc16c42f6770ee571a9336808a9388b74348cc01081d08164c13680f85fb7d39d36c29d609f8b7c3af0c07cfb956f5a378fdf88d01c9cbfb3f0d36aff8@3.21.90.252:1003",
"enode://99f7a9debbb0a5933009a447f7f8b2e099bd10974dffb516c959feb1454961501bfcbb3f26171399b75168ecc37ec00bbb89167d6e7755d7759b1094cda545fb@3.21.90.252:2003"
]
@ephdtrg
ephdtrg / AccessControl_abi.json
Created August 24, 2022 10:49
AccessControl ABI
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
@ephdtrg
ephdtrg / docker-compose.yml
Created May 4, 2022 09:20
Geth on Docker Compose
version: '3.7'
services:
geth:
image: ethereum/client-go:stable
restart: unless-stopped
expose:
- "8545"
- "8546"
- "30303"
volumes:
@ephdtrg
ephdtrg / runserver.sh
Last active March 21, 2022 11:19
Shell script for running Django in runserver / gunicorn mode, based on config.yaml parameter of DEBUG
#!/bin/bash
source .env
debug=$(cat config.yaml | shyaml get-value debug)
echo "Starting server, debug mode: $debug"
if [ $debug = "True" ]; then
poetry run python manage.py runserver 0.0.0.0:$DJANGO_PORT
else
@ephdtrg
ephdtrg / installSourceCodePro.sh
Created December 28, 2021 14:58 — forked from agarzon/installSourceCodePro.sh
Install Source Code Pro fonts on Linux
version=1.017R
echo "\n* Downloading version $version of source code pro font"
rm -f SourceCodePro_FontsOnly-$version.zip
rm -rf SourceCodePro_FontsOnly-$version
wget https://github.com/downloads/adobe/source-code-pro/SourceCodePro_FontsOnly-$version.zip
echo "\n* Unziping package"
unzip SourceCodePro_FontsOnly-$version.zip
mkdir -p ~/.fonts