Skip to content

Instantly share code, notes, and snippets.

View arsalanses's full-sized avatar
🧠
lets play chess

Arsalan Sefidgar arsalanses

🧠
lets play chess
View GitHub Profile
@arsalanses
arsalanses / INSTALL.md
Created January 3, 2024 08:27
awx ansible tower
@arsalanses
arsalanses / docker-compose.yml
Created December 18, 2023 14:38
wordpress traefik compose
services:
mariadb:
image: docker.io/bitnami/mariadb:11.1
# volumes:
# - 'mariadb_data:/bitnami/mariadb'
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=bn_wordpress
- MARIADB_DATABASE=bitnami_wordpress
@arsalanses
arsalanses / docker-compose.yml
Created December 14, 2023 08:02
internet access check container curl+uptimekuma
services:
curlkuma:
image: curlimages/curl:latest
command: sh -c "watch -n30 'curl -s https://example.com'"
@arsalanses
arsalanses / docker-compose.yml
Last active December 31, 2023 15:43
nats docker compose
services:
nats:
image: docker.io/bitnami/nats:2
environment:
- "NATS_ENABLE_AUTH=yes"
- "NATS_USERNAME=nats"
- "NATS_PASSWORD=my_password"
ports:
# NATS_CLIENT_PORT_NUMBER
- "0.0.0.0:4222:4222"
@arsalanses
arsalanses / config.my-cnf
Last active January 15, 2024 13:18
MySQL Exporter Quickstart and Dashboard
[client]
user=username
password=password
@arsalanses
arsalanses / docker-compose.yml
Last active October 16, 2023 06:24
An easy to set up and use SSH honeypot, a fake SSH server that lets anyone in and logs their activity
services:
sshesame:
image: ghcr.io/jaksi/sshesame
ports:
- "0.0.0.0:22:2022"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
@arsalanses
arsalanses / compose.override.yaml
Created October 4, 2023 07:41
Traefik with multiple projects
services:
web:
labels:
- "traefik.http.routers.proj.rule=Host(`proj.traefik.me`)"
- "traefik.http.services.proj.loadbalancer.server.port=8000"
- "traefik.docker.network=traefik"
networks:
- default
- traefik
@arsalanses
arsalanses / docker-compose.yml
Created September 25, 2023 13:00
thelounge
services:
traefik:
image: traefik:v2.10.4
restart: unless-stopped
command:
- "--serverstransport.insecureskipverify=true"
- "--log.level=ERROR"
- "--accesslog=true"
@arsalanses
arsalanses / notify.sh
Created July 30, 2023 11:03
RocketChat notify bot
#!/bin/bash
TIME="10"
TEXT="Deploy status: $${1}\nProject: $CI_PROJECT_NAME\nURL: $CI_PROJECT_URL/pipelines/$CI_PIPELINE_ID/\nBranch: $CI_COMMIT_REF_SLUG\nUser: $${GITLAB_USER_NAME}"
curl -s -X POST --max-time $${TIME} \
-H "X-Auth-Token: Token" \
-H "X-User-Id: Id" \
-H "Content-type:application/json" \
https://example.org/api/v1/chat.postMessage \
@arsalanses
arsalanses / notify.sh
Last active July 26, 2023 10:47
Set Up GitLab Notifications in Telegram
#!/bin/bash
# You may want to change this
# Or make a secret variable
TELEGRAM_BOT_TOKEN=""
TELEGRAM_CHAT_ID=""
TIME="10"
URL="https://api.telegram.org/bot$${TELEGRAM_BOT_TOKEN}/sendMessage"
GITLAB_USER_NAME=$(echo $GITLAB_USER_NAME | sed 's/ /%20/g')