Friday, April 07, 2023

Monday, March 20, 2023

Monday, February 27, 2023

Monday, December 19, 2022

ImageMagick: resize and ignore aspect ratio

for f in *.jpg; do echo $f; mogrify -resize 64x64\! -set colorspace Gray -separate -average $f; done

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

spark and notebook from docker

docker run --rm -p 10000:8888 jupyter/all-spark-notebook