Skip to content

Instantly share code, notes, and snippets.

View treyssatvincent's full-sized avatar
👋

Nino Treyssat-Vincent treyssatvincent

👋
View GitHub Profile
@jamespo
jamespo / footssh.sh
Created April 24, 2022 13:04
Shell function & alias to stop foot terminal confusing ssh
footssh()
{
if [[ $TERM = "foot" ]]; then
TERM=linux ssh $@
else
ssh $@
fi
}
alias ssh=footssh
@treyssatvincent
treyssatvincent / gray.sh
Last active December 28, 2016 14:59
black and white a lot of pictures (jpg, jpeg, png)
clean_extensionjpg(){
mmv \*.[Jj][Pp][Gg] \#1.jpg
mmv \*.[Jj][Pp][Ee][Gg] \#1.jpg
}
clean_extensionpng(){
mmv -v \*.[Pp][Nn][Gg] \#1.png
}
clean_extension(){
clean_extensionpng
clean_extensionjpg