Skip to content

Instantly share code, notes, and snippets.

View manh-trinhquoc's full-sized avatar
🏠
Working from home

Trinh Quoc Manh manh-trinhquoc

🏠
Working from home
  • Ha Noi, Vietnam
View GitHub Profile
@manh-trinhquoc
manh-trinhquoc / xml-wp-whitespace-fix.php
Created January 15, 2023 16:31
fix loi xml sitemap
<?php
/*
Wordpress leading whitespace fix
================================
Ever got the infamous "xml declaration not at start of external
entity" error instead of your RSS feed when using Wordpress?
Well, you're not alone. I've spent couple hours tracking down
which of the active Wordpress plugins/themes broke my RSS feed.
@manh-trinhquoc
manh-trinhquoc / MySql-5.6-installation guide.md
Created February 17, 2022 03:38 — forked from vinodpandey/MySql-5.6-installation guide.md
Install MySQL 5.6.xx on Ubuntu 18.04 & Ubuntu 20.04

MySQL Download URL

https://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.46-linux-glibc2.12-x86_64.tar.gz

Open the terminal and follow along:

  • Uninstall any existing version of MySQL
sudo rm /var/lib/mysql/ -R

Note when learning docker

@manh-trinhquoc
manh-trinhquoc / utf8mb4.cnf
Created March 4, 2021 18:36 — forked from xeoncross/utf8mb4.cnf
Correctly set MySQL to use utf8 on ubuntu
[client]
default-character-set = utf8mb4
[mysql]
default-character-set = utf8mb4
[mysqld]
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

Configure Virtual Hosts

C:\xampp\apache\conf\extra\httpd-vhost.conf

<VirtualHost *:80> DocumentRoot "C:/xampp/htdocs/" ServerName localhost <VirtualHost *:80> DocumentRoot "C:/xampp/apps/wordpress/htdocs" ServerName wordpress.localhost

@manh-trinhquoc
manh-trinhquoc / 1-readme.md
Last active February 8, 2021 07:40
php snippet

php snippet

@manh-trinhquoc
manh-trinhquoc / .maintenance
Last active July 1, 2021 02:28
snippet hay dùng trong wordpress
<?php $upgrading = 1617634719; ?>
@manh-trinhquoc
manh-trinhquoc / 1-readme.md
Last active February 8, 2021 09:10
scss snippet

scss snippet