blob: 02baec8d6d80b27f8adaf04d0723f29213a1d63b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
############
Various tips
############
Read vk.com without javascript on Firefox
-----------------------------------------
When javascript is disabled, vk.com automagcally redirects you to a page saying
"Your browser is out of date" instead of rendering the actual content, which it
able to do even without javascript.
To prevent the redirect, go to ``about:config`` and set the
``accessibility.blockautorefresh`` setting to ``true``.
[#superuser.com-1]_
Attach to tmux session without changing DISPLAY env var
---------------------------------------------------------
Sometimes I ssh into my PC from another one and attach to running tmux session,
do the work, disconnect and forget about it. Tut then after a while I notice
that I can't start graphical programs from the terminal, or to be precise, from
the shell sessions running in the tmux panes that have been created after I did
attach to tmux from under the SSH session.
I found the solution in the man page of ``tmux(1)``::
If -E is used, the update-environment option will not be applied.
So just use this command to attach and the ``DISPLAY`` environment variable will
be untouched in tmux session::
tmux a -E
Footnotes
---------
.. [#superuser.com-1] `Prevent automatic redirects in Firefox / superuser.com <https://superuser.com/questions/874819/prevent-automatic-redirects-in-firefox>`_
|