How to find Chrome cache on Mac
export YOU=your_username
export PROFILE=Default
mkdir ~/chrome_images
cp /Users/$YOU/Library/Caches/Google/Chrome/$PROFILE/Cache/* ~/chrome_images/
for k in `/bin/ls`; do mv $k $k.jpg; done # rename all files to jpg
open ~/chrome_images
# Now browse the image folder and find the images you want
# More sophisticated renaming example:
if [[ `file $filename | grep JPEG` ]]; then mv $filename{,.jpg} ; fi
A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.
Jump to
Showing posts with label cache. Show all posts
Showing posts with label cache. Show all posts
Git cache password over https
error: cannot run git-credential-cache--daemon: No such file or directory
fatal: unable to start cache daemon: No such file or directory
# fix:
wget http://example.com/git-daemon-1.7.12.4-0.7.1.x86_64.rpm
sudo rpm -i git-daemon-1.7.12.4-0.7.1.x86_64.rpm
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=28800' # 8 hours
fatal: unable to start cache daemon: No such file or directory
# fix:
wget http://example.com/git-daemon-1.7.12.4-0.7.1.x86_64.rpm
sudo rpm -i git-daemon-1.7.12.4-0.7.1.x86_64.rpm
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=28800' # 8 hours
(source)
Android: Don't refresh page when no signal
chrome://flags/#enable-offline-mode
and
chrome://flags/#enable-offline-load-stale-cache
Unfortunately this doesn't work anymore - those flags were experimental.
In fact I've switched to Firefox (which is also much faster on Android) because Chrome tabs kept annoyingly reloading when the phone had no signal.
and
chrome://flags/#enable-offline-load-stale-cache
Unfortunately this doesn't work anymore - those flags were experimental.
In fact I've switched to Firefox (which is also much faster on Android) because Chrome tabs kept annoyingly reloading when the phone had no signal.
Code works on one environment but not another
What can differ between environments? Check the following:
* Your code (obviously)
* Versions of other dependent packages - both in-house and third-party
* Versions of other installed in-house modules
* Versions of other Perl CPAN modules
* Processes which didn't die when you restarted the app
* Data in the database
* Number of rows in tables, i.e. is some limit being hit?
* Schema of the database
* Browser cache
* Server side web cache
* Files on disk, e.g. cached print documents
(source: a decade's experience building software)
* Your code (obviously)
* Versions of other dependent packages - both in-house and third-party
* Versions of other installed in-house modules
* Versions of other Perl CPAN modules
* Processes which didn't die when you restarted the app
* Data in the database
* Number of rows in tables, i.e. is some limit being hit?
* Schema of the database
* Browser cache
* Server side web cache
* Files on disk, e.g. cached print documents
(source: a decade's experience building software)
How to talk to memcached
- telnet to the server (or localhost) on the right port
- type "flush_all" to invalidate the whole cache
- type "delete [key]" to invalidate a particular item
See also the memcache protocol
Subscribe to:
Posts (Atom)