Fira Code
Source Code Pro
Menlo, Monaco, Consolas, ‘Courier New’
Last active
July 9, 2024 14:47
-
-
Save pulkitgoyal56/4b1b573c408d3a7d488fe77d20c984c7 to your computer and use it in GitHub Desktop.
Scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
## Clone Gist to ~/scripts | |
git clone git@gist.github.com:4b1b573c408d3a7d488fe77d20c984c7.git ~/scripts | |
## Run Setup Script | |
~/scripts/setup.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export H="$HOME" # "/mnt/c/Users/pulki" | |
export P="$HOME/projects" | |
# ZSH_THEME="spaceship" | |
# plugins=(git ssh tmux zsh-autosuggestions zsh-syntax-highlighting zsh-completions zsh-vi-mode zsh-history-substring-search) # autojump | |
source $H/configs/.zshrc | |
# """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
alias cdy="" | |
alias cdu="" | |
alias yui="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
sudo apt install -y htop neofetch \ | |
tmux screen \ | |
reptyr \ | |
ranger nnn \ | |
exa \ | |
zsh \ | |
fonts-firacode \ | |
nodejs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Install Miniconda | |
wget https://repo.anaconda.com/miniconda/Miniconda3-py310_22.11.1-1-Linux-x86_64.sh | |
bash Miniconda3-latest-Linux-x86_64.sh | |
## Create 'playground' environment | |
conda env create -f playground_environment.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
git clone https://github.com/pulkitgoyal56/configs.git ~/configs | |
./symlink.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
git config --global user.name "Pulkit Goyal" | |
git config --global user.email "pulkitmds@gmail.com" | |
git config --global init.defaultBranch main | |
git config --global core.editor vim | |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: playground | |
channels: | |
# - defaults | |
- nodefaults | |
- conda-forge | |
- pytorch | |
dependencies: | |
- requests | |
# - flask | |
# - beautifulsoup4 | |
- numpy | |
- pandas | |
- scipy | |
- sympy | |
- matplotlib | |
- seaborn | |
# - plotly | |
- ipython | |
- jupyterlab | |
- ipdb | |
- ipympl | |
- scikit-learn | |
- fire | |
- rich | |
- tqdm | |
- pytorch | |
- torchvision | |
- cpuonly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
## Install Packages | |
./apt.sh | |
## Configure Git | |
./git.sh | |
## Configure Configs | |
./configs.sh | |
## Configure ZSH | |
./zsh.zsh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# ln -s $HOME/configs/.zshrc .zshrc | |
# ln -s $HOME/configs/.vimrc .vimrc | |
# ln -s $HOME/configs/.jupyter .jupyter | |
# ln -s $HOME/configs/.tmux.conf .tmux.conf | |
# ln -s $HOME/configs/.condarc .condarc | |
for file in $HOME/configs/* | |
do | |
if [ "$(basename "$file")" != "." ] && [ "$(basename "$file")" != ".." ] && \ | |
[ "$(basename "$file")" != ".gitignore" ] && [ "$(basename "$file")" != "README" ]; then | |
ln -s "$file" "$HOME/$(basename "$file")" | |
fi | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
# ## Change shell to zsh | |
# chsh -s $(which zsh) | |
## Install Oh My Zsh | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
## Install Spaceship-Prompt | |
git clone https://github.com/spaceship-prompt/spaceship-prompt.git "${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/spaceship-prompt" --depth=1 | |
ln -s "${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/spaceship-prompt/spaceship.zsh-theme" "${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/spaceship.zsh-theme" | |
## Install plugins | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions | |
git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search | |
git clone https://github.com/jeffreytse/zsh-vi-mode ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-vi-mode | |
## Modify ~/.zshrc | |
# ZSH_THEME="spaceship" | |
# plugins=(git ssh tmux zsh-autosuggestions zsh-syntax-highlighting zsh-completions zsh-vi-mode zsh-history-substring-search) # autojump | |
# ## Install Znap! | |
# git clone --depth 1 -- https://github.com/marlonrichert/zsh-snap.git | |
# source zsh-snap/install.zsh | |
# | |
# ## Install Zsh Plugins | |
# znap source zsh-users/zsh-syntax-highlighting | |
# znap source zsh-users/zsh-autosuggestions | |
# znap source zsh-users/zsh-completions | |
# znap source zsh-history-substring-search | |
# znap source jeffreytse/zsh-vi-mode | |
# # znap source marlonrichert/zsh-autocomplete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment