Malin / wazuh-agent-i
0 喜欢
0 派生
2 文件
最后活跃于
1 | curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | gpg --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/wazuh.gpg --import && chmod 644 /usr/share/keyrings/wazuh.gpg |
2 | echo "deb [signed-by=/usr/share/keyrings/wazuh.gpg] https://packages.wazuh.com/4.x/apt/ stable main" | tee -a /etc/apt/sources.list.d/wazuh.list |
3 | apt-get update |
4 | WAZUH_MANAGER="freak.palmasolutions.net" apt-get install wazuh-agent -y |
5 | systemctl daemon-reload |
6 | systemctl enable wazuh-agent |
7 | systemctl start wazuh-agent |
Malin / fix-nginx-key.sh
0 喜欢
0 派生
1 文件
最后活跃于
1 | # for HestiaCP |
2 | # from https://forum.hestiacp.com/t/fix-nginx-expired-key-expkeysig-abf5bd827bd9bf62/14754 |
3 | |
4 | curl -s https://nginx.org/keys/nginx_signing.key | gpg --dearmor > /usr/share/keyrings/nginx-keyring.gpg |
Malin / find-large-files.sh
0 喜欢
0 派生
1 文件
最后活跃于
1 | du -k | sort -n | perl -ne 'if ( /^(\d+)\s+(.*$)/){$l=log($1+.1);$m=int($l/log(1024)); printf ("%6.1f\t%s\t%25s %s\n",($1/(2**(10*$m))),(("K","M","G","T","P")[$m]),"*"x (1.5*$l),$2);}' |
2 | |
3 | # from: https://gist.github.com/dharma017/88cc449a9bcae63d1f4e |
Malin / update-cleanup-check.sh
0 喜欢
0 派生
1 文件
最后活跃于
1 | #!/bin/sh |
2 | |
3 | apt update && apt upgrade -y && apt dist-upgrade -y && apt autoremove -y |
4 | find /var/log/ -type f -name "*.gz" -exec rm -rfv {} \; |
5 | find /var/log/ -type f -name "*..*" -exec rm -rfv {} \; |
6 | find /var/log/ -type f -name "*[0123456789].log" -exec rm -rfv {} \; |
7 | find /var/log/ -type f -name "*.[0123456789]" -exec rm -rfv {} \; |
8 | journalctl --vacuum-size=500M |
9 | apt clean |
10 | df -h |
Malin / fix-OpenDKIM.sh
0 喜欢
0 派生
1 文件
最后活跃于
1 | mkdir /var/lib/opendkim |
2 | touch /var/lib/opendkim/stats.dat |
3 | chown -R opendkim:opendkim /var/lib/opendkim |
4 | |
5 | service postfix restart && service opendkim restart && service opendkim status |
Malin / PowerDNS-key-expiry.sh
0 喜欢
0 派生
1 文件
最后活跃于
1 | # from: https://github.com/PowerDNS/pdns/issues/12894 |
2 | |
3 | apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com |
Malin / image-optimization.sh
0 喜欢
0 派生
1 文件
最后活跃于
1 | # from: https://gist.github.com/w33zy/7b948d10175f5417af60ce0128e1e1bd |
2 | # Install jpegoptim and optipng |
3 | apt update && apt install jpegoptim optipng -y |
4 | |
5 | # JPG optimization |
6 | cd /path/to/your/image/folder |
7 | find . -iname "*.jp*" -print0 | xargs -0 jpegoptim --strip-all -m76 |
8 | # PNG optimization |
9 | cd /path/to/your/image/folder |
10 | find . -iname '*.png' -print0 | xargs -0 optipng -o7 -preserve |
Malin / swapfile-proxomx.sh
0 喜欢
0 派生
1 文件
最后活跃于
1 | #!/bin/bash |
2 | |
3 | # Define swapfile size and path |
4 | SWAPFILE_PATH="/var/lib/vz/swapfile" |
5 | SWAPFILE_SIZE="64G" |
6 | |
7 | # Create the swapfile with the specified size |
8 | fallocate -l $SWAPFILE_SIZE $SWAPFILE_PATH |
9 | |
10 | # Set the correct permissions |
Malin / malware-Lver.js.php
0 喜欢
0 派生
1 文件
最后活跃于
1 | <?php /* |
2 | * |
3 | * WordPress scripts and styles default loader. |
4 | * |
5 | * Several constants are used to manage the loading, concatenating and compression of scripts and CSS: |
6 | * define('SCRIPT_DEBUG', true); loads the development (non-minified) versions of all scripts and CSS, and disables compression and concatenation, |
7 | * define('CONCATENATE_SCRIPTS', false); disables compression and concatenation of scripts and CSS, |
8 | * define('COMPRESS_SCRIPTS', false); disables compression of scripts, |
9 | * define('COMPRESS_CSS', false); disables compression of CSS, |
10 | * define('ENFORCE_GZIP', true); forces gzip for compression (default is deflate). |