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
| location ~* /xmlrpc.php$ { | |
| allow 172.0.1.1; | |
| deny all; | |
| } | |
| if ($request_method !~ ^(GET|POST)$ ) { | |
| return 444; | |
| } | |
| location ~* /(?:uploads|files|wp-content|wp-includes|akismet)/.*.php$ { |
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
| version: '3' | |
| services: | |
| nginx: | |
| image: nginx:1.15-alpine | |
| ports: | |
| - "80:80" | |
| - "443:443" | |
| volumes: | |
| - ./nginx:/etc/nginx/conf.d |
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
| # Permanently moved to https://gist.axenov.dev/anthony/omz#file-zsh-fancify-sh |
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
| #!/bin/bash | |
| BOT_TOKEN="<token>" | |
| CHAT_ID="<id>" | |
| TELEGRAM_USERNAME="<username>" | |
| send_telegram_message() { | |
| local message="$1" | |
| curl -s -X POST "https://api.telegram.org/bot$BOT_TOKEN/sendMessage" \ | |
| -d chat_id="$CHAT_ID" \ |
OlderNewer