Skip to content

Instantly share code, notes, and snippets.

View boutzamat's full-sized avatar

Suleiman Boutzamat boutzamat

View GitHub Profile
@boutzamat
boutzamat / gist:2d4e9d311d543640b472b7ec6b250757
Created July 25, 2025 08:56
CSS to hide ads on Facebook
.x1lliihq:has([data-ad-rendering-role="cta-"]),
.x1pha0wt.x78zum5.x1r8uery.xdt5ytf.x1iyjqo2.x1qughib,
.x1lliihq div:has(>span>div>div>[attributionsrc]),
.x1y1aw1k > div:has([aria-label="Annoncør"])
{
display:none!important;
}
@boutzamat
boutzamat / autoip.sh
Created April 3, 2025 11:46
AutoIP for PiKVM
#!/bin/bash
# Define the interface name and the temporary IP address
INTERFACE="eth0" # Replace with the correct network interface name if it's different
TEMP_IP="192.168.1.100/24" # Replace with the desired temporary IP address
# Check for an IPv4 address on the interface
check_ip() {
ip addr show $INTERFACE | grep -q "inet "
}
@boutzamat
boutzamat / featured-image.php
Created September 11, 2024 19:56
Add featured image to Bricks Builder page settings
@boutzamat
boutzamat / exchange.conf
Created October 16, 2023 10:34 — forked from crypt0rr/exchange.conf
Configuration for Microsoft Exchange Server (2010 / 2013 / 2016) behind a (free) nginx reverse proxy. This config allows things like Microsoft ActiveSync.
server {
listen 80;
server_name mail.example.com;
return 301 https://mail.example.com;
}
server {
listen 443 ssl http2;
server_name mail.example.com autodiscover.example.com;