Last active
July 25, 2025 14:54
-
-
Save mRoca/eaefbe1160f2e06f31d3fc778b035750 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get dist-upgrade | |
sudo apt-get install curl vim git htop iftop terminator zsh jq p7zip | |
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - && sudo apt-get install -y nodejs | |
sudo snap install vlc | |
sudo snap install btop | |
# Chromium doesn't allow gg connect anymore | |
# Chrome : https://www.google.com/chrome/?platform=linux then `sudo apt install ./Downloads/....deb | |
sudo add-apt-repository ppa:phoerious/keepassxc && sudo apt update && sudo apt install keepassxc | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
vim ~/.zshrc | |
################ | |
export PATH=$HOME/bin:$HOME/.local/bin/:/usr/local/bin:$PATH | |
ZSH_THEME="awesomepanda" | |
# For root user : ZSH_THEME="ys" | |
plugins=(git docker docker-compose sudo aws terraform) | |
unsetopt AUTO_CD | |
alias g="git" | |
alias d="docker" | |
alias dc="docker compose" | |
alias fig="docker compose" | |
alias dr="docker run --rm -ti" | |
alias f="fuck" | |
alias t="terraform" | |
alias dive="docker run --rm -it -v ~/.docker:/root/.docker:ro -v /var/run/docker.sock:/var/run/docker.sock wagoodman/dive:latest" | |
alias e="docker/exec" | |
################### | |
# docker: see https://docs.docker.com/engine/install/ubuntu/ | |
sudo usermod -aG docker $USER | |
sudo service docker start | |
docker run --rm hello-world | |
echo -e '#!/bin/sh\ndocker compose --compatibility "$@"' > /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose | |
sudo wget https://github.com/bcicen/ctop/releases/download/v0.7.7/ctop-0.7.7-linux-amd64 -O /usr/local/bin/ctop | |
sudo chmod +x /usr/local/bin/ctop | |
vim ~/.gitconfig | |
``` | |
[push] | |
default = simple | |
[alias] | |
lg = log --abbrev-commit --decorate --date=relative --color --graph --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ar)%Creset' | |
lgall = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
c = commit | |
co = checkout | |
st = status | |
f = fetch | |
br = branch | |
a = add | |
r = rebase | |
rere = rebase -i HEAD~2 | |
rerere = rebase -i HEAD~3 | |
[rerere] | |
enabled = true | |
[commit] | |
gpgSign = true | |
[tag] | |
forceSignAnnotated = true | |
[pull] | |
ff = only | |
``` | |
sudo snap install --classic phpstorm | |
sudo snap install --classic go | |
sudo snap install --classic goland | |
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh | |
sudo snap install slack | |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" | |
unzip awscliv2.zip | |
sudo ./aws/install | |
rm -rf aws awscliv2.zip | |
If oh-my-zsh is slow in some git projets: | |
```bash | |
git config --add oh-my-zsh.hide-dirty 1 | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment