Skip to content

Instantly share code, notes, and snippets.

@yuraloginoff
yuraloginoff / webp2png.md
Created August 4, 2025 14:26
Bulk convert WEBP to PNG in PowerShell

Bulk convert WEBP to PNG in PowerShell

  1. Install libwebp.

    from Scoop:

    scoop bucket add main
    scoop install libwebp

yt-dlp receips

Download playlist
The -f "bv*+ba/b" parameter asks you to download best quality video and best quality audio, and then combine them into one video (mkv) using ffmpeg. Will delete original file (pass -k to keep).
yt-dlp --yes-playlist -f "bv*+ba/b" "https://youtube.com/playlist?list=XXXXXXXXX

Playlist links to txt file

yt-dlp --flat-playlist -i --print-to-file url urls.txt 'https://youtube.com/playlist?list=...'
@yuraloginoff
yuraloginoff / Min browser UI fix.css
Last active November 24, 2023 13:51
Min browser UI fix
/* file:///C:/Users/user/AppData/Local/min/app-1.29.0/resources/app/dist/bundle.css */
.searchbar-heading { display: none !important }
.windows-caption-buttons .element { width: 26px !important }
body.windows:not(.separate-titlebar) { --control-space-right: 108px !important }
chrome://flags/#show-avatar-button
chrome://flags/#disable-qr-generator
chrome://flags/#tab-hover-cards
chrome://flags/#hide-sidepanel-button
@yuraloginoff
yuraloginoff / windows chromium UI scale.md
Created March 24, 2023 12:11
windows chromium UI scale

Right-click on the Google Chrome shortcut or start menu icon and select >properties > shortcut tab Enter the following code at the end of the text in the Target field:

/high-dpi-support=1 /force-device-scale-factor=1.4

Example: C:\Users\user\AppData\Local\...\Application\browser.exe /high-dpi-support=1 /force-device-scale-factor=1.4

@yuraloginoff
yuraloginoff / firefox.md
Last active August 27, 2025 19:47
Firefox fixes after install on Linux

Go to about:config

  • UI scale: layout.css.devPixelsPerPx --> 1.15

  • Scroll speed: mousewheel.system_scroll_override.enabled --> False

  • Set Firefox to look for userChrome.css
    toolkit.legacyUserProfileCustomizations.stylesheets --> true

  • Enable Browser Toolbox. \

@yuraloginoff
yuraloginoff / kubuntu.sh
Last active February 2, 2023 17:51
Things to Do After Installing Kubuntu (or Ubuntu)
sudo apt update && sudo apt upgrade
# codecs, fonts, etc.
sudo apt install ubuntu-restricted-extras -y
# to install .deb files
sudo apt install gdebi -y
# Simplified and community-driven man pages
sudo apt install tldr && tldr --update
@yuraloginoff
yuraloginoff / static-video.ps1
Created October 16, 2022 13:54
Make video using many mp3 and single image
foreach ($i in Get-ChildItem .\*.mp3) {echo "file '$i'" >> mylist.txt}
ffmpeg -f concat -safe 0 -i mylist.txt -c copy disk.mp3
ffmpeg -loop 1 -i cover.png -i disk.mp3 -framerate 24 -c:v libx264 -pix_fmt yuv420p -c:a copy -shortest out.mp4
@yuraloginoff
yuraloginoff / go.sh
Created May 23, 2022 18:39
Go install Ubunto
#https://go.dev/doc/install
curl -OL https://go.dev/dl/go1.18.2.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.2.linux-amd64.tar.gz
export PATH="${PATH}:/usr/local/go/bin"
export PATH="$PATH:$(go env GOPATH)/bin"
export GOPATH="$(go env GOPATH)"
go version
@yuraloginoff
yuraloginoff / .bash_aliases
Last active April 30, 2022 14:32
.bash_aliases
alias c='clear'
alias d='date'
alias h='history'
alias update='sudo apt update && apt upgrade'
alias mv='mv -i'
alias rm='rm -i'
alias l='ls -1A --color=tty'
alias ll='ls -lhAopS --color=tty'
alias vi='vim'
alias nn='nano'