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
شکن: | |
178.22.122.100 | |
185.51.200.2 | |
الکترو: | |
78.157.42.100 | |
78.157.42.101 | |
رادار: |
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
stdbuf -oL tail -f /var/www/golang/logs/2025-04-27/esb_worker_db_queue_peertopeer_0_404012_2_access.log | \ | |
> stdbuf -oL grep -oP '"time":"\K[^"]+' | \ | |
> stdbuf -oL awk -F'[:T.]' '{print $2":"$3}' | \ | |
> stdbuf -oL uniq -c | \ | |
> while read count minute; do | |
> echo "Rate for $minute: $count logs"; | |
> done |
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 ps -a -q | ForEach-Object { docker update --restart=no $_ } |
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
phpize8.2 | |
./configure --with-php-config=/usr/bin/php-config8.2 --enable-openssl --enable-fiber | |
make -j$(nproc) | |
sudo make install |
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
``` | |
for host in /sys/class/scsi_host/*; do echo "- - -" | sudo tee $host/scan; ls /dev/sd* ; done | |
or | |
echo "- - -" | tee /sys/class/scsi_host/host*/scan | |
lsblk |
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 | |
# Temporary file to store IPs dropped by iptables in DENYIN chain | |
TEMP_DROPPED_IPS="/tmp/dropped_ips.txt" | |
# Function to extract IP blocks/ranges being dropped in the DENYIN chain | |
get_dropped_ips() { | |
# Extract IP blocks/ranges that are actively being dropped in the DENYIN chain | |
iptables -vL DENYIN -n | grep 'DROP' | awk '{if ($1 > 0) print $8}' | sort | uniq > "$TEMP_DROPPED_IPS" | |
} |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\*\shell\Notepad++] | |
@="Edit With Notepad++" | |
"Icon"="C:\\Program Files\\Notepad++\\notepad++.exe,0" | |
[HKEY_CLASSES_ROOT\*\shell\Notepad++\command] | |
@="\"C:\\Program Files\\Notepad++\\notepad++.exe\" \"%1\"" |
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
grep -oP '(?<=client: )[\d.]+(?=,)' /var/log/nginx/error.log | sort | uniq -c | sort -nr | head -n 20 |
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
/sbin/iptables-save | awk '/^COMMIT$/ { delete x; }; !x[$0]++' > /tmp/iptables.conf | |
/sbin/iptables -F | |
/sbin/iptables-restore < /tmp/iptables.conf | |
/sbin/iptables-save |
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
<Directory "D:/wamp64/bin/php/php8.2.18"> | |
Require all granted | |
</Directory> | |
ScriptAlias /php-cgi-8.2 "D:/wamp64/bin/php/php8.2.18/php-cgi.exe" | |
Action application/x-httpd-php8 /php-cgi-8.2 | |
<FilesMatch "\.php8$"> | |
SetHandler application/x-httpd-php8 | |
AllowOverride All |
NewerOlder