Skip to content

Instantly share code, notes, and snippets.

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

Tarlan Isaev organicnz

🏠
Working from home
View GitHub Profile
@MaxLazar
MaxLazar / nginx.conf
Created September 10, 2019 15:31
Nginx Rules to Harden WordPress Security
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$ {
@louisguitton
louisguitton / docker-compose.yml
Created September 22, 2019 15:21
Nginx + HTTPS + Docker
version: '3'
services:
nginx:
image: nginx:1.15-alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx:/etc/nginx/conf.d
@anthonyaxenov
anthonyaxenov / zsh-fancify.sh
Last active February 20, 2025 05:38 — forked from AlexZeitler/setup-oh-my-zsh-powerlevel9k.sh
Installing zsh / oh-my-zsh / Powerlevel10k on Ubuntu 20.04
# Permanently moved to https://gist.axenov.dev/anthony/omz#file-zsh-fancify-sh
#!/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" \