Skip to content

Instantly share code, notes, and snippets.

@skyway22
Last active April 29, 2024 15:18
Show Gist options
  • Save skyway22/027644bde4534a706de80c05f993ec16 to your computer and use it in GitHub Desktop.
Save skyway22/027644bde4534a706de80c05f993ec16 to your computer and use it in GitHub Desktop.
Lenovo bash-aliases
### System
alias update="sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get autoclean && sudo apt-get autoremove"
alias paste="nc termbin.com 9999"
alias aliases="cat ~/.bash_aliases"
alias ra="source ~/.bash_aliases"
alias ea="sudo vi ~/.bash_aliases ; source ~/.bash_aliases"
# Screen
alias sl="screen --list"
### SSH
alias pi='ssh -i /home/cipri/.ssh/osmc osmc@192.168.1.101'
alias rock='ssh -i /home/cipri/.ssh/rock rock64@192.168.1.103'
alias zero='ssh -i /home/cipri/.ssh/zero.pub pi@192.168.1.107'
### Aliases
alias aliases='cat ~/.bash_aliases'
### SFTP
alias sftppi='sftp -i /home/cipri/.ssh/osmc osmc@192.168.1.101'
alias sftprock='sftp -i /home/cipri/.ssh/rock rock64@192.168.1.103'
alias sftpzero='sftp -i /home/cipri/.ssh/zero pi@192.168.1.107'
alias yt="youtube-dl -x --audio-format mp3 --audio-quality=320k --output ~/Music/%\(title\)s.%\(ext\)s"
alias update="sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade"
### Muzica
alias dl="spotdl -o .mp3 -s "
alias yt="youtube-dl -x --audio-format mp3 --audio-quality=320k --output ~/Music/%\(title\)s.%\(ext\)s"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment