pdf to image

pdftocairo file.pdf
# or 
pdftocairo -png file.pdf

Create streaming server for your camera to access it wirelessly

Just use this:

ffmpeg -f v4l2 -i /dev/video0 -q:v 5 -f mjpeg -listen 1 http://0.0.0.0:8090

then access your cam using any software like obs, any virtual cam.

http://<ip>:8090

Fix Error: Event handlers cannot be passed to Client Component props.

Note:

The Challenge: Read more…

Install .deb in Arch

  1. It's just an archive
bsdtar -xf "package_0.1.0-1_amd64.deb" data.tar.xz
tar xf data.tar.xz
Read more…

Setting up nvim for java

  1. Installjdtls from the mason using :MasonInstall jdtls or :Mason
  2. Then add jdtls in list of lsp's :
local servers = { 'clangd', 'rust_analyzer', 'pyright', 'ts_ls', 'gopls', 'jdtls' }
Read more…