Skip to content

Instantly share code, notes, and snippets.

Avatar
😋
Coding

Khoa Hoang htxuankhoa

😋
Coding
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 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;
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
You can’t perform that action at this time.