Skip to content

Instantly share code, notes, and snippets.

View robinbastien's full-sized avatar
Just a developer in a quarantined world

Robin Bastien robinbastien

Just a developer in a quarantined world
View GitHub Profile
mysql -u root -p
mysql> create user blog@localhost identified by 'password';
mysql> create database blog;
mysql> grant all on blog.* to blog@localhost;
mysql> exit;
/*!
* equalHeights jQuery Plugin
*/
(function($){
$.fn.equalHeights = function() {
var tallest = 0,
current = 0;
this.each(function(){
current = $(this).height();
if(current > tallest) {
function remove_dashboard_widgets() {
global $wp_meta_boxes;
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);
// unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);
// unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);
// unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_drafts']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']); // WordPress Blog
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']); // Other WordPress News
Redirect 301 /foo.html /bar.html
Redirect 301 /about.html /about
Redirect 301 /support /help