Skip to content

Instantly share code, notes, and snippets.

🤔

Yi Huang cras4202tw

🤔
Block or report user

Report or block cras4202tw

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View CentOS 8 LNMP
#!/bin/bash
clear
setenforce 0
sed -i 's/^SELINUX=.*$/SELINUX=disabled/' /etc/selinux/config
sed -i 's@LANG=.*$@LANG="en_US.UTF-8"@g' /etc/locale.conf
cat > /etc/yum.repos.d/nginx.repo << EOF
[nginx]
name=nginx mainline repo
baseurl=http://nginx.org/packages/mainline/centos/8/\$basearch/
gpgcheck=0
View DigitalOcean
-------------------------------------------------
nench.sh v2018.04.14 -- https://git.io/nench.sh
benchmark timestamp: 2018-08-08 02:57:01 UTC
-------------------------------------------------
Processor: Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz
CPU cores: 1
Frequency: 2199.998 MHz
RAM: 992M
Swap: -
View gist:45f40f819dd805c22f385686b6057fc4
remove_action( 'try_gutenberg_panel', 'wp_try_gutenberg_panel' );
View log
118.163.92.212 - - [08/Feb/2018:08:38:40 +0800] "GET /wp-admin/load-scripts.php HTTP/1.1" 404 571 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"
118.163.92.212 - - [08/Feb/2018:09:01:54 +0800] "GET /wp-admin/load-scripts.php?dsada HTTP/1.1" 404 571 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"
View wordpress-load-script.conf
[Definition]
failregex = ^<HOST> - - .* "GET /wp-admin/load-scripts.php
ignoreregex =
View jail.local
[DEFAULT]
bantime = -1
banaction = iptables-multiport
[wp-load-script]
enabled = true
port = http,https
filter = wordpress-load-script
logpath = /var/log/nginx/access.log
You can’t perform that action at this time.