Skip to content

Some changes needed after trying to setup EC2 #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions dev-setup.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
- hosts: dev
remote_user: root
remote_user: ec2-user
vars:
user_name: musicallyut
git_user: Utkarsh Upadhyay
git_email: musically.ut@gmail.com
user_name: btabibian
git_user: Behzad Tabibian
git_email: me@btabibian.com

sshd: ssh
sshd_config: /etc/ssh/sshd_config
Expand Down Expand Up @@ -172,6 +172,11 @@
tags:
- dev

- name: Install Ruby
package:
name: ruby
state: present

- name: Install Node 12
become: true
become_user: "{{ user_name }}"
Expand All @@ -196,6 +201,19 @@
- dev

# Copy configuration files
- name: Install vim plugins
become: true
become_user: "{{ user_name }}"
shell: "vim +PlugInstall +qall"
tags:
- dev

- name: Copy inputrc
become: true
copy:
src: dotfiles/inputrc
dest: "/home/{{ user_name }}/.inputrc"
owner: "{{ user_name }}"

- name: Copy vimrc
become: true
Expand Down
7 changes: 7 additions & 0 deletions dotfiles/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ HISTFILESIZE=4000000
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# update history after each execution
shopt -s histappend
PROMPT_COMMAND="history -a;$PROMPT_COMMAND"

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

Expand Down Expand Up @@ -167,3 +171,6 @@ fi

# Activate torch
[ -f ~/torch/install/bin/torch-activate ] && . ~/torch/install/bin/torch-activate

# add miniconda to bashrc
export PATH=$PATH:~/miniconda3/bin
2 changes: 2 additions & 0 deletions dotfiles/inputrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
set editing-mode vi
set keymap vi-command
10 changes: 10 additions & 0 deletions dotfiles/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -432,3 +432,13 @@ set timeoutlen=1000 ttimeoutlen=0

" Press <F2> to quickly toggle PASTE mode on/off
set pastetoggle=<F2>

let g:netrw_banner = 0
let g:netrw_liststyle = 3
let g:netrw_browse_split = 4
let g:netrw_altv = 1
let g:netrw_winsize = 25
augroup ProjectDrawer
autocmd!
autocmd VimEnter * :Vexplore
augroup END
1 change: 1 addition & 0 deletions keys/id_rsa.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC6yznBu+OKf8k68O0Obq685E0rlZvH2KO4uqaO5CUMsTjIK1RArh19YQRCk4ThSpYySLOG9v0w2GDv3mVkNRcqYuCG4EUd1u3jRHjus80apgxWWxjLpc+c5/MZjjO6oMcqdLSjRrSsdOOEbsP/GK+3ij62qjJ10y2VcYp8IyeC/5vKj6x9THg0Rms43Sc6eORoZyX2DN49MdC8ZmaoJVRGjdK1RkC+joIiCff7Y5lTyQS4bXHyBI0Xot3x3qp5UC6SDdl8kSldr7K6QBdUWNjD9xnKebhfH73PsNiyeSM8empKGMPooCOZU3qbqOq/pCqppfGLzHuqn14/MpIFT4ZaLk0TefW+0R8WtJNYCz/VIW5/yNeK2D2bZ3WpGbKDDKTNQIVUn3GB6mqeUTcuaTBEYipv2HAbgVrQB9tEQutUB+oVXGc+vCpbZ/uB+MmR5PEBONktGS/V+YR42c12uAlf4CRJTJx6yLjtp4DVgltKuVkkCXM9CMrx68sRTOcDxLvgtZAhCdHTS5QY7Cy3Ac4UaqQ9P+oy0YRztLhzDnxGJwDl9ZHpcAmTX5pGaLZ1yIL3o5t1HIe2/g5vt8kWNoMKYklf+tmU9bp430LYUMo5RfMCc72kqRzybkZ6zI4qhQMF0z//XfAeDckI/tXswyIPewEYEIwxURuUSPOxpPkU9w== me@btabibian.com