Skip to content

Instantly share code, notes, and snippets.

View ironicbadger's full-sized avatar

Alex Kretzschmar ironicbadger

View GitHub Profile
@ironicbadger
ironicbadger / compose.yaml
Created November 12, 2024 15:03
searxng docker compose yaml
services:
searxng:
container_name: searxng
image: docker.io/searxng/searxng:latest
restart: unless-stopped
ports:
- 8080:8080
volumes:
- ./searxng:/etc/searxng:rw
environment:
@ironicbadger
ironicbadger / compose.yaml
Created October 22, 2024 20:45
factorio-compose
---
services:
factorio:
image: factoriotools/factorio:2.0.8
ports:
- "34197:34197/udp"
- "27015:27015/tcp"
volumes:
- ./factorio:/factorio
environment:
---
substitutions:
name: esp32-garage-heatpump
friendly_name: esp32-garage-heatpump
esphome:
name: ${name}
esp32:
board: esp32doit-devkit-v1
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelModules = [ "drivetemp" ];
@ironicbadger
ironicbadger / alexs-results
Last active November 4, 2024 22:12
results
#######
## These results are still open to the public. See
## https://blog.ktz.me/the-best-media-server-cpu-in-the-world/
## for analysis of them.
# https://github.com/ironicbadger/quicksync_calc
# zoidberg - dell 7040 sff pc
CPU TEST FILE BITRATE TIME AVG_FPS AVG_SPEED AVG_WATTS
i5-6600T h264_1080p_cpu ribblehead_1080p_h264 18952 kb/s 116.352s 29.88 1.04x N/A
This script sets the input and output video file paths, the codec name and profile, the encoding preset and tune, the output video resolution and frame rate, the number of encoding threads, and the number of encoding iterations. It then uses the ffmpeg command to encode the input video file using the specified codec and encoding settings, and measures the time taken using the time command. Finally, it calculates the average encoding time per iteration and prints the benchmark results.
To run this script, simply save it as a shell script file (e.g., quick_sync_benchmark.sh), make it executable (e.g., chmod +x quick_sync_benchmark.sh), and then run it (e.g., ./quick_sync_benchmark.sh). Note that you will need to have the ffmpeg command-line tool and the Intel Quick Sync Media Encoding driver installed on your Linux system in order for this script to work.
## get interface name (ovs_eth0 below) via ip link
ip link add macvlan0 link ovs_eth0 type macvlan mode bridge
##192.168.4.204/30 (204-207)
ip addr add 192.168.4.204/30 dev macvlan0
ip link set macvlan0 up
ip route add 192.168.44.204/30 dev macvlan0
docker network create frontend
$ docker exec -it paperless manage
Type 'manage.py help <subcommand>' for help on a specific subcommand.
Available subcommands:
[auth]
changepassword
createsuperuser
@ironicbadger
ironicbadger / 8896.cr2.exiftool
Created June 5, 2021 02:52
exiftool on a raw camera image
exiftool _MG_8896.CR2
ExifTool Version Number : 11.16
File Name : _MG_8896.CR2
Directory : .
File Size : 24 MB
File Modification Date/Time : 2021:05:04 22:09:18-04:00
File Access Date/Time : 2021:06:04 22:48:50-04:00
File Inode Change Date/Time : 2021:05:27 23:13:14-04:00
File Permissions : rwxrwxrwx
File Type : CR2
@ironicbadger
ironicbadger / docker-compose.yaml
Created May 6, 2021 17:13
vmware_exporter compose snippet
---
version: "2"
services:
prometheus:
image: prom/prometheus
container_name: prometheus
privileged: True
volumes:
- /mnt/tank/appdata/prometheus:/etc/prometheus
ports: