Find out which mouse button is which with:
xev | grep -i button
On my mouse, 6 and 7 are Back and Forward buttons.
Then add this lines ~/.xbindkeysrc
## Logitech mouse Back and Forward
| Conversation with raidboxes® | |
| Started on May 15, 2025 at 04:06 PM Europe/Berlin time CEST (GMT+0200) | |
| --- May 15, 2025 --- | |
| 04:06 PM | Customer: Hi Raidboxes! | |
| What has happened to the 'WebP support' option? It is turned on, as it always was, but it seems to me that it no longer works. | |
| 04:07 PM | Customer: For example, if I try this JPEG file (https://www.mysite.com/wp-content/uploads/2022/08/image.jpg), it is delivered as a JPEG, not as an AVIF or WebP file, although the AVIF and WebP files are in the right place: https://www.mysite.com/wp-content/uploads/2022/08/image.jpg.webp and https://www.mysite.com/wp-content/uploads/2022/08/image.jpg.avif | |
| 04:07 PM | Customer: Could you do something on the back end to restore transparent support for modern image formats? |
Find out which mouse button is which with:
xev | grep -i button
On my mouse, 6 and 7 are Back and Forward buttons.
Then add this lines ~/.xbindkeysrc
## Logitech mouse Back and Forward
Disable Alt+F1, Alt-F7, etc, because I need them in Double Commander as shortcuts.
Read more: http://askubuntu.com/questions/126817/how-to-disable-alt-f1-alt-f2-shortcuts
gsettings set org.gnome.desktop.wm.keybindings panel-main-menu "[]"
gsettings set org.gnome.desktop.wm.keybindings begin-move "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up "[]"
This should be executed only once. It's remembered forever.
| #!/usr/bin/env bash | |
| # | |
| # Install MySQL server | |
| # | |
| # Author: | |
| # Colovic Vladan, First Beat Media | |
| # | |
| download_dir=/srv/tmp/download | |
| download_url=https://dl.dropbox.com/u/191471/FirstBeatMedia/mysql-5.6.11-debian6.0-x86_64.deb |
Using variables, also called repeated nodes in YAML, but in JSON variant of YAML format. I'm using this for the whole subtree. Great!
{
"original": &VAR
{
"x": "Value x",
"subtree":
{
"y": "Value Y"
Recursively convert text files from DOS to Unix line-endings
Type in Windows command line:
for /r "miscellaneous" %x in ("*") do @dos2unix --d2u --verbose --skipbin "%x"
Linux Mint has something called MintMenu button that has a functionality similar to the Start button in Windows.
To define keyboart shortcut for this button, we need to right-click on the MintMenu button on the panel
and from the dropdown to click on Preferences. Change the keyboard shortcut there.
Log out and back in, to see effects of changes made.
Batch file vagrant.bat sets both GEM_HOME and GEM_PATH environment variables.
It would be nice of him to restore old values after finishing it's work.
Something like:
:: Save variables
SET "GEM_HOME_SAVED=%GEM_HOME%"
SET "GEM_PATH_SAVED=%GEM_PATH%"| :: Make --no-ri --no-rdoc default gem install options (without documentation) | |
| :: Possible variations: | |
| :: For every user: | |
| :: echo gem: --no-ri --no-rdoc > "%PROGRAMDATA%\gemrc" | |
| :: Only for you | |
| :: echo gem: --no-ri --no-rdoc >> "%USERPROFILE%\.gemrc" | |
| :: | |
| :: Note: In Windows, %PROGRAMDATA% is /etc on Linux | |
| :: | |
| :: But finally, the best way to do it. See: http://stackoverflow.com/a/7662245/1579985 |
| :: Download ZeroMQ for Windows [Installers for Microsoft Windows](http://www.zeromq.org/distro:microsoft-windows) | |
| :: Use only 32bit install, even on 64bit Windows and only 2.2.0 version (not 3.x) | |
| :: Make sure you're not using the 3.x beta version of zeromq - you must use the official 2.x libs | |
| ZeroMQ-<whatever>.exe /S /D=c:\tools\zeromq && echo ZeroMQ for Windows installed | |
| :: DLL must be renamed | |
| copy c:\tools\zeromq\bin\libzmq-v100-mt.dll c:\tools\zeromq\bin\libzmq.dll | |
| :: Install Ruby Gem zmq |