Dock station D3100

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"

linux @blog

Ubuntu Dive In

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

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>


Data source properties -> Options tab -> Object filter: collation:-.*

linux @blog

Network Tab fast image save

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;
    })(x, 'image/png');  // can be changed type

c. Save links in file

d. wget -i file

js #linux @blog

Slack Desktop Dark Theme

  1. Use command to find slack folder: find / -name app.asar.unpacked -type d

  2. Append at the end of this file: app.asar.unpacked/src/static/ssb-interop.js

    document.addEventListener('DOMContentLoaded', function() {
           url: '',
           success: function(css) {
  3. Restart App

@blog #linux

LibreOffice Calc Hints

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.

linux @blog

Message reminder

vi /path/to/

PID=$(pgrep gnome-session)
dbus=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-)
notify-send -u critical "$1"


0 * * * * /path/to/ "my message"

linux @blog

Ubuntu Service Autostart

vi /etc/systemd/system/mongodb.service

Description=High-performance, schema-free document-oriented database

ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf


systemctl start mongodb systemctl enable mongodb

vi /etc/systemd/system/elastic.service

Description=Port forwarding for 9200

ExecStart=/usr/bin/ssh -NTC -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -o StrictHostKeyChecking=no -R 9201:


systemctl start elastic

systemctl enable elastic

linux @blog



Capsule Servers

Lost connection to server.