Mouse wheel + Shift key = horizontal scrolling
On Ubuntu, you can scroll horizontally with your mouse wheel when holding the Shift key while scrolling.
It does not work in all applications, but many support it.
Related cards:
Insert an ndash and other special characters using the Compose key on Linux
Although you can access many symbols using the AltGr key you may be missing some, like the en-dash (–) or em-dash (—). You can use a compose key for them instead...
Virtual scrolling: A solution for scrolling wide content on desktops
I recently built a screen with a very high and wide table in the center. This posed some challenges:
- Giving the table a horizontal scroll bar is very unergonomic, since the scrollbar might be far off screen.
- Making the whole page scrollable lo...
How to remap your caps lock to a second Escape key
When have you last used your caps lock key? On purpose? Right...
In Gnome
Make it an additional ESC key by going to System -> Preference -> Keyboard -> Layouts -> Options -> CapsLock key behavior and select "Make CapsLock an additional ESC"....
IE11: Trigger native mouse events with Javascript
The attached Coffeescript helper will let you create mouse events:
$element = $('div')
Trigger.mouseover($element)
Trigger.mouseenter($element)
Trigger.mousedown($element)
Trigger.mouseup($element)
Trigger.mouseout($element)
Trigger.mouseleav...
How to force horizontal panel layout for Chrome
Chrome's developer tools automagically choose vertical or horizontal panel layout, based on their width. You can disable that magic.
In the developer tools, klick the cogwheel icon (or press F1
when focusing the dev tools) to open the settings ...
How to use Git on Windows with PuTTY
- Get "PuTTY Link" and "Pageant" (an SSH key agent) from the PuTTY download page.
- Run
pageant.exe
, find its icon inside your system tray and add your SSH key. - Open up a `c...
Workflow: How to use a key management service to encrypt passwords in the database
This is an extract from the linked article. It shows an approach on how to implement encrypted passwords with the AWS Key Management Service (KMS).
For most applications it's enough to use a hashed...
Ruby: Find a hash key given it's value
To find a hash key by it's value, i.e. reverse lookup, one can use Hash#key
. It's available in Ruby 1.9+.
Hash#key(value) → key
# => Returns the key of the first occurrence of a given value.
...
Find out your SSH key's fingerprint (e.g. to authenticate on GitHub)
If you want to know your public key's fingerprint, do this:
ssh-keygen -lf ~/.ssh/my.key.pub
This may be necessary to authenticate your key on GitHub because of [recent events](https://github.com/blog/1068-public-key-security-vulnerability-a...
Use the ALT key in a VirtualBox Windows VM
In Ubuntu your ALT key is locked when you're working in VirtualBox. There are two workarounds for this:
- Press the Windows key in addition to the ALT key
- Run the attached registry file and restart Windows. Your left Windows key is now the ALT ...