timopr.fi

# näytä nykyinen gitin branch promptissa
parse_git_branch() {
     git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1="${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\[\e[91m\]\$(parse_git_branch)\[\e[00m\]$ "

# poista videofilestä audio
ffmpeg -i $input_file -c copy -an $output_file

# resize images
mogrify -resize x600\> *.jpg

# videosta stillikuvia
ffmpeg -i video.mp4 still%04d.png -hide_banner

# reverse ssh
ssh -R 19999:localhost:22 user@somewhere_else

# framebufferista kuvankaappaus
cat /dev/fb0 > screen.raw
convert -depth 8 -size 1280x800 rgba:screen.raw -separate -swap 0,2 -combine png:screenshot.png

# käännä kuvaa muuttamatta kuva kokoa
convert kuva.jpg -distort SRT -45 rotatoitu_kuva.jpg

# google haku ilman AI yhteenvetoa
haku: https://www.google.com/search?q=%s&udm=14
ehdotukset: https://suggestqueries.google.com/complete/search?client=firefox&q=%s

# Tyhjä vasen ylänurkka pois firefoxista -> userChrome.css
.titlebar-spacer[type="pre-tabs"] {
  display: none !important;
}

# windows 11 widgetit kuikkaan
Winget uninstall "Windows Web Experience pack"