vnoremap :w !xclip -i -sel c
i.e. some stuff and junk about Python, Perl, Matlab, Ruby, Mac X, Linux, Solaris, ...
Saturday, December 15, 2018
Thursday, November 22, 2018
PulseAudio: Stream sound from home to work computer over ssh and vnc
1. At work use papref to "Enable network access to local sound devices"and restart computer.
2. Copy pulse cookie from work to home: ~/.config/pulse/cookie so that work and home computer share same secret (cookie).
3. At work start: sudo start-pulseaudio-x11
4. At work open reverse tunnel for pulseadio: ssh -X -R 9998:localhost:4713 home
5. At work use vnc to connect to home.
6. Once connected using vnc to home, start firefox (for example) at home computer using: PULSE_SERVER=localhost:9998 firefox
The instructions are based on this: http://psung.blogspot.com/2011/09/network-audio-with-pulseaudio-made.html
2. Copy pulse cookie from work to home: ~/.config/pulse/cookie so that work and home computer share same secret (cookie).
3. At work start: sudo start-pulseaudio-x11
4. At work open reverse tunnel for pulseadio: ssh -X -R 9998:localhost:4713 home
5. At work use vnc to connect to home.
6. Once connected using vnc to home, start firefox (for example) at home computer using: PULSE_SERVER=localhost:9998 firefox
The instructions are based on this: http://psung.blogspot.com/2011/09/network-audio-with-pulseaudio-made.html
Thursday, October 25, 2018
Atom: Change command-palette:toggle keybinding
'atom-text-editor:not([mini])':
'ctrl-shift-:': 'command-palette:toggle'
Friday, October 19, 2018
Arch: System freezes when coping large files from usb
Add the following two lines to /etc/sysctl.d/99-sysctl.conf (create if not exists)
To apply use
vm.dirty_background_ratio=1
vm.dirty_ratio=2vm.vfs_cache_pressure = 50To apply use
sudo sysctl -p /etc/sysctl.d/99-sysctl.conf or restart.
Labels:
Arch
Tuesday, October 02, 2018
Arch: Python 3.6 rpc/rpc.h missing
The solution was to manually specify where `rpc/rpc.h` was for configuration:
CPPFLAGS="-I/usr/include/tirpc" ./configure --prefix=/opt/python362 --enable-shared -I/usr/include/tirpc
Sunday, September 30, 2018
Monday, September 24, 2018
youtube-dl: download mp3 and skip on failure
youtube-dl --extract-audio --audio-format mp3 -i PLAYLIST_URL_OR_VIDEO_LINK
Labels:
Linux,
youtube-dl
Sunday, September 23, 2018
Docker: Install Amazon Linux for AWS lambda development
docker run -ti -v ~/mylambdapackage:/mylambdapackage amazonlinux:2017.03.1.20170812
From: https://medium.com/@samme/setting-up-python-3-6-aws-lambda-deployment-package-with-numpy-scipy-pillow-and-scikit-image-de488b2afca6
Monday, September 17, 2018
MATLAB: vision.ShapeInserter crashes in Arch Linux
Seems its same problem as here: https://au.mathworks.com/matlabcentral/answers/364727-why-does-matlab-crash-on-linux-fedora-26-with-a-segmentation-violation-r2017b-or-later#answer_289066
Solution was to remove libfreetype files from /opt/MATLAB/R2016a/bin/glnxa64
Solution was to remove libfreetype files from /opt/MATLAB/R2016a/bin/glnxa64
sudo mv libfreetype* exclude/
Subscribe to:
Posts (Atom)