Skip to content

Instantly share code, notes, and snippets.

View Kambaa's full-sized avatar

Kambaa Kambaa

  • Kambaa
  • Istanbul, Turkey
View GitHub Profile
@Kambaa
Kambaa / backup_volumes_of_docker_compose_services.txt
Last active October 4, 2023 14:59
Backup volumes of docker-compose services
THIS SOLUTION ASSUMES THAT YOUR service container has tar installed and to be able to be used!
latest update:
i wrote 2 commands onmy .bash_profile:
checkvol <DOCKER_COMPOSE_SERVICE_NAME>
checkvol gitea
dockerbackup <DOCKER_COMPOSE_SERVICE_NAME> <DIR_TO_COPY> <FILENAME_TO_COMPRESS>
@Kambaa
Kambaa / 2025-StrokesPlus multimonitor new config.md
Last active March 7, 2025 22:54
StrokesPlus multimonitor switching notes

2025 Config:

I rewrote the lua scripts. My use case is for the left(vertical) and right(big one) monitors are:

  • If swiped left, move the active window to the left monitor and set the width to monitor width and height to 500, and windows top position is pre-configured for some apps.
  • If swiped right move the active window to the right monitor and toggle maximize.
  • Above 2 configs should not work for my shortcut app(app width change brokes usability).
  • If window is already on the left monitor, left swipe does nothing.
  • If window is already on the right monitor, right swipe toggles maximization

1. ZZ- Move To Left Monitor And Custom Resize

@Kambaa
Kambaa / gist:062b9256bff190e59ebfcd113789df49
Last active May 13, 2023 01:15
global cors definition spring boot
https://stackoverflow.com/a/66590699/1020512
https://reflectoring.io/spring-cors/
https://www.tutorialspoint.com/spring_boot/spring_boot_cors_support.htm
https://www.baeldung.com/spring-cors
https://stackoverflow.com/questions/36968963/how-to-configure-cors-in-a-spring-boot-spring-security-application
@Kambaa
Kambaa / README.md
Last active February 2, 2024 07:15
RustDesk Self Hosted Server Working Example

RustDesk Server Working Example

This example runs a RustDesk server (with detailed/debug logs enabled and secured with id_ed25519 key that only you can use in your machines if you configure RustDesk clients) and you can use the server resources instead of RustDesk public resources.

$ ffmpeg \
-f avfoundation \
-video_size 1920x1080 \
-framerate 30 \
-i "2:2" \
-c:v libx264 \
-b:v 6000K \
-maxrate 6000K \
-pix_fmt yuv420p \
-r 30 \
$ ffmpeg \
-re \
-i /path/to/video.mp4 \
-c:v libx264 \
-b:v 6000K \
-maxrate 6000K \
-pix_fmt yuv420p \
-s 1920x1080 \
-profile:v main \
-preset veryfast \
$ ffmpeg \
-re \
-stream_loop -1 \
-i /path/to/video.mp4 \
-stream_loop -1 \
-i /path/to/audio.mp3 \
-map 0:v:0 \
-map 1:a:0 \
-c:v libx264 \
-b:v 6000K \
ffmpeg \
-f avfoundation \
-framerate 30 \
-video_size 1920x1080 \
-i "3:" \
-f avfoundation \
-framerate 30 \
-video_size 640x480 \
-i "2:" \
-f avfoundation \

Prerequisites

Just to make sure everything works as expected, here are my current Node/AWS CLI versions (in case we need to look up an ARN or something with the CLI)

Node Version

$ node --version
v18.12.1