Skip to content

Instantly share code, notes, and snippets.

View tongdaitructuyen's full-sized avatar

Martino Hugo tongdaitructuyen

View GitHub Profile
@tongdaitructuyen
tongdaitructuyen / wordpress-cau-hinh-email-gui-mac-dinh.txt
Created May 30, 2019 14:39
[WordPress] Cấu hình mặc định WordPress gửi từ 1 email
add_filter('wp_mail_from', function ($email){
return 'no-reply@your-domain.com';
});
//* Gafaba.com: - Remove WordPress's default image sizes | https://gafaba.com/
function remove_default_image_sizes( $sizes) {
unset( $sizes['large']);
unset( $sizes['thumbnail']);
unset( $sizes['medium']);
unset( $sizes['medium_large']);
unset( $sizes['1536x1536']);
unset( $sizes['2048x2048']);
return $sizes;
}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
06:ea:f1:f8:db:75:5c:8v:af:15:d7:99:2d:ef:08:2a.
Please contact your system administrator.
Add correct host key in /home/martino-hugo/.ssh/known_hosts to get rid of this message.
@tongdaitructuyen
tongdaitructuyen / [Wordpress] OneSignal Intelligent delivery - functions.php
Created January 29, 2020 02:30
[Wordpress] Cấu hình OneSignal theo Intelligent delivery
//* BEGIN - Gafaba.com: - [Wordpress] OneSignal Intelligent delivery - functions.php | https://gafaba.com/
add_filter('onesignal_send_notification', 'onesignal_send_notification_filter', 10, 4);
function onesignal_send_notification_filter($fields, $new_status, $old_status, $post)
{
$fields['delayed_option'] = 'last-active';
return $fields;
}
//* END - Gafaba.com: - [Wordpress] OneSignal Intelligent delivery - functions.php | https://gafaba.com/
yum -y update; curl -O https://centminmod.com/betainstaller73.sh && chmod 0700 betainstaller73.sh && bash betainstaller73.sh
cd /usr/local/src/centminmod/
./centmin.sh
LETSENCRYPT_DETECT='y'
PHPFINFO='y'
cd /usr/local/src/centminmod/
./centmin.sh
cd /usr/local/directadmin
mv custombuild custombuild_1.x
wget -O custombuild.tar.gz http://files.directadmin.com/services/custombuild/2.0/custombuild.tar.gz
tar xvzf custombuild.tar.gz
cd custombuild
./build