Sunday, February 11, 2018

SublimeText3: Gcc build system and termiantor

create new build system subl3 ~/.config/sublime-text-3/Packages/User/gcc.sublime-build with the contents of { "shell_cmd": "g++ \"${file}\" -o \"${file_path}/${file_base_name}\"", "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", "working_dir": "${file_path}", "selector": "source.c, source.c++", "variants": [ { "name": "Run", "shell_cmd": "terminator -e 'gcc \"${file}\" -o \"${file_path}/${file_base_name}\" && \"${file_path}/${file_base_name}\";echo;echo; echo Press ENTER to continue; read line;exit; exec bash'" } ] } Based on

Thursday, February 08, 2018

Arch: dell inspiron 1545 Broadcom Limited BCM4312

Have to install this driver:
sudo pacman -S linux-headers broadcom-wl-dkms

Then after reboot wlp12s0 device was found: ip link
1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp9s0: mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 00:25:64:47:bd:bb brd ff:ff:ff:ff:ff:ff
3: wlp12s0: mtu 1500 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen
link/ether 00:22:5f:d3:14:d2 brd ff:ff:ff:ff:ff:ff

Tuesday, February 06, 2018

Arch: Wine and GPower

GPower 4.1 installs in wine 3.0 and runs, but freezes after executing calculations due to some problems with drawing the results's plot. To fix the freezing, need to install gdiplus and lib32-gnutls:
winetricks vcrun6 lib32-gnutls gdiplus
This fixes the freezes, although the plots can't be still seen.

Friday, February 02, 2018

Thursday, January 25, 2018

youtube-dl: download continue playlist

youtube-dl --download-archive downloaded.txt --no-post-overwrites -cwix --audio-format mp3

Wednesday, June 21, 2017

ImageMagick: montage images into one

montage -label '%f' -geometry +4+4 -pointsize 20 -tile 4x6 *.tiff mtg.jpg

Tuesday, June 13, 2017

Monday, June 12, 2017

UFW: forward trafic on a port 8333 to different computer/ip and back

Full node is running on: ip_full_node Redirection is done on server: ip_of_uwf_server *nat
-A PREROUTING -i eth0 -p tcp --dport 8333 -j DNAT --to-destination ip_full_node:8333
-A POSTROUTING -p tcp -d ip_full_node --dport 8333 -j SNAT --to-source ip_of_uwf_server
Based on: