Exemple #1
0
def install_pip_dependencies():
    """
    Install pip dependencies that I use everyday
    """
    print("Installing pip dependencies")
    command = "pip3 install imgaug trains ipdb"
    run_command(command)
Exemple #2
0
def install_vim_tmux():
    """
    Install my custom vim and tmux configuration
    """
    print("Installing custom vim and tmux")
    command = """curl -L https://github.com/lamhoangtung/dotfile/raw/linux/install_vim.sh | bash
                 wget https://github.com/lamhoangtung/dotfile/raw/linux/.tmux.conf -P ~"""
    run_command(command)
Exemple #3
0
def install_iterm_shell_integration():
    """
    Install iTerm shell integration, only work on MacOS iTerm client only,
    I use `imgcat` a lot, loving it.
    """
    print("Installing iterm shell integration")
    command = "curl -L https://iterm2.com/shell_integration/install_shell_integration_and_utilities.sh | bash"
    run_command(command)
Exemple #4
0
def install_nvtop():
    """
    Install nvtop which is an amazing tool for monitoring NVIDIA GPU
    """
    print("Installing nvtop")
    command = """git clone https://github.com/Syllo/nvtop.git
                 mkdir -p nvtop/build && cd nvtop/build && cmake .. && make && make install && cd
                 rm -rf nvtop"""
    run_command(command)
Exemple #5
0
def config_bashrc():
    """
    Add usefull bash configuration that I use everyday
    """
    print("Configuring .bashrc")
    command = """echo "export LD_LIBRARY_PATH=/usr/lib64-nvidia" >> /root/.bashrc
                 echo "alias ls='ls --color'" >> ~/.bashrc
                 echo "alias ll='ls --color -l'" >> ~/.bashrc
                 echo "alias l='ls --color -lA'" >> ~/.bashrc
                 echo "alias cpwd='pwd|pbcopy'" >> ~/.bashrc"""
    run_command(command)
Exemple #6
0
def install_gdrive_rclone():
    """
    Install gdrive and rclone, which are the CLI that I use to interact with
    various clould storage services.
    """
    print("Installing gdrive and rclone")
    command = """wget https://github.com/lamhoangtung/gdrive/releases/download/linux-x64/gdrive-linux-x64
                 mv gdrive-linux-x64 gdrive
                 chmod +x gdrive
                 install gdrive /usr/local/bin/gdrive
                 rm -rf gdrive
                 curl https://rclone.org/install.sh | bash"""
    run_command(command)