全部 新建

user:thomas 由使用者建立的 Gists

title:mygist Gists 的標題

filename:myfile.txt Gists 的檔案名稱

extension:yml Gists 的副檔名

language:go Gists 的程式語言

登錄


全部 新建

所有 Gists

倒序排序 創建
順序排序 創建
倒序排序 更新
順序排序 更新
Malin's Avatar

Malin / wazuh-agent-i

0 喜歡
0 分支
2 檔案
最後活躍 1724082687
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's Avatar

Malin / fix-nginx-key.sh

0 喜歡
0 分支
1 檔案
最後活躍 1724071618
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's Avatar

Malin / find-large-files.sh

0 喜歡
0 分支
1 檔案
最後活躍 1723833732
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's Avatar

Malin / update-cleanup-check.sh

0 喜歡
0 分支
1 檔案
最後活躍 1723833683
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's Avatar

Malin / fix-OpenDKIM.sh

0 喜歡
0 分支
1 檔案
最後活躍 1723832918
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's Avatar

Malin / PowerDNS-key-expiry.sh

0 喜歡
0 分支
1 檔案
最後活躍 1723832028
1 # from: https://github.com/PowerDNS/pdns/issues/12894
2
3 apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com
Malin's Avatar

Malin / image-optimization.sh

0 喜歡
0 分支
1 檔案
最後活躍 1723832280
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's Avatar

Malin / form.html

0 喜歡
0 分支
1 檔案
最後活躍 1722678807
1 <form id="donate-form-non-widget" class="simple_form embedded-form" novalidate="novalidate" action="/embeds/f2fa829f-a278-4610-b94d-9f2dd46537c0/donate" accept-charset="UTF-8" data-remote="true" method="post"><input type="hidden" name="authenticity_token" value="1yt1jZmI9YhyiIivjG_FlqdEaMQGoRF6u_gHuxZ57NCQXwIc7uqQjT34E9VEwGpHQG3Pb6lUPjueaQ6V3Y3PZA" autocomplete="off">
2 <input type="hidden" name="stripe_gateway" id="stripe_gateway" value="true" autocomplete="off">
3 <input type="hidden" name="id" id="id" value="f2fa829f-a278-4610-b94d-9f2dd46537c0" autocomplete="off">
4 <input type="hidden" name="ref" id="ref" autocomplete="off">
5 <input type="hidden" name="embedded" id="embedded" value="true" autocomplete="off">
6 <input type="hidden" name="full_form" id="full_form" value="true" autocomplete="off">
7 <input type="hidden" name="currency_symbol" id="currency_symbol" value="$" autocomplete="off">
8 <input type="hidden" name="collect_address" id="collect_address" value="false" autocomplete="off">
9 <span id="captcha-v3-site-key" data-captcha-v3-site-key="6Lcj4bspAAAAAIhgp4akofL9Oe53WYOCdZj-yuze"></span>
Malin's Avatar

Malin / swapfile-proxomx.sh

0 喜歡
0 分支
1 檔案
最後活躍 1722577474
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's Avatar

Malin / malware-Lver.js.php

0 喜歡
0 分支
1 檔案
最後活躍 1721982553
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).
上一頁 下一頁

由 Opengist 提供支持 ⋅ Load: 524ms⋅

繁體中文
Čeština Deutsch English Español Français Magyar Português Русский 中文 繁體中文