Aliasees and functions

main
Steffen Rademacker 4 years ago
parent 304cde25c2
commit 1e0a1aa1e9

@ -29,19 +29,17 @@ alias -s txt=$EDITOR
alias clip="nc localhost 8377"
# better ls / l command
alias ls='ls -alGp'
alias l='ls -alGp'
# mutt
alias m='neomutt'
# alias for syncing everything
alias office="cd ~ && mbsync -a && mu index --maildir ~/Mail && vdirsyncer sync"
alias O="cd ~ && mbsync -a && mu index --maildir ~/Mail && vdirsyncer sync"
# Gitty gitgit
alias g="git"
alias gf="git-flow"
alias gs="git status"
alias gst="git status"
alias ggpl='git pull origin $(current_branch)'
alias ggps='git push origin $(current_branch)'
alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)'
@ -69,9 +67,9 @@ alias yp='yarn production'
alias yre='rm -f yarn.lock && rm -rf node_modules && yarn'
# often used folder shortcuts
alias web='cd ~/Sites && ls'
alias rep='cd ~/Repositories && ls'
alias dot='cd ~/Dotfiles && ls'
alias web='cd ~/Sites && l'
alias rep='cd ~/Repositories && l'
alias dot='cd ~/Dotfiles && l'
# random usefull stuff
alias dnsflush='sudo dscacheutil -flushcache'

@ -10,6 +10,22 @@ function webvideonoaudio() {
ffmpeg -i $1 -map_metadata -1 -an -c:v libx264 -crf 24 -preset veryslow -profile:v main -pix_fmt yuv420p -movflags +faststart -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" $1.h264.mp4
}
function webvideooptimized() {
ffmpeg -i $1 -map_metadata -1 -c:a libfdk_aac -c:v libx264 -crf 24 -preset veryslow -profile:v main -pix_fmt yuv420p -movflags +faststart -vf "scale=1920:trunc(ow/a/2)*2" $1.h264.mp4
}
function webvideooptimizednoaudio() {
ffmpeg -i $1 -map_metadata -1 -an -c:v libx264 -crf 24 -preset veryslow -profile:v main -pix_fmt yuv420p -movflags +faststart -vf "scale=1920:trunc(ow/a/2)*2" $1.h264.mp4
}
function webvideooptimizednoaudiomobile() {
ffmpeg -i $1 -map_metadata -1 -an -c:v libx264 -crf 24 -preset veryslow -profile:v main -pix_fmt yuv420p -movflags +faststart -vf "scale=640:trunc(ow/a/2)*2" $1.h264.mp4
}
function webvideoposter() {
ffmpeg -ss 00:00:02 -i $1 -frames:v 1 $1.jpg
}
# create and change to directory/folder
function take() {
mkdir -p $1

Loading…
Cancel
Save