Remove unnecessary file
This commit is contained in:
parent
482004a36b
commit
ac31b42d60
|
@ -1,197 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
alias ll='ls -l'
|
||||
alias la='ls -A'
|
||||
alias l='ls -CF'
|
||||
alias lh='ls -lh'
|
||||
alias vim='nvim'
|
||||
alias svim='sudo nvim'
|
||||
alias ga='git add'
|
||||
alias gaa='git add .'
|
||||
alias gaaa='git add -A'
|
||||
alias gc='git commit'
|
||||
alias gcm='git commit -m'
|
||||
alias gd='git diff'
|
||||
alias gi='git init'
|
||||
alias gl='git log'
|
||||
alias gp='git pull'
|
||||
alias gpsh='git push'
|
||||
alias gss='git status -s'
|
||||
alias gundo='git reset --soft HEAD~1'
|
||||
alias gck='git checkout'
|
||||
alias exiftcl='exiftool -all='
|
||||
alias exift='exiftool'
|
||||
alias upgraded='grep -i upgraded /var/log/pacman.log | tac | less'
|
||||
alias installed='grep -i installed /var/log/pacman.log | tac | less'
|
||||
alias mirrors='reflector --country Brazil,Chile,Colombia --protocol https --sort rate --save /etc/pacman.d/mirrorlist'
|
||||
alias open='xdg-open $(fzf)'
|
||||
alias o='xdg-open'
|
||||
alias zat='zathura --fork'
|
||||
alias trash-dir='cd $HOME/.local/share/Trash'
|
||||
alias val='valgrind --leak-check=full ./listdir prueba/ > valgrind.output 2>&1'
|
||||
alias pampero='ssh slococo@pampero.it.itba.edu.ar'
|
||||
alias bd='systemctl start postgresql.service'
|
||||
|
||||
function gacp() {
|
||||
git add .
|
||||
local var="$@"
|
||||
git commit -m "$var"
|
||||
git push
|
||||
}
|
||||
|
||||
function gac() {
|
||||
git add .
|
||||
local var="$@"
|
||||
git commit -m "$var"
|
||||
}
|
||||
|
||||
function smtp() {
|
||||
cat "$1" | while read -r LINE; do sleep 1; echo "$LINE"; done | ncat -C -v "$2" "${3:-25}"
|
||||
}
|
||||
|
||||
|
||||
function compile() {
|
||||
if grep -q "i5" /proc/cpuinfo; then
|
||||
sudo make clean && sudo make laptop
|
||||
else
|
||||
sudo make clean && sudo make install
|
||||
fi
|
||||
}
|
||||
|
||||
function rcomp() {
|
||||
local file="${1//.rmd/}"
|
||||
R -e "rmarkdown::render('$file.rmd', 'pdf_document')" && op $file.pdf
|
||||
}
|
||||
|
||||
function gci() {
|
||||
echo "Copy after 'git@github.com:'"
|
||||
git clone git@itba.github.com:$1
|
||||
}
|
||||
|
||||
function gcir() {
|
||||
echo "Copy after 'git@github.com:'"
|
||||
git remote add origin git@itba.github.com:$1
|
||||
}
|
||||
|
||||
function gcn() {
|
||||
echo "Copy after 'git@github.com:'"
|
||||
git clone git@github.com:$1
|
||||
}
|
||||
|
||||
function gcin() {
|
||||
echo "Copy after 'git@github.com:'"
|
||||
git remote add origin git@github.com:$1
|
||||
}
|
||||
|
||||
function gith() {
|
||||
#eval $(ssh-agent)
|
||||
keepass &
|
||||
~/.local/bin/waitForSSH &
|
||||
}
|
||||
|
||||
# https://vsupalov.com/docker-shared-permissions/
|
||||
# https://medium.com/redbubble/running-a-docker-container-as-a-non-root-user-7d2e00f8ee15
|
||||
#alias dcom='docker run -v ${PWD}:/root -ti -w /root agodio/itba-so:1.0 ${1}'
|
||||
#alias dcom='docker run -v ${PWD}:/root --security-opt seccomp:unconfined -ti agodio/itba-so:1.0'
|
||||
alias dcom='docker run -v ${PWD}:/root --security-opt seccomp:unconfined --user $(id -u):$(id -g) -w /root -ti agodio/itba-so:1.0'
|
||||
#alias dcom='docker run -v ${PWD}:/root --security-opt seccomp:unconfined --user $(id -u):$(id -g) -w /root --name TPE-ARQUI -ti agodio/itba-so:1.0'
|
||||
|
||||
alias dcr='startDocker'
|
||||
|
||||
function dcreate() {
|
||||
echo "Do you want to create a container with root or user (as the owner)?"
|
||||
chosen=$(echo "root\nuser" | dmenu)
|
||||
echo "Enter a name for the container"
|
||||
read name
|
||||
if [ $chosen = "root" ]; then
|
||||
docker run -v ${PWD}:/root --security-opt seccomp:unconfined -w /root --name $name -ti agodio/itba-so:1.0
|
||||
else
|
||||
docker run -v ${PWD}:/root --security-opt seccomp:unconfined --user $(id -u):$(id -g) -w /root --name $name -ti agodio/itba-so:1.0
|
||||
fi
|
||||
}
|
||||
|
||||
function startDocker() {
|
||||
if systemctl status docker | grep -q "inactive"; then
|
||||
systemctl start docker
|
||||
fi
|
||||
}
|
||||
|
||||
function docom() {
|
||||
local dockerID=`docker ps -l -q`
|
||||
docker start $dockerID > /dev/null
|
||||
docker exec -it $dockerID $@
|
||||
docker stop $dockerID > /dev/null
|
||||
}
|
||||
|
||||
function dcrun() {
|
||||
local dockerID=`docker ps -l -q`
|
||||
docker start $dockerID > /dev/null
|
||||
docker exec -it $dockerID bash -c 'make all 2>&1 1>/dev/null | grep --color -iP "\^|warning:|error:|"'
|
||||
docker stop $dockerID > /dev/null
|
||||
./run.sh
|
||||
}
|
||||
|
||||
function dcmake() {
|
||||
local dockerID=`docker ps -l -q`
|
||||
docker start $dockerID > /dev/null
|
||||
docker exec -it $dockerID bash -c 'make all 2>&1 1>/dev/null | grep --color -iP "\^|warning:|error:|"'
|
||||
docker stop $dockerID > /dev/null
|
||||
}
|
||||
|
||||
function dcstacho() {
|
||||
startDocker
|
||||
local dockerID=$(docker ps -a --format "{{.Names}}" | dmenu)
|
||||
docker start $dockerID > /dev/null
|
||||
docker start $dockerID > /dev/null
|
||||
docker exec -it $dockerID bash $@
|
||||
}
|
||||
|
||||
function dcsta() {
|
||||
startDocker
|
||||
local dockerID=`docker ps -l`
|
||||
docker start $dockerID > /dev/null
|
||||
docker exec -it $dockerID bash $@
|
||||
}
|
||||
|
||||
function dcsto() {
|
||||
local dockerID=`docker ps -l -q`
|
||||
docker stop $dockerID > /dev/null
|
||||
}
|
||||
|
||||
function extract {
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: extract <path/file_name>.<zip|rar|bz2|gz|tar|tbz2|tgz|Z|7z|xz|ex|tar.bz2|tar.gz|tar.xz>"
|
||||
else
|
||||
if [ -f $1 ] ; then
|
||||
case $1 in
|
||||
*.tar.bz2) tar xvjf ../$1 ;;
|
||||
*.tar.gz) tar xvzf ../$1 ;;
|
||||
*.tar.xz) tar xvJf ../$1 ;;
|
||||
*.lzma) unlzma ../$1 ;;
|
||||
*.bz2) bunzip2 ../$1 ;;
|
||||
*.rar) unrar x -ad ../$1 ;;
|
||||
*.gz) gunzip ../$1 ;;
|
||||
*.tar) tar xvf ../$1 ;;
|
||||
*.tbz2) tar xvjf ../$1 ;;
|
||||
*.tgz) tar xvzf ../$1 ;;
|
||||
*.zip) unzip ../$1 ;;
|
||||
*.Z) uncompress ../$1 ;;
|
||||
*.7z) 7z x ../$1 ;;
|
||||
*.xz) unxz ../$1 ;;
|
||||
*.exe) cabextract ../$1 ;;
|
||||
*) echo "extract: '$1' - unknown archive method" ;;
|
||||
esac
|
||||
else
|
||||
echo "$1 - file does not exist"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
function maketar() {
|
||||
tar cvzf "${1%%/}.tar.gz" "${1%%/}/"
|
||||
}
|
||||
|
||||
function makezip() {
|
||||
zip -r "${1%%/}.zip" "$1"
|
||||
}
|
||||
|
Loading…
Reference in New Issue