Skip to content

Instantly share code, notes, and snippets.

View ironicbadger's full-sized avatar

Alex Kretzschmar ironicbadger

View GitHub Profile
$ 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:
General
Unique ID : 162663708653422819879569831683315961704 (0x7A5FE407477584418E6F0BBAC20B8F68)
Complete name : Back to the Future (1985) Remux-1080p.mkv
Format : Matroska
Format version : Version 4
File size : 34.8 GiB
Duration : 1 h 56 min
Overall bit rate mode : Variable
Overall bit rate : 43.0 Mb/s
Encoded date : UTC 2014-02-20 16:38:36
esphome:
name: sonoffsv_garage_car
platform: ESP8266
board: esp01_1m
wifi:
ssid: "123"
password: "123"
# Enable fallback hotspot (captive portal) in case wifi connection fails
@ironicbadger
ironicbadger / snippet-lovelace-ui.yaml
Created March 29, 2020 03:18
home assistant covid tracker
cards:
- content: >-
# Quarantine-o-meter
The gauge meters display the amount of time spend at home in the last 7
days. Where Alex left the house (on average) {{
(states("sensor.quarantine_meter_alex_times_left")|int / 7) | round(1) }}
times per day and Cat {{
(states("sensor.quarantine_meter_cat_times_left")|int / 7) | round(1) }}
times per day.
#!/bin/bash
rm -rf bootstrap-files/
sleep 1
mkdir -p bootstrap-files
cp install-config.yaml bootstrap-files/
cp append-bootstrap.ign bootstrap-files/
cd bootstrap-files
@ironicbadger
ironicbadger / docker-compose.yaml
Created January 8, 2020 23:11
LIbrespeed docker-compose snippet
---
version: "2"
services:
librespeed:
image: adolfintel/speedtest
container_name: librespeed
ports:
- 8008:80
environment:
- MODE=standalone
@ironicbadger
ironicbadger / ocp-backup.sh
Last active May 22, 2019 18:28
OCP 3 etcd and master backups
#!/bin/bash
export ETCD_ENDPOINTS="https://ocp311-m1.ktz.lan:2379,https://ocp311-m2.ktz.lan:2379,https://ocp311-m3.ktz.lan:2379"
# master backup
mkdir git && cd git
git clone https://github.com/openshift/openshift-ansible-contrib.git
touch /etc/pki/ca-trust/source/anchors/test # github issue opened to avoid this step
./openshift-ansible-contrib/reference-architecture/day2ops/scripts/backup_master_node.sh
@ironicbadger
ironicbadger / replace.sh
Created February 12, 2019 03:11
linuxserver readme changelog script
#!/bin/bash
# call as replace.sh filename
file="$1"
sed -i 's/+ \*\*/ - { date: "/g' $file
sed -i 's/:\*\* /:", desc: "/g' $file
sed -i '/ - { date:/ s/$/" }/' $file