59 lines
2.0 KiB
Bash
59 lines
2.0 KiB
Bash
export DOCKER_HOST=ssh://nbg-0
|
|
export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
|
|
export LD_LIBRARY_PATH=/usr/lib:/usr/lib32:$HOME/.steam/bin/:$LD_LIBRARY_PATH
|
|
export EDITOR=vim
|
|
|
|
# GPG SSH
|
|
unset SSH_AGENT_PID
|
|
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
|
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
|
fi
|
|
export GPG_TTY=$(tty)
|
|
gpg-connect-agent updatestartuptty /bye >/dev/null
|
|
|
|
function docker-all {
|
|
for ((i=0;i<=4;i++)); do
|
|
docker -H ssh://fra-n${i} $@
|
|
done
|
|
}
|
|
function build-n-push {
|
|
docker build ${1} --tag=localhost:5000/${2} --force-rm=true --compress=true && docker push localhost:5000/${2}
|
|
}
|
|
function gitsubrepo {
|
|
find . -maxdepth 1 -mindepth 1 -type d -exec sh -c '(echo {} && cd {} && git status -s && echo)' \;
|
|
}
|
|
function osutab {
|
|
xinput set-prop 'UGTABLET 6 inch PenTablet Pen (0)' --type=float 153 3.5 0 -0.5 0 2.9 0 0 0 1
|
|
}
|
|
function tonullpointer {
|
|
if [ -z ${1} ]; then
|
|
RANDFN=${RANDOM}
|
|
> /tmp/${RANDFN}
|
|
curl -F"file=@/tmp/${RANDFN}" http://0x0.st
|
|
rm /tmp/${RANDFN}
|
|
else
|
|
curl -F"file=@${1}" http://0x0.st
|
|
fi
|
|
}
|
|
function ffmpeg-gif {
|
|
ffmpeg -hwaccel vdpau -ss $2 -to $3 -i $1 -r 60 -vf "mpdecimate,scale=480:-1:flags=spline,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 $4
|
|
}
|
|
function ffmpeg-vid {
|
|
ffmpeg -hwaccel vdpau -ss $2 -to $3 -i $1 -r 60 -vf "mpdecimate,scale=480:-1:flags=spline" $4
|
|
}
|
|
|
|
alias recordscreen='ffmpeg -video_size 1920x1080 -framerate 60 -f x11grab -i :0 -f alsa -i default -crf 0 -vf "mpdecimate,scale=480:-1:flags=bilinear"'
|
|
alias ytdldown='youtube-dl --no-part --newline -xcw --audio-format best --add-metadata --embed-thumbnail -o "/home/caskd/Media/Music/%(album)s/%(artist)s/%(track)s.%(ext)s"'
|
|
alias ls='ls --color=auto'
|
|
alias grep='grep --color=auto'
|
|
alias diff='diff --color=auto'
|
|
function man {
|
|
LESS_TERMCAP_md=$'\e[01;31m' \
|
|
LESS_TERMCAP_me=$'\e[0m' \
|
|
LESS_TERMCAP_se=$'\e[0m' \
|
|
LESS_TERMCAP_so=$'\e[01;33m' \
|
|
LESS_TERMCAP_ue=$'\e[0m' \
|
|
LESS_TERMCAP_us=$'\e[01;32m' \
|
|
command man "$@"
|
|
}
|