Artix impressions
- Openrc is sux because mpd and etc. Resolving by systemctl
- After upgrade - Chrome update problem in build
- After upgrade syslog-ng failing on boot
@blog #linux #arch
@blog #linux #arch
apt install xpra xvfb
git clone https://github.com/kaueraal/run_scaled.git
cd run_scaled/
cp run_scaled /usr/local/bin
chmod +x /usr/local/bin
run_scaled <yourapp>
@blog #linux #debian
install
sudo apt install zsh
make default shell zsh:
chsh -s $(which zsh)
oh my zsh:
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
copy plugins similar:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
all plugins enum:
plugins=(git zsh-autosuggestions zsh-syntax-highlighting fast-syntax-highlighting)
hardcode install powerlevel10k:
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
Set ZSH_THEME="powerlevel10k/powerlevel10k"
in ~/.zshrc
@blog #linux #ubuntu #debian
Apps
PHS 2019.1.4
DGP 2019.2.6 custom JDK
DGP 2019.3 + plugin Choose Runtime + 8u212-linux-x64-b1596.1
latte launcher
subl ~/.config/kwinrc
[ModifierOnlyShortcuts]
Meta=org.kde.lattedock,/Latte,org.kde.LatteDock,activateLauncherMenu
OR
kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key Meta "org.kde.lattedock,/Latte,org.kde.LatteDock,activateLauncherMenu"
qdbus org.kde.KWin /KWin reconfigure
@blog #linux #kde
Fix slowing CPU
sudo nano /etc/X11/xorg.conf.d/20-intel.conf
Section "Device"
Identifier "Intel Graphics"
Driver "Intel"
Option "AccelMethod" "sna"
Option "TearFree" "true"
Option "TripleBuffer" "true"
Option "MigrationHeuristic" "greedy"
Option "Tiling" "true"
Option "Pageflip" "true"
Option "ExaNoComposite" "false"
Option "Tiling" "true"
Option "Pageflip" "true"
Option "VSync" "false"
EndSection
Frontend build
sudo apt-get install nodejs
sudo apt-get install npm
sudo npm install gulp-cli -g
npm install
gulp all-build
Switch language
sudo apt-get install gnome-tweaks
gnome-tweaks
Keyboard & Mouse tab
Additional Layout Options button
Switching to another layout
Ctrl + Alt + Left/Right disable ubuntu
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "['']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "['']"
Linux + Nvidia
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
ubuntu-drivers devices
sudo apt install <recommended>
Datagrip
Data source properties -> Options tab -> Object filter: collation:-.*
a. Right click on an entry in the network log. Then select Copy All as HAR
b. In console:
x = [<<PASTE HERE>>]; // paste here copied HAR
(function(logObj, mime) {
var results = [];
logObj[0].log.entries.forEach(function (entry) {
if (mime && entry.response.content.mimeType !== mime) return;
results.push(entry.request.url);
});
console.log(results.join('\n'));
})(x, 'image/png'); // can be changed type
c. Save links in file
d. wget -i file
Use command to find slack folder: find / -name app.asar.unpacked -type d
Append at the end of this file: app.asar.unpacked/src/static/ssb-interop.js
document.addEventListener('DOMContentLoaded', function() {
$.ajax({
url: 'https://raw.githubusercontent.com/sandra1n/slack-night-mode/master/css/raw/black.css',
success: function(css) {
$("<style></style>").appendTo('head').html(css);
}
});
});
Restart App
@blog #linux
1-31/2 odd days
2-31/2 even days
@blog #linux
How to swap a column in Calc:
Select column B
Click anywhere in the highlighted area and drag the column. The mouse pointer should change to show the drag operation.
Before you release the mouse button, also press the Alt key. When the mouse pointer is at the left side of column A, release the mouse button.
Column B should be moved to the left of column A so that A and B are switched.