Skip to content

Instantly share code, notes, and snippets.

😋
Coding

Khoa Hoang htxuankhoa

😋
Coding
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
View wordpress_snippets.php
// Remove x-pingback header tag
function remove_x_pingback($headers)
{
unset($headers['X-Pingback']);
return $headers;
}
add_filter('wp_headers', 'remove_x_pingback');
// ===
View linux.md

List of Linux commands often use

Change owner & group

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

Tar

c : create
View symfony3.md
@htxuankhoa
htxuankhoa / update_commands.sh
Last active Jun 22, 2018
Summary all update/upgrade commands
View update_commands.sh
$ 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 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;
You can’t perform that action at this time.