git config --global user.name "Your Name Comes Here"
git config --global user.email you@yourdomain.example.com
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
git config --global core.editor vim
A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.
Jump to
Redirects behave weirdly in Chrome
Chrome (un)helpfully caches redirects sometimes.
Try using an incognito window and the behaviour should make more sense.
Try using an incognito window and the behaviour should make more sense.
Moving a wordpress e-commerce site
- UPDATE wp_options SET option_value="http://newsite/new_dir" WHERE option_value="http://oldsite/old_dir"; -- this fixes most of the site
- UPDATE wp_options SET option_value="http://newsite/new_dir" WHERE option_value="http://oldsite/old_dir"; -- this fixes the pagination for the e-commerce plugin.
- In .htaccess:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC,OR]
RewriteCond %{REQUEST_URI} / [NC]
RewriteRule ^(.*)$ /new/$1 [L,QSA]
Importing with Wordpress
If you get a 500 Internal Server Error while importing a large file in Wordpress:
- Just keep refreshing the page and re-submitting the data.
- Items will continue to be added (and downloaded) a few at a time, and no item will be added twice.
Subscribe to:
Posts (Atom)