Coder Social home page Coder Social logo

dotfiles's Introduction

Necessities

  • get packages
sudo apt install tmux wget vim zsh htop make gcc g++ curl openssh-server

git

git config --global user.email "[email protected]"
git config --global user.name "robert1003"
git config --global core.editor vim

vim

curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  • setup vim
# for YCM
sudo apt install build-essential cmake vim-nox python3-dev
sudo apt install mono-complete golang nodejs openjdk-17-jdk openjdk-17-jre npm

cp .vimrc ~/.vimrc
open vim and type :PlugInstall

zsh

chsh -s /bin/zsh
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
  • modify ~/.zshrc
    • add export TERM="xterm-256color" under export ZSH=...
    • change ZSH_THEME to ZSH_THEME="powerlevel10k/powerlevel10k"
    • . ~/.zshrc to update change

tmux

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
cp .tmux.conf ~/.tmux.conf
  • Install tmux plugins
tmux
Prefix-I

Optionals

gdb & gdb theme

  • install gdb
sudo apt install gdb
  • install gdb-gef, gdb-peda, pwngdb (you may choose what you use)
# peda: https://github.com/longld/peda
git clone https://github.com/longld/peda.git ~/peda
echo "source ~/peda/peda.py" >> ~/.gdbinit

# gef: https://gef.readthedocs.io/en/latest/config/
wget -q -O- https://github.com/hugsy/gef/raw/master/scripts/gef.sh | sh
export LC_CTYPE=C.UTF-8 # for unicode problem
# or...
git clone https://github.com/hugsy/gef.git  # or git pull to update
echo 'source /path/to/gef.py' >> ~/.gdbinit

# pwngdb: https://github.com/scwuaptx/Pwngdb
git clone https://github.com/scwuaptx/Pwngdb.git
cp ~/Pwngdb/.gdbinit ~/ # may manually change gdb-peda to gef

nvm

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.0/install.sh | bash
command -v nvm # verify install

pyenv

  • Install
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
# set the following in zshrc
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
  eval "$(pyenv init -)"
fi
  • Install related package
sudo apt-get install -y build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev python-openssl git
# Alternative of libreadline-dev:
sudo apt install libedit-dev

pyenv virtualenv

git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.zshrc

jupyter notebook

  • install packages
pip install jupyterthemes
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
  • set themes
jt -t gruvboxl -fs 95 -tfs 11 -nfs 115 -cellw 88% -T

ngrok

dotfiles's People

Contributors

robert1003 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.