Wednesday, February 19, 2025

curl with auto negotiated proxy authentication

curl -v --proxy-negotiate -u : https://blog.mydomain.com --proxy http://proxy.lan.local:3128

Friday, January 31, 2025

Synology: nginx(-proxy-manager) and rar2fs with docker

#!/bin/bash

    
#NGINX
mkdir -p /volume1/unpacked/rar2fs
docker run --name nginx -v /volume1/unpacked/rar2fs:/usr/share/nginx/html:ro -p 5088:80 -d nginx:stable

# NGINX-PROXY-MANAGER
mkdir -p /volume1/docker/nginx-proxy-manager/data
mkdir -p /volume1/docker/nginx-proxy-manager/letsencrypt
docker run -d \
    --name=nginx-proxy-manager \
    -p 5080:80 \
    -p 5443:443 \
    -p 5081:81 \
    -v /volume1/docker/nginx-proxy-manager/data:/data:rw \
    -v /volume1/docker/nginx-proxy-manager/letsencrypt:/etc/letsencrypt:rw \
    jc21/nginx-proxy-manager:latest

#RAR2FS
docker stop nginx
docker stop nginx-proxy-manager
docker stop rar2fs
docker rm rar2fs

mount --make-shared /volume1/
docker run \
  -d \
  --init \
  --privileged \
  --name rar2fs \
  --cap-add MKNOD \
  --cap-add SYS_ADMIN \
  --device /dev/fuse \
  --network none \
  -v /volume1/stuff:/source \
  -v /volume1/unpacked/rar2fs:/destination:rshared \
  zimme/rar2fs

docker start nginx-proxy-manager
docker start nginx

Wednesday, January 22, 2025

Change password in RDP

There are some key combo’s like ctr-alt-end that might work in an RDP session. However, there are some scenario’s (e.g. with a Mac) that make it complicated.

Workaround:

C:\Windows\explorer.exe shell:::{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0}