Skip to content

Instantly share code, notes, and snippets.

@DutchEllie
DutchEllie / tomfoolery.sh
Created November 10, 2023 10:39
We partake in a minuscule amount of tomfoolery
#!/bin/bash
num_bytes=$1
num_places=$2
disk="/dev/sda" # You can change this to your own disk
disk_size=$(blockdev --getsize64 "$disk")
effective_disk_size=$(($disk_size - $num_bytes))
for ((i=0; i<num_places; i++)); do
@DutchEllie
DutchEllie / log
Created April 3, 2023 19:05
jellyfin log
[2023-04-03 08:50:20.097 +00:00] [INF] "IntervalTrigger" fired for task: "Scan Media Library"
[2023-04-03 08:50:20.098 +00:00] [INF] Queuing task "RefreshMediaLibraryTask"
[2023-04-03 08:50:20.098 +00:00] [INF] Executing "Scan Media Library"
[2023-04-03 08:50:20.102 +00:00] [INF] Stopping directory watching for path "/bigdisk/media/TV-Private"
[2023-04-03 08:50:20.103 +00:00] [INF] Stopping directory watching for path "/bigdisk/media/TV"
[2023-04-03 08:50:20.105 +00:00] [INF] Stopping directory watching for path "/bigdisk/media/Movies"
[2023-04-03 08:50:20.108 +00:00] [INF] Validating media library
[2023-04-03 08:50:20.241 +00:00] [INF] Creating image collage and saving to "/var/cache/jellyfin/temp/8717bcca887a4f9b8742ff017246a918.png"
[2023-04-03 08:50:20.248 +00:00] [INF] Creating image collage and saving to "/var/cache/jellyfin/temp/51dced559f3a43028e14d80505d05811.png"
@DutchEllie
DutchEllie / .XCompose
Created September 29, 2022 09:57
How to type amogus key with compose key
<Multi_key> <a> <m> <o> <g> <u> <s> : "ඞ" U0D9E # AMOGUS
version: '3.4'
services:
##################################################################################
## Cluster PEER 0 ################################################################
##################################################################################
ipfs0:
container_name: ipfs0
image: ipfs/go-ipfs:master-latest
-----------------------------------------------------: timestamp=2021-09-27T11:58:43.730Z
2021-09-27T11:58:43.730Z [INFO] provider.terraform-provider-aws_v3.58.0_x5: 2021/09/27 11:58:43 [DEBUG] [aws-sdk-go] <AddRoleToInstanceProfileResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
<ResponseMetadata>
<RequestId>328eada8-9f6f-428d-9729-c79e03b13e96</RequestId>
</ResponseMetadata>
</AddRoleToInstanceProfileResponse>: timestamp=2021-09-27T11:58:43.730Z
2021-09-27T11:58:43.734Z [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to workingState for module.mastercluster.aws_iam_instance_profile.workers[0]
2021-09-27T11:58:43.735Z [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState: writing state object for module.mastercluster.aws_iam_instance_profile.workers[0]
2021-09-27T11:58:43.736Z [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to workingState for module.mastercluster.aws_iam_instance_profile.workers[0]
2021-09-27T11:58:43.736Z [TRACE] NodeAbstractResouc