This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #------------------------------------------------------------------------------ | |
| # OpenResty Dynamic SSL Certificate Selection Example | |
| # | |
| # This conf snippet demonstrates how to dynamically serve different SSL | |
| # certificates based on the SNI (Server Name Indication) hostname using Lua. | |
| # | |
| # Use this when you want to serve multiple domains with different SSL certs | |
| # from a single OpenResty (nginx) instance, e.g. for XMPP, WebSocket, or HTTPS. | |
| # | |
| # This config is intended for use with the official OpenResty Docker image: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 🙏 Descriptions goes on comments 🙏 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############################################################################ | |
| # # | |
| # ------- Useful Docker Aliases -------- # | |
| # # | |
| # # Installation : # | |
| # copy/paste these lines into your .bashrc or .zshrc file or just # | |
| # type the following in your current shell to try it out: # | |
| # wget -O - https://gist.github.com//docker-aliases.sh | bash | |
| # # | |
| # # Usage: # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Docker Rootless Install (Security Enhanced Mode) | |
| In this installation we have two security enhancements: | |
| 1- create two dedicated partitions for docker data and volume containers | |
| 2- use a indirect user to access docker container managements | |
| [ Read Comments ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Rocketchat incoming grafana webhook script | |
| // This script is for Rocketchat when defining an integration in Administartion / Workspace / Integration panel | |
| // See the following links for some documentation: | |
| // * Grafana outgoing format: https://grafana.com/docs/grafana-cloud/alerting-and-irm/irm/incident/configure/integrations/configure-outgoing-webhooks/ | |
| // * Rocketchat incoming message format: https://developer.rocket.chat/reference/api/rest-api/endpoints/core-endpoints/chat-endpoints/postmessage#attachments-detail | |
| class Script { | |
| process_incoming_request({ request }) { | |
| var alerts = request.content.alerts[0]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| minio: | |
| container_name: minio | |
| hostname: minio | |
| image: quay.io/minio/minio | |
| restart: unless-stopped | |
| command: server --console-address ":9001" /data | |
| healthcheck: | |
| test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] | |
| interval: 30s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https_port 443 cert=/etc/letsencrypt/live/proxy-server.DOMAN.COM/fullchain.pem key=/etc/letsencrypt/live/proxy-server.DOMAN.COM/privkey.pem | |
| acl allowed_network src 0.0.0.0/0 | |
| acl allowed_domain dstdomain .pep.shaparak.ir .op1.pgsb.ir .ident.me | |
| #acl allowed_domain dstdomain .ident.me | |
| # Authentication settings | |
| auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/passwd | |
| auth_param basic children 5 | |
| auth_param basic realm Squid Proxy Server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| client - after mail logic on mailcow with pgp e2e encryption: https://autoize.ch/pgp-email-encryption-with-afterlogic-webmail-and-mailcow/ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt install python3-websocket | |
| sudo systemctl daemon-reload | |
| sudo systemctl start binance-monitor.service | |
| sudo systemctl enable binance-monitor.service | |
| sudo systemctl status binance-monitor.service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $server = "127.0.0.1" | |
| $database = "MMSQL_EXAMPLE_DATABSE" | |
| $currentDate = Get-Date -Format "yyyy-MM-dd" | |
| $backupFilePath = "F:\Backups\EXAMPLE-Backup-$currentDate.bak" | |
| $logFilePath = "F:\Backup-Logs\EXAMPLE-Backup-Logs.txt" | |
| $daysToKeep = 10 | |
| $mcPath = "F:\mc.exe" | |
| $minioUrl = "https://storage.example.com" | |
| $accessKey = "ACCESS_KEY" |
NewerOlder