-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathenv.sh
More file actions
37 lines (25 loc) · 1.36 KB
/
env.sh
File metadata and controls
37 lines (25 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
####################### SSH KEY FOR GIT ###################################
eval `ssh-agent -s` && ssh-add -k
####################### To be added to git account settings ################
###################### GIT PARAMETERS #####################################
export GIT_PARENT_DIR=~
export GIT_REPO_NAME=codewars-challenge
export GIT_BRANCH_NAME=master
export GIT_USER=2Math0
export GIT_EMAIL=toto.mm50.tm@gmail.com
export GITHUB_ACCESS_TOKEN=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
export GIT_USER_UPSTREAM=2Math0
############################################################################
#### DO NOT EDIT BELOW THIS LINE: derived variables
############################################################################
export GIT_REMOTE_URL=git@github.com:$GIT_USER/$GIT_REPO_NAME.git
export GIT_REMOTE_URL_HTTPS=https://github.com/$GIT_USER/$GIT_REPO_NAME.git
export GIT_REMOTE_UPSTREAM=$GIT_USER_UPSTREAM/$GIT_REPO_NAME
####################### Git Repo where notebooks will be pushed ############
cd $GIT_PARENT_DIR && git clone $GIT_REMOTE_URL_HTTPS
####################### Change in jupyter config ###########################
if [ ! -f ~/.jupyter/jupyter_notebook_config.py ]; then
jupyter notebook --generate-config
fi
echo 'c.NotebookApp.disable_check_xsrf = True' >> ~/.jupyter/jupyter_notebook_config.py
cp $GIT_PARENT_DIR/codewars-challenge/config ~/.ssh/config