Skip to content

Instantly share code, notes, and snippets.

View JBlond's full-sized avatar

Mario JBlond

  • Germany
  • 01:45 (UTC +02:00)
View GitHub Profile
@JBlond
JBlond / README.md
Created November 9, 2024 09:12
truenas-qemu-guest-agent

TrueNAS 13 QEMU Guest Agent

This is a guide for Installing and Configuring QEMU Guest Agent for TrueNAS 13. It is based on the QEMU Guest Agent and VirtIO Console driver from FreeBSD 13.

Requirements

Due to the TrueNAS kernel lacking certain FreeBSD drivers, it's necessary to download the FreeBSD 13 kernel, extract the VirtIO Console driver and integrate it into the TrueNAS system. This ensures TrueNAS compatibility with virtualized environments.

Required packages for this guide:

@JBlond
JBlond / HumidityCalculator.py
Created October 18, 2024 07:34
HumidityCalculator.py
import math
class HumidityCalculator:
def calculate_absolute_humidity(
self,
relative_humidity: float,
temperature: float,
temperature_in_fahrenheit: bool = False,
is_relative_humidity_in_percent: bool = True
) -> float:
@JBlond
JBlond / disk_info.sh
Created August 9, 2024 12:58
smartctl check all drives
#!/bin/bash
for i in {a..r}; do
echo "Disk sd$i" $SN $MD
smartctl -H /dev/sd$i | grep -v "smartctl " | grep -v "Copyright " | grep -v "=== START"
done
@JBlond
JBlond / markdown.conf
Created July 31, 2024 07:55 — forked from sffc/markdown.conf
Apache config to render *.md files as HTML (client-side). Prefer server-side rendering? See https://github.com/sffc/apache-php-markdown/blob/master/README.md
# File: /etc/apache2/conf-available/markdown.conf
#
# Copyright (c) 2018 Shane F. Carr
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@JBlond
JBlond / nginx.conf
Last active July 31, 2024 07:50
openresty-windows
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
@JBlond
JBlond / isonline.cmd
Last active May 21, 2024 13:48
is online bach windows / pingable
@echo off
IF "%~1" == "" GOTO noinput
@ping -n 1 %1 | find "TTL"
if ERRORLEVEL 1 (
echo offline
) else (
echo okay
)
GOTO end
@JBlond
JBlond / observe.sh
Created July 7, 2023 10:58
Update Observium CE
#!/bin/bash
cd /opt
mv observium observium_old
wget -Oobservium-community-latest.tar.gz https://www.observium.org/observium-community-latest.tar.gz
tar zxvf observium-community-latest.tar.gz
mv /opt/observium_old/rrd observium/
mv /opt/observium_old/logs observium/
mv /opt/observium_old/config.php observium/
/opt/observium/discovery.php -u
@JBlond
JBlond / install.bash
Created July 5, 2023 06:49
Truenas truecommand docker install
docker pull ixsystems/truecommand
docker run --detach -v "[hostdirectory]:/data" -p [portnumber]:80 -p [sslportnumber]:443 ixsystems/truecommand
@JBlond
JBlond / episoden.md
Last active January 7, 2025 12:54
Fragezeichen Episoden

Drei Fragezeichen Episoden

Nr. Titel Erscheinung Autor Rating
001 und der Super-Papagei 1979-10-12 Robert Arthur
002 und der Phantomsee 1979-10-13 William Arden
003 und der Karpatenhund 1979-10-14 M. V. Carey
004 und die schwarze Katze 1979-10-15 William Arden
005 und der Fluch des Rubins 1979-10-16 Robert Arthur
006 und der sprechende Totenkopf 1979-10-17 Robert Arthur
@JBlond
JBlond / enable-hibernate.cmd
Created August 1, 2022 06:12
enable-hibernate.cmd
@echo off
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...