Skip to content

Instantly share code, notes, and snippets.

View thequantumcog's full-sized avatar
💭
Hakuna Matata

Ahmad Rehan thequantumcog

💭
Hakuna Matata
View GitHub Profile
#!/bin/bash
mkdir -p $HOME/.local/bin
cd /tmp
wget -q https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz
tar xzf nvim-linux-x86_64.tar.gz
mv nvim-linux-x86_64 $HOME/.local/nvim
ln -sf $HOME/.local/nvim/bin/nvim $HOME/.local/bin/nvim
#!/bin/bash
mkdir -p $HOME/.local/bin
cd /tmp
wget -q https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz
tar xzf nvim-linux-x86_64.tar.gz
mv nvim-linux-x86_64 $HOME/.local/nvim
ln -sf $HOME/.local/nvim/bin/nvim $HOME/.local/bin/nvim
@thequantumcog
thequantumcog / rundwm.sh
Created September 30, 2023 14:35 — forked from jamesnorth/rundwm.sh
Simple shell script to run dwm inside another WM using Xephyr
#!/bin/bash
xhost +local:ar0177417
Xephyr -screen 800x600 -reset -terminate -extension GLX 2>/dev/null :1 &
export DISPLAY=:1
./dwm

Convert (simple) SWF to PDF

In SWFTools a programs called gfx2gfx is available to do this task, but it's not officially available precompiled.

It can convert SWF, PDF or image to SWF, PDF, ebook or image.

For discard downscaling for rasterized image (default: 72dpi) we use the provided by @m-p-y: add -r attribute to increase maxdpi

Requirements