theme-my-login/includes/class-theme-my-login.php -------------------------------- public static function check_password_reset_key( $key, $login ) { global $wpdb; //$key = preg_replace( '/[^a-z0-9]/i', '', $key ); ..... return $user; }
WP : wp_new_user_notification customizing Hint
wp-include/pluggable.php ------------------------------- $message = sprintf(__('Username: %s'), $user->user_login) . "\r\n\r\n"; $message .= __('To set your password, visit the following address:') . "\r\n\r\n"; $message .= network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user->user_login), 'login'); $message .= "\r\n\r\n"; $message .= wp_login_url(); $message .= "\r\n"; -------------------------------
WP : theme-my-login : profile-form.php password strangth Hint
theme-my-login.css ----------------------------- #pass1-text { display: none; } ----------------------------- profile-form.php ----------------------------- <?php $show_password_fields = apply_filters( 'show_password_fields', true, $profileuser ); if ( $show_password_fields ) : ?> <tr id="password"> <th><label for="pass1"><?php _e( 'New Password' ); ?></label></th> <td><input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" /> <span class="description"><?php _e( 'If you would like to change the password type a […]
centos 7 : ntpd kernel level time sync Hint, NTP synchronized timedatectl
centos 7 NTP synchronized # timedatectl status # timedatectl set-ntp true More Hint! # timedatectl | grep -i 'time zone' # ls -l /etc/localtime # timedatectl list-timezones | grep Asia/Seoul # timedatectl set-timezone Asia/Seoul Asia/Seoul => KST yum install -y ntp firewall-cmd --add-service=ntp --permanent firewall-cmd --reload systemctl enable ntpd systemctl […]
mysql : process monitor Hint
# mysqladmin -u root -p passwd -i 1 processlist
linux : catch long processes with thread info Hint
# ps -e -T | grep mysql | grep "[0-9][0-9]:[0-9][1-9]:[0-9][0-9]\s"
linux : top with thread info Hint
# top -H -p `ps aux | grep mysql | awk '{print $2}' | paste -s -d ',' `
CentOS7 : /caucho-status setup with .htpasswd in VirtualHost, using pure php Hint
configurate apache-caucho /etc/httpd/conf/httpd.conf LoadModule caucho_module modules/mod_caucho.so <Location /caucho-status> AuthType Basic AuthName "restricted area" AuthUserFile /home/domain/.htpasswd require valid-user SetHandler caucho-status </Location> <Location /servlet/*> SetHandler caucho-request </Location> NameVirtualHost *:80 <VirtualHost *:80> ServerName www.domain.com DocumentRoot /home/domain/public_html php_admin_value open_basedir /home/domain:/tmp php_admin_value include_path /home/domain LimitRequestLine 81900 <FilesMatch "^((?!\.php).)*$"> ResinConfigServer localhost 6800 CauchoConfigCacheDirectory /etc/httpd CauchoStatus yes </FilesMatch> […]
CentOS 7 : /resin-admin setup Hint
/etc/resin/resin.properties app.http : 8080 web.http : 8080 remote_admin_enable : true web_admin_enable : true web_admin_external : true admin_external : true admin_secure : true http://www.domain.com:8080/resin-admin/login.php Generate encrypted password by [Create Configuration FIle] /etc/resin/admin-users.xml <resin:AdminAuthenticator xmlns="http://caucho.com/ns/resin" […]
mac mdworker cpu cost disabled Hint
$ sudo mdutil -a -i off $ sudo mdutil -a -i on