Is there a Firefox keyboard shortcut to clear the cache? - firefox

With the Firefox web developer toolbar I can select "Miscellaneous → Clear private data → Cache". Is there a way to do the same with a keyboard shortcut?
Edit: I am also using vimperator to drive Firefox with the keyboard; just found out that it's possible using: :emenu Extra.Web Developer.Miscellaneous.Clear Private Data.Cache.

I think Ctrl+Shift+Delete takes out all private data, including the cache. Heres a link that'll tell you how to set up specific options.

You can also reload and clear cache for a certain page with
Cmd + Shift + R
on a mac, or
Ctrl + F5
on a windows/linux machine.
(these are additions to the plain reload shortcuts Cmd+R / F5)

I use the web developer add-on to totally disable my cache on my development machine. That way you never have to worry about clearing your cache.

In Firefox is
CTRL + SHIFT + R
Source

For Mac OSX it is
Command + Shift + Delete
for all browsers (except Safari)

I guess
Ctrl + Shift + Delete
is not what you want?

You can try this combination:
ctrl + F5

What I do is go to
Tools > Options > Privacy > Show Cookies
then just keep the Show Cookies window open.
It stays minimized while on your web page so you just have to hit
Maximize > Remove All cookies

Related

How to do block-comments in Google Colab on a Mac with a non-American keyboard?

I want to do block-comments in Colab using a Mac laptop (Big Sur), so I had a look here:
Is it possible to do block-comments in Google Colab?
Ctrl+/ does not work for me, so I follow jakevdp's advice:
If this does not work for you, check Tools->Keyboard Shortcuts and search for "Comment Current Line" to see what the shortcut is within your current settings.
Here's the output:
This leads to several problems:
The shortcut I need is one of the very few that can't be customized.
On my non-American keyboard, I need to press Shift+7, to get /
On the Mac, ⌘ + Shift + 7 is bound to the Help menu: How to use the macOS Help menu
To summarize, every time I try to comment a block of code, the Help menu opens instead. Is there any workaround for this?
PS: I tried all the other answers to Is it possible to do block-comments in Google Colab?, and they didn't work.
I found a simple solution. If the standard solution ⌘ + Shift + 7 doesn't work for you (like it didn't for me)....just use the / from the numeric keypad!
⌘ + numeric keypad 7 worked great for me.

How to prevent VS Code to remember terminal sessions

New version of VS Code started restoring Terminal sessions from the last time it was used. How to override that behavior?
This config in settings.json solved it:
"terminal.integrated.persistentSessionReviveProcess": "never"
So your settings are visible in JSON or UI format. For JSON #Nenad Milosavljevic solution should do the job.
I'll explain the UI one.
Open command palette (CTRL + SHIFT + P)
Type user settings and select the option
Select Features > Terminal > scroll down a little where you'll find the option and then uncheck the option "Integrated: Enable Persistent Sessions"
Close the tab and you're done.
Disable this setting:
Terminal > Integrated: Enable Persistent Sessions
It is enabled by default.

Does Firefox have an offline throttling mode/disable network feature?

I'm doing some front end work and I need to test how the program reacts when it loses a network connection. Firefox has a "Work offline" setting but that drops the connection for every tab -- I only want to disable the network connection for a single tab. Chrome has this with an "Offline" checkbox in the Network tab of the devtools that makes this really convenient.
This is what this feature looks like in Chrome:
The best solution I've found is to use "Request Blocking". Add * to match all requests. It also blocks local requests.
~~As of at most v97, work offline can be found by clicking File > Work Offline in the top left of the window. If you do not have the File menu, try pressing alt to make it appear.
As commentators note, this apparently allows requests to localhost, and will set all of your tabs to offline mode.~~
Greg has a much better answer
Yes we do have the option in firefox
version: 65.01
Click on the setting button(hamburger)
Then click the web developer option
Then click on the work offline option
For at least Firefox v92 (and probably previous ones) offline mode can be found by pressing ALT to bring up the File/Edit/View etc menus, then File > Work Offline.

How can I paste from the clipboard?

Google cloud shell isn't letting me 'paste' what is in my clipboard.
I have tried using the 'send command' ctrl+v option, as well as tried with root.
I found it works with IE! Gives a message to allow clipboard access to the page (but a one time thing).
What am I missing?
Turns out this is not Chrome but my system settings. I tried on a different system and it worked!
For me, it does not work on Firefox version 60.2 on Linux (openSuSE Leap 15). But it works on Chromium 69.0.3497.100 (open SUSE Build) 64 bits. I believe it will also work with Google Chrome.
Very important!!! Ctrl + v does not work! You must use Ctrl + Shift + v to paste to Google Cloud Shell using Chromium.
Note 1: Ctrl + Shift + v did not work for me in Firefox
Note 2: I found a config option on top left of cloud shell frame, in the shape of a tool. There you can select Terminal Preferences > Copy configuration and will be an option to select Copy and Paste with Ctrl+Shift+C/V. Try enabling it if Ctrl + Shift + v does not work for you.
Note 3: Shift + Insert works for me on Chromium, but not on Firefox.
In Firefox with this enabled or disabled copy and paste does not work. On Chromium it worked with this option enabled and disabled.
Use Shift+Insert instead of Ctrl+V.
I have a Firefox and had the same problem with Google Cloud Shell. I tried Ctrl+V, Ctrl+Shift+V, Shift > Right Click > Paste and Terminal Preferences > Copy Configuration > Copy and Paste with Ctrl+Shift+C/V.
It turned out the problem was connected with security settings of my Firefox. The option dom.event.clipboardevents.enabled had to be set back to default true.
ctrl+c and ctrl+v will work. Simple!!!
Turns out this is not even chrome buy my system settings. I tried on a different system and it worked with even Chrome!

Can I make a shortcut to specify a switched tab in Mac OSX Terminal?

In Chrome, it's possible to switch tabs with cmd + tab_number, like cmd + 3 to go to the third tab. Is there anyway to specify this for Terminal on a Mac running Mavericks?
I know how to change a shortcut via System Preferences, but I'm not the exact name of the Menu Command I should add, if it's even possible.
You can Shift + Command + Left or Right Arrow to cycle through tabs:
Shift ⌘ ←→
or
⌘{}
If you want to use a specific # as you mentioned then you'll have to script it or use windows instead of tabs.

Resources