_$(date +%Y-%m-%d_%H%M%S)
$(date +%Y-%m-%d_%H%M%S)
_$(date +%Y-%m-%d_%H%M%S)
$(date +%Y-%m-%d_%H%M%S)
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://wiki.archlinux.org/index.php/HiDPI
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
alias copy='xclip -sel clip' sudo apt-get install xclip echo "alias copy='xclip -sel clip'" >> ~/.bashrc
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