COMPRESS_CACHE_BACKEND = 'persistent'
COMPRESS_STORAGE = 'compressor.storage.GzipCompressorFileStorage'
COMPRESS_JS_FILTERS = ['compressor.filters.closure.ClosureCompilerFilter']
COMPRESS_CLOSURE_COMPILER_BINARY = '/usr/bin/java -jar ' + os.path.join(PROJECT_DATA_DIR, 'compiler.jar')
COMPRESS_CLOSURE_COMPILER_ARGUMENTS = '--language_in=ECMASCRIPT5'

COMPRESS_CSS_FILTERS = [
    'compressor.filters.css_default.CssAbsoluteFilter',
    'compressor.filters.yui.YUICSSFilter'
]
COMPRESS_YUI_BINARY = '/usr/bin/java -jar ' + os.path.join(PROJECT_DATA_DIR, 'yuicompressor-2.4.8.jar')
COMPRESS_DATA_URI_MAX_SIZE = 8192
$ ssh-keygen -t rsa
$ ssh-copy-id -i ~/.ssh/id_rsa.pub root@hostname
$ xinput --set-prop 'pointer:Laview Technology Mionix Avior 7000' 'libinput Accel Speed' -1
$ lsof -c Telegram
COMMAND   PID USER   FD      TYPE             DEVICE SIZE/OFF     NODE NAME
Telegram 8135 user  cwd       DIR                8,2     4096  3542036 /home/user/.TelegramDesktop
Telegram 8135 user  rtd       DIR                8,2     4096        2 /
Telegram 8135 user  txt       REG                8,2 74673800  3560321 /home/user/Telegram/Telegram
$ lsof -i :postgres
COMMAND    PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
postgres   648 postgres    3u  IPv6  19129      0t0  TCP localhost:postgresql (LISTEN)
postgres   648 postgres    6u  IPv4  19130      0t0  TCP localhost:postgresql (LISTEN)
python3.5 7722     user    3u  IPv6 333314      0t0  TCP localhost:56124->localhost:postgresql (ESTABLISHED)
postgres  7725 postgres   11u  IPv6 332216      0t0  TCP localhost:postgresql->localhost:56124 (ESTABLISHED)
$ lsof +D /var/log/
COMMAND   PID     USER   FD   TYPE DEVICE SIZE/OFF    NODE NAME
cupsd     586     root    5u   REG    8,2     1281 3416340 /var/log/cups/access_log
cupsd     586     root    6u   REG    8,2      286 3416361 /var/log/cups/error_log
cupsd     586     root    7u   REG    8,2        0 3412984 /var/log/cups/page_log
rsyslogd  596     root    6w   REG    8,2   372719 3407978 /var/log/syslog
rsyslogd  596     root    7w   REG    8,2  1568041 3409367 /var/log/daemon.log
$ lsof +D /var/log/ | awk 'NR>1{print $9}' | sort | uniq -c | sort -h
      1 /var/log/auth.log
     ...
     36 /var/log/postgresql/postgresql-9.6-main.log
$ lsof +d /var/log
COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF    NODE NAME
rsyslogd 596 root    6w   REG    8,2   376335 3407978 /var/log/syslog
rsyslogd 596 root    7w   REG    8,2  1571322 3409367 /var/log/daemon.log
$ libreoffice --headless --invisible --convert-to pdf SamplePPTX.pptx
$ libreoffice --headless --invisible --convert-to pdf demo.docx
#!/usr/bin/env bash
free
sync
echo 3 > /proc/sys/vm/drop_caches
swapoff -a
swapon -a
free
$ git config --global credential.helper 'cache --timeout=3600'
# nano /etc/lightdm/lightdm.conf
...
> В секции [SeatDefaults]
xserver-command=X -nocursor
# nano /boot/config.txt
dtparam=audio=on
hdmi_ignore_cec_init=1
disable_overscan=1
hdmi_ignore_edid=0xa5000080
hdmi_group=2
hdmi_mode=87
hdmi_timings=2560 1 64 64 96 1080 1 3 10 31 0 0 1 60 0 185580000 8
config_hdmi_boost=7
framebuffer_width=2560
framebuffer_height=1080
max_framebuffer_width=2560
max_framebuffer_height=1280
hdmi_pixel_freq_limit=400000000
avoid_pwm_pll=1
gpu_mem=256
user nobody
group nogroup
port 1771
proto udp
dev tun

dh dh2048.pem
ca ca.crt
cert vpn_server.crt
key vpn_server.key
tls-auth ta.key 1
auth SHA512
mode server
tls-server

server 10.8.0.0 255.255.255.0

ifconfig-pool-persist ipp.txt

push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 193.183.98.154"
push "dhcp-option DNS 5.135.183.146"

client-to-client
keepalive 10 120

cipher AES-256-CBC
comp-lzo
persist-key
persist-tun

verb 5
status /var/log/openvpn-status.log
log /var/log/openvpn.log
tls-client
remote replace.me 1771
proto udp
dev tun0
resolv-retry infinite
nobind

user nobody
group nogroup

persist-key
persist-tun

ca ca.crt
cert home1.crt
key home1.key
tls-auth ta.key 0
remote-cert-tls server
cipher AES-256-CBC
comp-lzo

verb 5
auth SHA512

pull
# cat /etc/NetworkManager/system-connections/vpn_connection 
[connection]
id=trash
uuid=1c6cce35-3849-4d2f-ad9e-b98b2f1d7a09
type=vpn
permissions=

[vpn]
auth=SHA512
ca=/home/user/openvpn/ca.crt
cert=/home/user/openvpn/home1.crt
cert-pass-flags=1
cipher=AES-256-CBC
comp-lzo=adaptive
connection-type=tls
dev-type=tun
key=/home/user/openvpn/home1.key
mssfix=no
port=1771
proto-tcp=no
remote=replace.me
remote-cert-tls=server
remote-random=no
ta=/home/user/openvpn/ta.key
ta-dir=0
service-type=org.freedesktop.NetworkManager.openvpn

[ipv4]
dns-search=
method=auto

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=auto
#!/usr/bin/env bash

ids=$(xinput list | grep pointer | sed -n 's/.*id=\([0-9]*\).*/\1/p')

for device_id in $ids
do
    props=$(xinput list-props "$device_id" | grep Accel | sed -n 's/.*(\([0-9]*\)).*/\1/p')

    for prop_id in $props
    do
        echo "DISABLE ACCELERATION: xinput set-prop $device_id $prop_id -1"
        xinput set-prop $device_id $prop_id -1
    done
done
ssh -C2TNv -D 0.0.0.0:8080 user@hostname
# lsof -i -a -c ktorrent
# lsof -i -a -p `pidof ktorrent`
COMMAND    PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
ktorrent 28884 user   18u  IPv6 1024934      0t0  TCP *:6881 (LISTEN)
ktorrent 28884 user   19u  IPv6 1024977      0t0  UDP *:7881 
ktorrent 28884 user   20u  IPv4 1024978      0t0  UDP *:7881