First 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 | |
if [ "$#" -lt 1 ]; then | |
echo "Usage: `basename $0` <access.log>" | |
exit 1 | |
fi | |
awk '{print $1}' "${1}" | sort | uniq -c | sort -nr |
#!/bin/bash | |
#SOURCE: https://janikvonrotz.ch/2021/03/09/parse-url-in-shell-script/ | |
set -e | |
# Get script name | |
SCRIPT=$(basename "$0") | |
# Display Help | |
Help() { |
date +"%Y-%m-%dT%H:%M:%S%:z" |
#!/bin/bash | |
# Emulate systemctl for runit installed termux. | |
function check_command() { [ -x "$(command -v ${1})" ] || { echo -e "\e[31m${1} not found, please install it.\e[0m" ; return 1 ; } } | |
if ! check_command sv; then | |
if ! check_command sv-enable; then | |
if ! check_command sv-disable; then | |
exit 1 | |
fi |
#!/bin/bash | |
cd "$(dirname "${BASH_SOURCE[0]}")" | |
LIST=".nosend" | |
[ -f ${LIST} ] || touch ${LIST} | |
shopt -s expand_aliases | |
SLEEP="2" | |
USAGE="--send | --dry" | |
function check_command() { [ -x "$(command -v ${1})" ] || { echo -e "\e[31m${1} not found, please install it.\e[0m" ; return 1 ; } } |
#!/bin/bash | |
# stats function to docker-compose | |
docker-compose ps -q | xargs docker stats |
#!/bin/bash | |
# Installation: | |
# | |
# 1. nano /etc/ssh/sshd_config | |
# PrintMotd no | |
# | |
# 2. nano /etc/profile | |
# /usr/bin/dynmotd # Place at the bottom | |
# |
#!/bin/bash | |
read LOWERPORT UPPERPORT < /proc/sys/net/ipv4/ip_local_port_range | |
while : | |
do | |
PORT="`shuf -i $LOWERPORT-$UPPERPORT -n 1`" | |
ss -lpn | grep -q ":$PORT " || break | |
done | |
echo $PORT |
First 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 |