Compare commits
8 Commits
0c8cd8f76a
...
93d3b4440c
Author | SHA1 | Date | |
---|---|---|---|
93d3b4440c | |||
f5ded6a5e6 | |||
c9ac5f42ab | |||
819de0e9ae | |||
19dcc18963 | |||
311e2003b5 | |||
cc21679185 | |||
f279b82081 |
@ -8,13 +8,16 @@ gnu-sed
|
|||||||
htop
|
htop
|
||||||
imagemagick
|
imagemagick
|
||||||
ipcalc
|
ipcalc
|
||||||
|
iperf3
|
||||||
mtr
|
mtr
|
||||||
neovim
|
neovim
|
||||||
newsboat
|
newsboat
|
||||||
parallel
|
parallel
|
||||||
|
ranger
|
||||||
ripgrep
|
ripgrep
|
||||||
rsync
|
rsync
|
||||||
tmux
|
tmux
|
||||||
tree
|
tree
|
||||||
wget
|
wget
|
||||||
|
zoxide
|
||||||
zsh
|
zsh
|
||||||
|
@ -14,7 +14,7 @@ keep-open=yes
|
|||||||
|
|
||||||
# Always save the current playback position on exit
|
# Always save the current playback position on exit
|
||||||
save-position-on-quit=yes
|
save-position-on-quit=yes
|
||||||
ontop=yes
|
# ontop=yes
|
||||||
|
|
||||||
# Geometry settings
|
# Geometry settings
|
||||||
geometry=50%:50%
|
geometry=50%:50%
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -278,3 +278,4 @@ golang
|
|||||||
Cisco Packet Tracer 8.0.0
|
Cisco Packet Tracer 8.0.0
|
||||||
.local/bin/kubectl
|
.local/bin/kubectl
|
||||||
.rustup
|
.rustup
|
||||||
|
.local/tss-sdk
|
||||||
|
@ -611,7 +611,7 @@ function main() {
|
|||||||
command_start install_prettier
|
command_start install_prettier
|
||||||
command_start install_google_cloud_sdk
|
command_start install_google_cloud_sdk
|
||||||
command_start install_bgpreader
|
command_start install_bgpreader
|
||||||
command_start install_fonts_terminess
|
command_start install_font_terminess
|
||||||
command_start install_zsh_addons
|
command_start install_zsh_addons
|
||||||
command_start install_brew_programs
|
command_start install_brew_programs
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ export QT_IM_MODULE=ibus
|
|||||||
KERNEL=$(uname -sr)
|
KERNEL=$(uname -sr)
|
||||||
[[ $KERNEL =~ "icrosoft" ]] && "/mnt/c/Program Files/Mozilla Firefox/firefox.exe" "$@"
|
[[ $KERNEL =~ "icrosoft" ]] && "/mnt/c/Program Files/Mozilla Firefox/firefox.exe" "$@"
|
||||||
[[ $KERNEL =~ "gentoo" ]] && GDK_DPI_SCALE="1.2" firefox "$@"
|
[[ $KERNEL =~ "gentoo" ]] && GDK_DPI_SCALE="1.2" firefox "$@"
|
||||||
[[ $KERNEL =~ "Darwin" ]] && open -a firefox -u "$2"
|
[[ $KERNEL =~ "Darwin" ]] && open -a Firefox\ Nightly "$@"
|
||||||
#[[ $KERNEL =~ "gentoo" ]] && __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia __GL_SYNC_TO_VBLANK=0 GDK_DPI_SCALE="1.2" firefox "$@"
|
#[[ $KERNEL =~ "gentoo" ]] && __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia __GL_SYNC_TO_VBLANK=0 GDK_DPI_SCALE="1.2" firefox "$@"
|
||||||
|
|
||||||
# Firefox
|
# Firefox
|
||||||
|
@ -2,14 +2,17 @@
|
|||||||
|
|
||||||
FOLDER_FAV="/Volumes/Music/Jellyfin/Playlist-Fav"
|
FOLDER_FAV="/Volumes/Music/Jellyfin/Playlist-Fav"
|
||||||
FOLDER_DUB="/Volumes/Music/Jellyfin/Playlist-Dub"
|
FOLDER_DUB="/Volumes/Music/Jellyfin/Playlist-Dub"
|
||||||
|
FOLDER_PIANO="/Volumes/Music/Jellyfin/Playlist-Piano"
|
||||||
|
|
||||||
# Check if folder exists
|
# Check if folder exists
|
||||||
[ ! -d $FOLDER_DUB ] && exit 1
|
[ ! -d $FOLDER_DUB ] && exit 1
|
||||||
[ ! -d $FOLDER_FAV ] && exit 1
|
[ ! -d $FOLDER_FAV ] && exit 1
|
||||||
|
[ ! -d $FOLDER_PIANO ] && exit 1
|
||||||
|
|
||||||
# Remove old files
|
# Remove old files
|
||||||
rm -rfv $FOLDER_DUB/errors.txt
|
rm -rfv $FOLDER_DUB/errors.txt
|
||||||
rm -rfv $FOLDER_FAV/errors.txt
|
rm -rfv $FOLDER_FAV/errors.txt
|
||||||
|
rm -rfv $FOLDER_PIANO/errors.txt
|
||||||
|
|
||||||
# Download new files for DUB
|
# Download new files for DUB
|
||||||
cd $FOLDER_DUB || exit 1
|
cd $FOLDER_DUB || exit 1
|
||||||
@ -38,10 +41,15 @@ rsync -h --progress --recursive --ignore-existing \
|
|||||||
rsync -h --progress --recursive --ignore-existing \
|
rsync -h --progress --recursive --ignore-existing \
|
||||||
$FOLDER_FAV/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Fav
|
$FOLDER_FAV/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Fav
|
||||||
|
|
||||||
|
rsync -h --progress --recursive --ignore-existing \
|
||||||
|
$FOLDER_PIANO/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Piano
|
||||||
|
|
||||||
# Generate playlist
|
# Generate playlist
|
||||||
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Dub; find . -type f \( -name '*.mp3' -o -name '*.flac' -o -name '*.loss' -o -name '*.aiff' -o -name '*.aif' \) -printf './%P\n' | sort > playlist.m3u"
|
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Dub; find . -type f \( -name '*.mp3' -o -name '*.flac' -o -name '*.loss' -o -name '*.aiff' -o -name '*.aif' \) -printf './%P\n' | sort > playlist.m3u"
|
||||||
|
|
||||||
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Fav; find . -type f \( -name '*.mp3' -o -name '*.flac' -o -name '*.loss' -o -name '*.aiff' -o -name '*.aif' \) -printf './%P\n' | sort > playlist.m3u"
|
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Fav; find . -type f \( -name '*.mp3' -o -name '*.flac' -o -name '*.loss' -o -name '*.aiff' -o -name '*.aif' \) -printf './%P\n' | sort > playlist.m3u"
|
||||||
|
|
||||||
|
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Piano; find . -type f \( -name '*.mp3' -o -name '*.flac' -o -name '*.loss' -o -name '*.aiff' -o -name '*.aif' \) -printf './%P\n' | sort > playlist.m3u"
|
||||||
|
|
||||||
# Fix permissions
|
# Fix permissions
|
||||||
ssh docker-de -t 'chown docker-user: /mnt/HC_Volume_34966154/jellifin -R'
|
ssh docker-de -t 'chown docker-user: /mnt/HC_Volume_34966154/jellifin -R'
|
||||||
|
@ -2,3 +2,4 @@
|
|||||||
KERNEL=$(uname -sr)
|
KERNEL=$(uname -sr)
|
||||||
[[ $KERNEL =~ "icrosoft" ]] && $HOME/.local/bin/wsl-notify "$@"
|
[[ $KERNEL =~ "icrosoft" ]] && $HOME/.local/bin/wsl-notify "$@"
|
||||||
[[ $KERNEL =~ "gentoo" ]] && /usr/bin/notify-send "$@"
|
[[ $KERNEL =~ "gentoo" ]] && /usr/bin/notify-send "$@"
|
||||||
|
[[ $KERNEL =~ "Darwin" ]] && osascript -e "display notification \"$*\""
|
||||||
|
19
.zshrc
19
.zshrc
@ -4,11 +4,11 @@ CONFIG=$HOME/.config
|
|||||||
|
|
||||||
parse_git_branch() {
|
parse_git_branch() {
|
||||||
command=$(git branch \
|
command=$(git branch \
|
||||||
2>/dev/null |
|
2> /dev/null |
|
||||||
sed -n -e 's/^\* \(.*\)/\1/p' |
|
sed -n -e 's/^\* \(.*\)/\1/p' |
|
||||||
awk 'NF{print $NF}' |
|
awk 'NF{print $NF}' |
|
||||||
sed 's/)//g' \
|
sed 's/)//g' \
|
||||||
2>/dev/null)
|
2> /dev/null)
|
||||||
[ -z $command ] && echo -e "$ " || echo -e "$command $ "
|
[ -z $command ] && echo -e "$ " || echo -e "$command $ "
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -33,11 +33,11 @@ plugins=(rake ruby vagrant knife knife_ssh kitchen)
|
|||||||
ZSH_DISABLE_COMPFIX=true
|
ZSH_DISABLE_COMPFIX=true
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
[ -d $CONFIG/zsh/zsh-autosuggestions ] && source $CONFIG/zsh/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh &>>/dev/null
|
[ -d $CONFIG/zsh/zsh-autosuggestions ] && source $CONFIG/zsh/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh &>> /dev/null
|
||||||
[ -d $CONFIG/zsh/zsh-syntax-highlighting ] && source $CONFIG/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh &>>/dev/null
|
[ -d $CONFIG/zsh/zsh-syntax-highlighting ] && source $CONFIG/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh &>> /dev/null
|
||||||
[ -d $CONFIG/zsh/zsh-command-time ] && source $CONFIG/zsh/zsh-command-time/command-time.plugin.zsh &>>/dev/null
|
[ -d $CONFIG/zsh/zsh-command-time ] && source $CONFIG/zsh/zsh-command-time/command-time.plugin.zsh &>> /dev/null
|
||||||
[ -d $CONFIG/zsh/aws ] && source $CONFIG/zsh/aws/aws.plugin.zsh &>>/dev/null
|
[ -d $CONFIG/zsh/aws ] && source $CONFIG/zsh/aws/aws.plugin.zsh &>> /dev/null
|
||||||
[ -d $CONFIG/zsh/azure-cli ] && source $CONFIG/zsh/azure-cli/az.completion &>>/dev/null
|
[ -d $CONFIG/zsh/azure-cli ] && source $CONFIG/zsh/azure-cli/az.completion &>> /dev/null
|
||||||
[ -f $HOME/.password ] && source $HOME/.password
|
[ -f $HOME/.password ] && source $HOME/.password
|
||||||
[ -f $CONFIG/fzf/shell/key-bindings.zsh ] && source $HOME/.config/fzf/shell/key-bindings.zsh
|
[ -f $CONFIG/fzf/shell/key-bindings.zsh ] && source $HOME/.config/fzf/shell/key-bindings.zsh
|
||||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||||
@ -189,7 +189,7 @@ if [[ "$(uname)" == "Darwin" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Setting the right editor
|
# Setting the right editor
|
||||||
if which nvim >/dev/null 2>&1; then
|
if which nvim > /dev/null 2>&1; then
|
||||||
export VISUAL='nvim -u $HOME/.vimrc'
|
export VISUAL='nvim -u $HOME/.vimrc'
|
||||||
export EDITOR='nvim -u $HOME/.vimrc'
|
export EDITOR='nvim -u $HOME/.vimrc'
|
||||||
else
|
else
|
||||||
@ -225,6 +225,9 @@ alias aria2c="aria2c --seed-time=0 --disable-ipv6 --max-upload-limit=1k"
|
|||||||
alias irc="ssh mikrus -t 'screen -r'"
|
alias irc="ssh mikrus -t 'screen -r'"
|
||||||
alias neofetch=fastfetch
|
alias neofetch=fastfetch
|
||||||
|
|
||||||
|
# Zoxide
|
||||||
|
[ -f $(which zoxide) ] && {eval "$(zoxide init zsh)"; alias cd='z'}
|
||||||
|
|
||||||
# GoLang
|
# GoLang
|
||||||
alias go-mod="go mod edit -go $(go version | grep -oE 'go[0-9]*\.[0-9]*\.[0-9]*' | sed 's/go//g'); go get -u; go mod verify; go get -x -v; go mod verify; go mod tidy"
|
alias go-mod="go mod edit -go $(go version | grep -oE 'go[0-9]*\.[0-9]*\.[0-9]*' | sed 's/go//g'); go get -u; go mod verify; go get -x -v; go mod verify; go mod tidy"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user