for f in *.jpg; do echo $f; mogrify -resize 64x64\! -set colorspace Gray -separate -average $f; done
i.e. some stuff and junk about Python, Perl, Matlab, Ruby, Mac X, Linux, Solaris, ...
Monday, December 19, 2022
ImageMagick: resize and ignore aspect ratio
Sunday, November 27, 2022
Wednesday, November 16, 2022
Arch: Install dotnet 6.0 and jupyter kernel
wget https://dot.net/v1/dotnet-install.sh
chmod +x ./dotnet-install.sh
./dotnet-install.sh --install-dir /usr/share/dotnet -channel STS -version 6.0.110
/usr/share/dotnet/dotnet tool install -g Microsoft.dotnet-interactive
/usr/share/dotnet/dotnet interactive jupyter install
Also add `/usr/share/dotnet` to `PATH`.
https://github.com/dotnet/interactive/blob/main/docs/NotebookswithJupyter.md
https://dotnet.microsoft.com/en-us/download/dotnet/6.0
Sunday, August 21, 2022
Linux: json to parquet
Use: https://github.com/domoritz/json2parquet
~/.cargo/bin/json2parquet -c zstd data_000000.json data_000000.parquet
Sunday, June 19, 2022
VNC: Arch linux autostart vnc
Add /home//.config/systemd/user/myvnc@:1.service
[Unit]
Description=My VNC
[Service]
Type=simple
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/usr/bin/vncserver %i
ExecStop=/usr/bin/vncserver -kill %i
[Install]
WantedBy=default.target
Then
systemctl --user start myvnc@\:1.service
and
systemctl --user enable myvnc@\:1.service
and
tigervnc: Diable vnc password on Arch Linux
Edit /etc/tigervnc/vncserver-config-defaults and add:
securitytypes=none
Thursday, June 16, 2022
Wednesday, June 15, 2022
Arch: Toobox and Distrobox error "Authorization required, but no authorization protocol specified"
Executing on the host (Arch)
xhost +
made the gui applications work in both Toobox and Distrobox.