Skip to content

Instantly share code, notes, and snippets.

View muocod's full-sized avatar
🙂

Sigma Devops muocod

🙂
View GitHub Profile
@bentesha
bentesha / haproxy-cheatsheet.cnf
Last active August 30, 2023 15:04
HA Proxy Cheatsheet
# Common fetches
# Match source IP address
acl is_malicious src 192.168.10.32
acl is_local_net src 192.168.32.0/24 # match IP range
# Match request path
acl is_api path -i -m beg /api # match paths starting with /api
acl is_image -i -m end .jpg .png .gif # match paths ending with .jpg .png and .gif extensions
acl is_health -i path_str /health # exact match path /health
@ilap
ilap / grafana_telegram_bot.md
Last active May 9, 2025 23:43
Grafana Telegram Alert

Config Telegrambot for grafana's alerts.

1. Create bot

Open Telegram and search for @BotFather user and message them the following:

You
/newbot 

BotFather
@Dminor7
Dminor7 / azure_blob_storage_dataframe.py
Last active November 11, 2023 23:09
Upload DataFrame to Azure Blob Storage as CSV file and Download CSV file as dataframe. Azure Python v12.5.0
import os, uuid
from io import BytesIO
from datetime import datetime
from urllib.parse import urlparse
from azure.storage.blob import BlobServiceClient
import pandas as pd
def azure_upload_df(container=None, dataframe=None, filename=None):
"""
Upload DataFrame to Azure Blob Storage for given container
@mahdyar
mahdyar / cPanel.yml
Created September 8, 2021 20:56
Deploy to cPanel with GitHub Actions (FTP)
name: Deploy to cPanel
on:
push:
branches:
- master
jobs:
FTP-Deploy-Action:
name: FTP-Deploy-Action
runs-on: ubuntu-latest
steps: