First install the spotify package from negativo17's repository.
Enable negativo17 repo:
dnf config-manager --add-repo=https://negativo17.org/repos/fedora-spotify.repoFirst install the spotify package from negativo17's repository.
Enable negativo17 repo:
dnf config-manager --add-repo=https://negativo17.org/repos/fedora-spotify.repo| #!/bin/bash | |
| # Run with find command: | |
| # | |
| # find /var/log/nginx -name "*.log" -exec /usr/bin/log2zst "{}" \; | |
| # | |
| if [ "$#" -lt 1 ]; then | |
| echo "Usage: `basename $0` <filename>" | |
| exit 1 | |
| fi |
| #!/bin/bash | |
| # | |
| # Usage: | |
| # httpcat URL | |
| if [ "$#" -lt 1 ]; then | |
| echo "Usage: `basename $0` URL" | |
| exit 1 | |
| fi |
| #!/bin/bash | |
| sleep_time="2" | |
| large_location="$HOME/$RANDOM" | |
| DIR="." | |
| send_pdf() { find $DIR -type f -name "*.pdf" -exec telegram-send --file "{}" \; -exec sleep $sleep_time \; ; } | |
| send_epub() { find $DIR -type f -name "*.epub" -exec telegram-send --file "{}" \; -exec sleep $sleep_time \; ; } | |
| find_pdf() { find $DIR -type f -name "*.pdf" -exec ls "{}" \; ; } | |
| find_epub() { find $DIR -type f -name "*.epub" -exec ls "{}" \; ; } |
| urlencode() { | |
| # urlencode <string> | |
| old_lc_collate=$LC_COLLATE | |
| LC_COLLATE=C | |
| local length="${#1}" | |
| for (( i = 0; i < length; i++ )); do | |
| local c="${1:$i:1}" | |
| case $c in |
| #!/bin/bash | |
| URL="${1}" | |
| UserAgent="[HTTPSTATUS]:[https://git.io/JcTUF]" | |
| if [ "$#" -lt 1 ]; then | |
| echo "Usage: ./`basename $0` URL" | |
| exit 1 | |
| fi | |
| function unknown_status() { |
| #!/bin/bash | |
| # use find exec to remove multiple files: | |
| # find path/to/dir -exec ./rmzero {} \; | |
| if [ "$#" -lt 1 ]; then | |
| echo "./`basename $0` <file>"; | |
| exit 1; | |
| fi | |
| function load() { FILE="$(realpath $1)" ; MB_COUNT="$(du -m $FILE | awk '{print $1}')" ; } |
| server { | |
| listen X.X.X.X:53682; | |
| gzip on; | |
| server_tokens off; | |
| access_log /tmp/rclone.access; | |
| error_log /tmp/rclone.error; | |
| location / { |
| #!/bin/bash | |
| cd "$(dirname "${BASH_SOURCE[0]}")" | |
| function execute() { | |
| cd $i | |
| echo -e "\e[91m$x:\e[0m\e[92m`pwd`\e[0m" | |
| case $1 in | |
| ls) $@ --color=auto ;; | |
| grep) $@ --color=auto ;; | |
| fgrep) $@ --color=auto ;; |
| #!/bin/bash | |
| # CRONTAB: | |
| # @daily /path/to/automysqlbackup.sh hour | |
| # @daily /path/to/automysqlbackup.sh day | |
| # @weekly /path/to/automysqlbackup.sh week | |
| # @monthly /path/to/automysqlbackup.sh month | |
| # MAIL: | |
| # apt install mailutils postfix | |
| [[ -t 1 ]] || set -x | |
| SCRIPT=$(realpath $0) |