ubuntu 20.04 filemanager show thumbnails video.
sudo apt install gstreamer1.0-libav ffmpegthumbnailer
| test connection and listen tcp port with nc | |
| server A (target) (172.2.0.3) | |
| nc -l 172.1.2.3 3000 (enter) | |
| | | |
| | | |
| (vpc project peering) | |
| | | |
| | | |
| Server B (172.30.2.3) |
ubuntu 20.04 filemanager show thumbnails video.
sudo apt install gstreamer1.0-libav ffmpegthumbnailer
| version: '2' | |
| services: | |
| openvpn: | |
| cap_add: | |
| - NET_ADMIN | |
| image: hiage/openvpn | |
| container_name: openvpn | |
| ports: | |
| - "1194:1194/udp" | |
| restart: always |
My Elasticsearch cheatsheet with example usage via rest api (still a work-in-progress)
| [2023-01-04 16:30:06] DEBUG {"example_app_name": "frontend12", "example_user": "user1", "example_message": "message app here"} | |
| level : | |
| - DEBUG | |
| - INFO | |
| - ERROR | |
| - CRIT |
| #!/bin/bash | |
| #Remove all Docker containers and unused images and volumes | |
| #docker ps -qa|xargs docker rm -f | |
| #docker images |grep '<none>'|awk '{print $3}'|xargs docker rmi | |
| #docker volume ls -qf dangling=true|xargs docker volume rm | |
| # Remove exited containers | |
| docker ps -a -q -f status=exited | xargs --no-run-if-empty docker rm -v |
sudo apt install git node-typescript make gnome-shell-extension-prefs
git clone https://github.com/pop-os/shell -b master_jammy
cd shell
make local-install
| how to share mount volume between different docker-compose.yml from A to B docker-compose.yml | |
| docker-composeA.yml | |
| services: | |
| php: | |
| volumes: | |
| - www-data:/var/www/html | |
| volumes: | |
| www-data: |
vim cleanup_docker_images.sh
#!/bin/bash
# List all images except those with tag 'dev'
images_to_delete=$(docker images --format "{{.Repository}}:{{.Tag}} {{.ID}}" | grep -v 'dev' | awk '{print $2}')
# Delete the images
for image_id in $images_to_delete; do
echo "Deleting image ID: $image_id"| #!/bin/bash | |
| set -e | |
| echo "Updating package lists and installing qBittorrent-nox and nginx..." | |
| sudo apt update | |
| sudo apt install -y qbittorrent-nox nginx | |
| echo "Creating user 'qbittorrent' if it does not exist..." | |
| sudo id qbittorrent &>/dev/null || sudo useradd -m -s /usr/sbin/nologin qbittorrent |