Skip to content

Instantly share code, notes, and snippets.

@dbiesecke
dbiesecke / index.js
Created September 21, 2024 13:56
IMDB API Cloudflare Workers with Cover/banner
(() => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __commonJS = (cb, mod) => function __require() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};
@dbiesecke
dbiesecke / README.md
Last active September 8, 2024 14:49
JQ / Bash - Cleanup Movies dir - removes double movies from dir

JQ / Bash - Cleanup Movies dir - removes double movies from dir

  • search for more than 1gb files in a dir & remove the file with less size
for i in *;do (cd "$i" &&  MYVAL=$(rclone lsjson "." --min-size 1G |\
jq -r "select((. | length) > 1) | .[1].Path") && echo "$i/$MYVAL" && \
( test -f "$MYVAL" && rclone delete "$PWD/$MYVAL") );done
@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 November 15, 2024 16:42
RClone Docker Compose file - with rcd & additional options
version: '3.5'
networks:
default:
name: rclone
driver: "bridge"
services:
rclone: