While trying to install a wordpress theme that was packaged as an .rar archive I got the following error:
The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
This is because I’m trying to unpack a .rar archive and the server doesn’t have rar archive support installed, however you can get around this issue quite easily.
All you need to do is unpack the .rar archive and re-pack it as a .zip archive and re-try the upload. Everything will work as expected after that.
Git – delete a local branch:
git branch -d some_example_local_branch
Git – delete/remove a remote branch:
git push origin : some_example_remote_branch
In case of error after trying to remove remote branch, run:
git fetch -p
This is what the error message would look like:
error: unable to push to unqualified destination: some_example_remote_branch
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.
error: failed to push some refs to 'git@repository_name'
and this is caused due to the fact that perhaps anyone else has already deleted the branch and you need to synchronize your branch list.
In order to install Sublime Text 3 on Ubuntu, we first need to add a repository to our sources.
Before we add the required repository to our sources, we need to make sure to have the add-apt-repository package available. If you don’t start with step1, otherwise proceed to step2.
Step 1: install the add-apt-repository packages providing the command:
for Ubuntu version <= 12.04
sudo apt-get install python-software-properties
for Ubuntu version >= 12.10
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
First the repository is added, then a update to find the new packages is made and finally you’re installing sublime text 3.
This is how you clear your cache and cookies on all major browsers without navigating through the entire menu and options to find the caching section.
Typically on most Firefox versions the caching & cookies section is under:
Firefox Menu > Options > Options > Privacy Tab > clear your recent history (link) but that’s too many clicks.
Customize and Control Google Chrome button > Tools > Clear Browsing data.
In Internet Explorer:
Tools > Internet Options > General tab > Browsing history section > Delete
So, here’s the only Windows keyboard shortcut you need: CTRL+SHIFT+DELETE – this brings up the Clear All History window on all browsers.
If you’re running Windows on a mac pc, then the shortcut would be: CTRL+SHIFT+FN+DELETE – same result as above.
The CTRL+SHIFT+DELETE shortcut works on all versions of Firefox, perhaps most Internet Explorers and Google Chrome.
MRI – Matz’s Ruby Interpreter
1. We need curl on a fresh install if it so happens that it is not present:
sudo apt-get update
sudo apt-get install curl
2. Download and run the RVM installation script
2.1 Installing the stable release version:
user$: curl -sSL https://get.rvm.io | bash -s stable
2.2 To get the latest development state:
user$: curl -sSL https://get.rvm.io | bash
3. Reopen terminal and run:
rvm install ruby-2.1.0
or paste this in the current terminal and then install ruby:
4. If you’re getting the “RVM is not a function” message you need to enable login shell (optional):
With the the terminal window open go to:
Terminal > Edit > Profile Preferences > Title and Command > Run command as a login shell (make sure this check-box is enabled)