Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dbiesecke
dbiesecke / check-nzbapi.sh
Created March 28, 2024 13:52
Check NZB Indexer API keys for Caps
#!/bin/bash
function curlwithcode() {
code=0
# Run curl in a separate command, capturing output of -w "%{http_code}" into statuscode
# and sending the content to a file with -o >(cat >/tmp/curl_body)
statuscode=$(curl -w "%{http_code}" \
-o >(cat >/tmp/curl_body) \
"$@"
) || code="$?"
@dbiesecke
dbiesecke / check_usenet_upload-acc.sh
Created March 28, 2024 13:49
Check usenet accounts for upload
#/bin/bash
#
#
# % ~/bin/check_usenet_upload "xsnews.nl xsn PASSS"
#
#
#
# 'https://github.com/mbruel/ngPost/releases/download/v4.14/ngPost_v4.14_cmd-x86_64.AppImage'
#
# curl 'https://github.com/mbruel/ngPost/releases/download/v4.14/ngPost_v4.14_cmd-x86_64.AppImage' > ~/bin/ngPost && chmod +x ~/bin/ngPost
@dbiesecke
dbiesecke / README.md
Last active March 10, 2024 09:59
Quest 3 Upscale adb "Hack"

Quest 3 Upscale adb "Hack"

===========================

adb shell "setprop debug.oculus.textureWidth 2048 && setprop debug.oculus.textureHeight 2048 && settings put system font_scale 0.85 && settings put system font_scale 1.0"

SRC

@dbiesecke
dbiesecke / README.md
Last active December 19, 2023 13:40
PowerAutomate / Logical Apps - Conditions - example only match specific time

PowerAutomate Conditions

If / else

if(equals({variable},'value'),'It matches','It doesn't match')
@dbiesecke
dbiesecke / README.md
Last active December 27, 2023 13:24
OpenAPI CodeGen

Docker geneartor

CID=$(docker run -d -p 8888:8080 openapitools/openapi-generator-online)
sleep 10 && GEN_IP=$(docker inspect --format '{{.NetworkSettings.IPAddress}}'  $CID)
@dbiesecke
dbiesecke / README.md
Created October 7, 2022 01:31
Nginx default reverse proxy settings
port_in_redirect off;
    
location /glances/ {
  rewrite /glances/(.*) /$1 break;
  proxy_pass http://localhost:61208/;
 proxy_set_header Host $http_host;
@dbiesecke
dbiesecke / README.md
Created September 10, 2022 16:48
Rclone auto mount + populate filesystem

Automount rclone

==========

Example invocation afuseusing sshfs:

`afuse -o mount_template="sshfs %r:/ %m" \
        -o unmount_template="fusermount -u -z %m" \
           mountpoint/`
@dbiesecke
dbiesecke / docker-compose.yml
Last active August 24, 2022 13:28
RClone Docker Compose file - with rcd & additional options
version: '3.5'
networks:
default:
name: rclone
driver: "bridge"
services:
rclone:
@dbiesecke
dbiesecke / README.md
Created September 27, 2021 13:08
Filesystem from a single file with fixed size

Filesystem from a single file with fixed size

  • Usefull if you have no lvm

  1. fallocate -l 1G /mnt/downloads.img

  2. mkfs.xfs -f /mnt/test.img

#!/bin/bash
#######################################
### NZBGET POST-PROCESSING SCRIPT ###
# Moves downloads to a configured location using rclone and load balances over
# multiple remotes
#
#
# NOTE: Requires sh, coreutils or busybox, screen and rclone. Remotes must be setup in rclone.conf.