How To Remove a Package Without the Dependencies (yum/rpm)

Author: , January 9th, 2018

To remove a specific package without its dependencies use rpm: 1 2 rpm -qa | grep pecl rpm -e –nodeps php55-pecl-jsonc php55-pecl-jsonc-devel rpm -qa | grep pecl rpm -e –nodeps php55-pecl-jsonc php55-pecl-jsonc-devel As always, YMMV!

How To Remove 802.1X Profiles in MacOSX Lion

Author: , August 22nd, 2013

In Terminal: 1 sudo mv /Library/Preferences/SystemConfiguration/ /Library/Preferences/SystemConfiguration/ sudo mv /Library/Preferences/SystemConfiguration/ /Library/Preferences/SystemConfiguration/ Then reboot. YMMV… This is why I am so upset with Apple these days – they constantly “dumb-down” MacOSX, removing features to “protect” the innocent public from harming themselves with the click of a mouse. Perfectly reasonable advanced features that existed in 10.6.8 are […]

How To Delete a Branch from a Remote Repo in GIT

Author: , November 21st, 2012

Do it locally: 1 git branch -d yourBranchName git branch -d yourBranchName Deleted branch yourBranchName (was 340c10d). Do it remotely, and please note the : below! (replace origin with your repo, if different) 1 git push origin :yourBranchName git push origin :yourBranchName To – [deleted] yourBranchName

How To Fully Destroy jQuery UI Dialog Boxes

Author: , July 11th, 2011

I was having issues with jQuery UI dialogs being hidden and not fully removed. Had same issues with both native dialog and the dialogwrapper plugin. The following code would hide, but not fully remove the div, for whatever reason: 1 jQuery(this).dialog(’destroy’); jQuery(this).dialog(‘destroy’); So this is what I used instead: 1 jQuery(’#’; jQuery(‘#’; !! UPDATE: After […]

How To Remove An HTML Element By ID Using jQuery

Author: , April 12th, 2011

To remove the element with id equal to removeme: jQuery(“#removeme”).remove(); To remove the element with id equal to removeme only if it is empty: jQuery(“#removeme:empty”).remove(); To remove all empty DIVs: jQuery(“div:empty”).remove(); If it’s not empty, but has whitespace: if(jQuery.trim(jQuery(“#removeme”).text()) == “”) { jQuery(“#removeme”).remove(); } Original Post: