Skip to content

Instantly share code, notes, and snippets.


Khoa Hoang htxuankhoa

Block or report user

Report or block htxuankhoa

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

List of Linux commands often use

Change owner & group

$ sudo chown -R user:group /path/to/directory/or/file


c : create
View get_tables_size.sql
SELECT table_schema as 'Database Name',
sum( data_length + index_length ) as 'Size in Bytes',
round((sum(data_length + index_length) / 1024 / 1024), 4) as 'Size in MB'
FROM information_schema.TABLES
GROUP BY table_schema;
htxuankhoa /
Last active Jun 22, 2018
Summary all update/upgrade commands
$ sudo composer global self-update
$ sudo composer global update # update all packages
$ composer global show -i # show installed packages
$ sudo composer global update "laravel/installer"
npm i -g npm@latest
npm -g update # update all global packages
npm i -g cordova
npm i -g ionic@latest
npm i -g @angular/cli
View wordpress_snippets.php
// Remove x-pingback header tag
function remove_x_pingback($headers)
return $headers;
add_filter('wp_headers', 'remove_x_pingback');
// ===
You can’t perform that action at this time.