- download https://github.com/iteufel/nwjs-ffmpeg-prebuilt/releases/tag/0.20.3
- unzip
- move and restart browser:
cd /usr/lib64/opera
sudo mv libffmpeg.so libffmpeg.so.orig
cd ~/downloads
| # GDM screen scale | |
| sudo -u gdm dbus-launch gsettings set org.gnome.desktop.interface scaling-factor 1 | |
| # bose headphones | |
| yay -S pulseaudio-bluetooth-a2dp-gdm-fix |
cd /usr/lib64/opera
sudo mv libffmpeg.so libffmpeg.so.orig
cd ~/downloads
| 1. req | 2. req (q: 1) | 3. req (q: 3) |
|---|---|---|
| a, 4:00 | a, 4:00 | f, 4:11 |
| b, 3:55 | e, 3:57 | a, 4:00 |
| c, 3:40 | b, 3:55 | e, 3:57 |
| d, 2:10 | c, 3:40 | d, 2:10 |
| d, 2:10 |
| # In a file with urls, count different status codes | |
| { for line in `cat urls.txt`; do curl -I $line 2> /dev/null | head -n 1 | egrep -o '[0-9]{3}' ; done; } | sort | uniq -c | |
| # Get titles from urls from clipboard | |
| urls=`xclip -o | tr '\n' ' '`; for url in $(echo $urls); do clean_url=$(echo -e "${url}" | tr -d '[[:space:]]'); tmp=$(curl "$clean_url" 2> /dev/null | egrep -o '<title>.*</title>' | egrep -o '>.*<'); echo ${tmp:1:-2}; done; |
| #!/usr/bin/env python3 | |
| """DIS slovarček api | |
| Usage: | |
| dis [options] [QUERY [QUERY ...]] | |
| Options: | |
| -h --help Show this screen. | |
| --version Show version. | |
| """ |
| #!/usr/bin/env python3 | |
| """Termania api | |
| Usage: | |
| termania [options] [QUERY [QUERY ...]] | |
| Options: | |
| -h --help Show this screen. | |
| --version Show version. | |
| """ |
| #!/bin/python | |
| """ | |
| pjson - simple script for parsing jsons with python | |
| Json input needed with stdin. | |
| Usage: | |
| pjson key1 key2 key3 ... | |
| Examples: |