Skip to content

Instantly share code, notes, and snippets.

View hiage's full-sized avatar
🏠
Working from home

Abdurrahman AG hiage

🏠
Working from home
  • Indonesia
  • 01:50 (UTC +07:00)
  • X @HiAgee
View GitHub Profile
@hiage
hiage / setup-qbt-nginx.sh
Last active June 16, 2025 05:46
Setup script for qBittorrent-nox and Nginx on Ubuntu
#!/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
@hiage
hiage / cleanup_images.md
Created July 18, 2024 00:15
cleanup docker images

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"
@hiage
hiage / gist:4742d59570aac4bd84a892f950e24442
Created January 25, 2024 07:45
how to share mount volume between different docker-compose.yml
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:
@hiage
hiage / pop-shell_ubuntu_22.04_jammy.md
Created December 9, 2023 14:45
how to install pop shell window tilling on Ubuntu 21.10 or Ubuntu 22.04
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
#!/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
[2023-01-04 16:30:06] DEBUG {"example_app_name": "frontend12", "example_user": "user1", "example_message": "message app here"}
level :
- DEBUG
- INFO
- ERROR
- CRIT
@hiage
hiage / cheatsheet-elasticsearch.md
Created September 21, 2022 14:17 — forked from ruanbekker/cheatsheet-elasticsearch.md
Elasticsearch Cheatsheet : Example API usage of using Elasticsearch with curl
version: '2'
services:
openvpn:
cap_add:
- NET_ADMIN
image: hiage/openvpn
container_name: openvpn
ports:
- "1194:1194/udp"
restart: always
@hiage
hiage / show thumbnails video.md
Created June 28, 2022 15:22
show thumbnails video

ubuntu 20.04 filemanager show thumbnails video.

sudo apt install gstreamer1.0-libav ffmpegthumbnailer
@hiage
hiage / nc.txt
Created June 24, 2022 08:18
nc.md
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)