In order to remove CTRL SHIFT LEFT shortcut in ubuntu 18 LTS, which is used by default in ubuntu to switch workplaces, you need to run following commands:

gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "[]"

this will eliminate problem in phpstorm and intellij idea, that prevents “Move Caret to previous word” to work properly.

To show full array difference in diff viewer of phpunit in phpstorm (<Click to see difference>) instead of Array (…)

for PHPUnit’s assertEquals and assertSame

change in vendor

\SebastianBergmann\Exporter\Exporter::shortenedExport

to

        if (is_array($value)) {
//            return sprintf(
//                'Array (%s)',
//                count($value) > 0 ? '...' : ''
//            );
        }

comment out changes above

around line: 125
for PHPUnit v7

to achieve same effect in assertSame:
in file:
\SebastianBergmann\Exporter\Exporter::recursiveExport
around line 251

 if (\is_array($value)) {
//            if (($key = $processed->contains($value)) !== false) {
//                return 'Array &' . $key;
//            }
//
//            $array  = $value;
//            $key    = $processed->add($value);
//            $values = '';
//
//            if (\count($array) > 0) {
//                foreach ($array as $k => $v) {
//                    $values .= \sprintf(
//                        '%s    %s => %s' . "\n",
//                        $whitespace,
//                        $this->recursiveExport($k, $indentation),
//                        $this->recursiveExport($value[$k], $indentation + 1, $processed)
//                    );
//                }
//
//                $values = "\n" . $values . $whitespace;
//            }
//
//            return \sprintf('Array &%s (%s)', $key, $values);
        }

 

xrandr     --output DP-1 --mode 3840x2160 --pos 0x0 --scale 1x1 --auto \ 
--output HDMI-1 --mode 1920x1200 --pos 3840x0 --auto --panning 3840x2400+3840+0 --scale 2.0x2.0 \
--fb 7680x2400

 

# setting UI scaling:

gsettings set org.gnome.desktop.interface text-scaling-factor 1.7

 

https://devtalk.nvidia.com/default/topic/891207/-355-11-358-09-viewportin-on-2nd-monitor-results-in-garbled-display-for-values-over-3211×1800

https://wiki.archlinux.org/index.php/HiDPI

https://unix.stackexchange.com/questions/377901/xrandr-scale-2×2-for-multi-display-4k-hidpi-and-full-hd-mix-blurred-output

https://askubuntu.com/questions/968443/nvidia-drivers-unable-to-check-force-full-composition-pipeline

 

https://devtalk.nvidia.com/default/topic/1027345/linux/why-cannot-i-enable-drm-kernel-mode-setting-/

# use scroll to move between windows in dock
gsettings set org.gnome.shell.extensions.dash-to-dock scroll-action 'cycle-windows'

# separate / isolate apps between screens
gsettings set org.gnome.shell.extensions.dash-to-dock isolate-monitors true

other options when clicking on dock icon

minimize on dock click gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'

'skip'
'minimize'
'launch'
'cycle-windows'
'minimize-or-overview'
'previews'
'quit'

you can list available options using

gsettings range org.gnome.shell.extensions.dash-to-dock click-action

 

sudo iwlist scan

sudo systemctl restart NetworkManager

alias wifi-refresh='sudo iwlist scan && sudo systemctl restart NetworkManager'

or make it faster by picking wlan interface

#first find name of wlan interface running

ifconfig

# and run scan:

sudo iwlist wlp6s0 scan

# where `wlp6s0` is name of wlan interface from `ifconfig`

alias wifi-refresh='sudo iwlist wlp6s0 scan && sudo systemctl restart NetworkManager'

 

in:

gedit ~/.bashrc

 

export HISTFILESIZE=
export HISTSIZE=
export HISTTIMEFORMAT="[%F %T] "
export HISTFILE=~/.bash_eternal_history
PROMPT_COMMAND="history -a; $PROMPT_COMMAND"

before make copy of bash history

cp ~/.bash_history ~/.bash_history_copy

 

 

find ./src -type f  -size -100000c  | sim_text -pit 75

Take note! Above similarity comparison is limited to 100k bytes in command above. This is due to performance restrictions. If you include some big text files in similarity comparison it would take very long time. So you need to exclude those files.

You can also reduce similar files search to specific file type for example:

find ./src -type f -name '*.php'  | sim_text -pit 75

this would limit similarity search only to *.php files

to install sim_text command:

sudo apt install similarity-tester