Compare commits
5 Commits
ceb24b0216
...
bac8c87f4a
Author | SHA1 | Date | |
---|---|---|---|
bac8c87f4a | |||
7b0640a3f9 | |||
ef45de5031 | |||
400e17dce9 | |||
119ae5fc3d |
@ -16,7 +16,9 @@ if version >= 8.0
|
||||
endif
|
||||
|
||||
let mapleader = "\<Space>"
|
||||
let g:python3_host_prog = expand('/usr/src/python')
|
||||
let g:python3_host_prog = expand('/usr/bin/python3')
|
||||
let g:loaded_python_provider = 0
|
||||
let g:python_host_prog = ''
|
||||
set laststatus=2
|
||||
set autoindent
|
||||
set noexpandtab
|
||||
|
@ -1,26 +1,37 @@
|
||||
#!/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=1024 --update --progress -r "$HOME/.ssh/" "$MEGA/ssh/"
|
||||
rsync --bwlimit=2048 --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=1024 --update --progress -r "$HOME/.gnupg/" "$MEGA/gnupg/"
|
||||
rsync --bwlimit=2048 --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=1024 --update --progress -r "$MEGA/" "$MEGA_VOLUME/"
|
||||
rsync --bwlimit=2048 --update --progress -r --exclude '.DS_Store' \
|
||||
--exclude 'Icon*' \
|
||||
"$MEGA/" "$MEGA_VOLUME/"
|
||||
else
|
||||
echo -e "[ERROR] The folder $MEGA_VOLUME does NOT exist"
|
||||
fi
|
||||
|
10
.local/bin/jupyter
Executable file
10
.local/bin/jupyter
Executable file
@ -0,0 +1,10 @@
|
||||
#!/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"
|
||||
docker rm "$container"
|
||||
docker stop "$container" > /dev/null
|
||||
docker rm "$container" > /dev/null
|
||||
|
14
.tmux.conf
14
.tmux.conf
@ -38,3 +38,17 @@ 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