Compare commits
No commits in common. "bac8c87f4a3edd8acf4091d514f03f4206021b78" and "ceb24b02168ebf764666e76beecdcb599b52e58f" have entirely different histories.
bac8c87f4a
...
ceb24b0216
@ -16,9 +16,7 @@ if version >= 8.0
|
||||
endif
|
||||
|
||||
let mapleader = "\<Space>"
|
||||
let g:python3_host_prog = expand('/usr/bin/python3')
|
||||
let g:loaded_python_provider = 0
|
||||
let g:python_host_prog = ''
|
||||
let g:python3_host_prog = expand('/usr/src/python')
|
||||
set laststatus=2
|
||||
set autoindent
|
||||
set noexpandtab
|
||||
|
@ -1,37 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
MEGA_VOLUME="/Volumes/MEGA"
|
||||
MEGA_VOLUME="/Volumes/Mega"
|
||||
MEGA="$HOME/MEGA"
|
||||
STARTED="$HOME/.config/backup-started-$(date +%d-%m)"
|
||||
|
||||
function main(){
|
||||
if [[ ! -e "$STARTED" ]]
|
||||
then
|
||||
echo -e "[LOG] $(date) Started $HOME/Documents/Collage/Semestr2 ->\
|
||||
$MEGA/Documents/Collage/Semestr2"
|
||||
rsync --bwlimit=2048 --update --progress -r \
|
||||
--exclude '*.mp4' --exclude '*.mkv'\
|
||||
"$HOME/Documents/Collage/Semestr2/"\
|
||||
"$MEGA/Documents/Collage/Semestr2/"
|
||||
echo -e "[LOG] $(date) Ended $HOME/Documents/Collage/Semestr2 ->\
|
||||
$MEGA/Documents/Collage/"
|
||||
|
||||
touch "$STARTED" && echo -e "[LOG] $(date) Created the file $STARTED"
|
||||
|
||||
echo -e "[LOG] $(date) Started $HOME/.ssh/ -> $MEGA/ssh"
|
||||
rsync --bwlimit=2048 --update --progress -r "$HOME/.ssh/" "$MEGA/ssh/"
|
||||
rsync --bwlimit=1024 --update --progress -r "$HOME/.ssh/" "$MEGA/ssh/"
|
||||
echo -e "[LOG] $(date) Finished $HOME/.ssh/ -> $MEGA/ssh"
|
||||
|
||||
echo -e "[LOG] $(date) Started $HOME/.gnupg/ -> $MEGA/gnupg"
|
||||
rsync --bwlimit=2048 --update --progress -r "$HOME/.gnupg/" "$MEGA/gnupg/"
|
||||
rsync --bwlimit=1024 --update --progress -r "$HOME/.gnupg/" "$MEGA/gnupg/"
|
||||
echo -e "[LOG] $(date) Finished $HOME/.gnupg/ -> $MEGA/gnupg"
|
||||
|
||||
if [[ -e "$MEGA_VOLUME" ]]
|
||||
then
|
||||
echo -e "[LOG] $(date) Started $MEGA -> $MEGA_VOLUME"
|
||||
rsync --bwlimit=2048 --update --progress -r --exclude '.DS_Store' \
|
||||
--exclude 'Icon*' \
|
||||
"$MEGA/" "$MEGA_VOLUME/"
|
||||
rsync --bwlimit=1024 --update --progress -r "$MEGA/" "$MEGA_VOLUME/"
|
||||
else
|
||||
echo -e "[ERROR] The folder $MEGA_VOLUME does NOT exist"
|
||||
fi
|
||||
|
@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
docker stop "$(docker ps --all | grep -i jupyter | awk '{print $1}')" > /dev/null
|
||||
docker rm "$(docker ps --all | grep -i jupyter| awk '{print $1}')" > /dev/null
|
||||
docker pull jupyter/scipy-notebook:latest
|
||||
docker run \
|
||||
--rm \
|
||||
-p 8888:8888 \
|
||||
-e JUPYTER_ENABLE_LAB=yes \
|
||||
-v "$HOME/Documents/Collage/Semestr2/MG":/home/jovyan/ \
|
||||
jupyter/scipy-notebook
|
@ -13,5 +13,5 @@ docker run \
|
||||
jrei/systemd-ubuntu
|
||||
container="$(docker ps --all | grep -i ubuntu | awk '{print $1}')"
|
||||
sleep 15 && docker exec -it "$container" /bin/bash
|
||||
docker stop "$container" > /dev/null
|
||||
docker rm "$container" > /dev/null
|
||||
docker stop "$container"
|
||||
docker rm "$container"
|
||||
|
14
.tmux.conf
14
.tmux.conf
@ -38,17 +38,3 @@ bind -r L resize-pane -R 2
|
||||
bind -r C-h previous-window # select previous window
|
||||
bind -r C-l next-window # select next window
|
||||
bind Tab last-window # move to last active window
|
||||
|
||||
# Source of example configuration
|
||||
# https://arcolinux.com/everything-you-need-to-know-about-tmux-status-bar/
|
||||
set-option -g status on
|
||||
set-option -g status-interval 1
|
||||
set-option -g status-position bottom
|
||||
set-option -g status-style fg=white,bg=black
|
||||
set-option -g status-left-length 20
|
||||
set-option -g status-left-style default
|
||||
set-option -g status-right-length 140
|
||||
set-option -g status-right-style default
|
||||
set-option -g status-right "%a %H:%M:%S %Y-%m-%d"
|
||||
set -g pane-border-style fg=default
|
||||
set -g pane-active-border-style "bg=default fg=color244"
|
||||
|
Loading…
x
Reference in New Issue
Block a user