Skip to content

Instantly share code, notes, and snippets.

View Kaiderella's full-sized avatar
🏠
Working from home

Hieu Bui Trung Kaiderella

🏠
Working from home
View GitHub Profile
@Kaiderella
Kaiderella / wp-config.php
Created March 30, 2017 02:43
Lỗi download failed
* @package WordPress
*/
define('WP_TEMP_DIR', ABSPATH . 'wp-content/');
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'anotherd_wrd1');
@Kaiderella
Kaiderella / wp-config.php
Created March 30, 2017 02:42
Lỗi download failed trong WordPress
* @package WordPress
*/
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'anotherd_wrd1');
@Kaiderella
Kaiderella / wp-config.php
Created March 27, 2017 04:42
Lỗi yêu cầu FTP
/*** FTP login settings ***/
define("FTP_HOST", "localhost");
define("FTP_USER", "ftp-user");
define("FTP_PASS", "ftp-password");
@Kaiderella
Kaiderella / wp-config.php
Created March 27, 2017 04:41
Lỗi yêu cầu FTP trong WordPress
define('FS_METHOD', 'direct');
@Kaiderella
Kaiderella / .htaccess
Created March 27, 2017 03:35
Thay đổi max_input_time với .htaccess
php_value max_input_time 120
@Kaiderella
Kaiderella / .htaccess
Created March 27, 2017 03:34
Thay đổi thiết lập PHP với .htaccess
php_value Directive value
@Kaiderella
Kaiderella / .htaccess
Created March 27, 2017 03:22
php.ini đệ quy
suPHP_ConfigPath /home/username/public_html
@Kaiderella
Kaiderella / php.ini
Created March 27, 2017 03:21
Chỉnh sửa limit PHP
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
max_execution_time = 30
max_input_time = 60
memory_limit = 256M
upload_max_filesize = 10M
@Kaiderella
Kaiderella / functions.php
Created March 26, 2017 10:06
Mở link bình luận trong tab mới
//*Open comment links in new tab
function comment_links_in_new_tab($text) {
$return = str_replace('<a', '<a target="_blank"', $text);
return $return;
}
add_filter('get_comment_author_link', 'comment_links_in_new_tab');
add_filter('comment_text', 'comment_links_in_new_tab');
@Kaiderella
Kaiderella / style.css
Created March 25, 2017 04:38
Avatar hình tròn
.avatar {
border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
}