Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 66015c7762 | |||
| 1d947a4c9a | |||
| 1beccf1252 | |||
| 1333250def | |||
| fff6f346cb | |||
| 553b019911 | |||
| 89d164c957 | |||
| 521541490d | |||
| bfcf494bba |
+2
-1
@@ -19,7 +19,7 @@ install_git_repo () {
|
||||
# Install packages
|
||||
sudo apt update
|
||||
sudo apt upgrade
|
||||
sudo apt install minicom ssh git tig ack tree npm cargo python3-pip curl zsh
|
||||
sudo apt install minicom ssh git tig ripgrep tree npm python3-pip curl zsh
|
||||
|
||||
# Install Oh my ZSH
|
||||
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||
@@ -57,6 +57,7 @@ install_git_repo https://github.com/junegunn/fzf.git $HOME/.fzf
|
||||
$HOME/.fzf/install
|
||||
|
||||
# Install navi
|
||||
curl https://sh.rustup.rs -sSf | sh
|
||||
cargo install navi
|
||||
mkdir -p $HOME/.local/share/navi/cheats
|
||||
ln -sfn $HOME/.dotfiles/navi/ $HOME/.local/share/navi/cheats/vulporuza
|
||||
|
||||
@@ -27,7 +27,7 @@ sudo docker compose -f <file> logs --tail 100 <service>
|
||||
# Print and follow logs of a compose YAML
|
||||
sudo docker compose -f <file> logs --tail 100 -f
|
||||
|
||||
# Print and follow logs of a compose YAML
|
||||
# Print and follow service logs of a compose YAML
|
||||
sudo docker compose -f <file> logs --tail 100 -f <service>
|
||||
|
||||
# Remove volume of a compose YAML
|
||||
|
||||
+27
-2
@@ -38,8 +38,8 @@ git push --set-upstream <remote_name> <branch_name>
|
||||
# Displays formatted log of commits for a repo
|
||||
git log --all --decorate --oneline --graph
|
||||
|
||||
# Clear everything
|
||||
git clean -dxf
|
||||
# Clean everything
|
||||
git clean -fdx
|
||||
|
||||
# Add a new module
|
||||
git submodule add <repository> <path>
|
||||
@@ -67,5 +67,30 @@ git push origin <name>
|
||||
git tag -d <tag_name>
|
||||
git push -d origin <tag_name>
|
||||
|
||||
# Create a patch from current full diff
|
||||
git diff > <patch_name>.patch
|
||||
|
||||
# Create a patch from current file diff
|
||||
git diff <diff_file> > <patch_name>.patch
|
||||
|
||||
# Create a patch from commit(s)
|
||||
git format-patch <first_commit>..<last_commit>
|
||||
|
||||
# Show a diff patch
|
||||
git apply --stat <patch_name>
|
||||
|
||||
# Check a diff patch
|
||||
git apply --check <patch_name>
|
||||
|
||||
# Apply a diff patch
|
||||
git apply <patch_name>
|
||||
|
||||
# Apply a commit patch
|
||||
git am <patch_name>
|
||||
|
||||
# Variables
|
||||
$ tag_name: git tag -l | awk '{print $1}'
|
||||
$ diff_file: git diff --name-only | awk '{print $1}'
|
||||
$ first_commit: git log -n 20 --oneline | fzf --preview 'git show --color=always {1}' | awk '{print $1}'
|
||||
$ last_commit: git log -n 20 --oneline | fzf --preview 'git show --color=always {1}' | awk '{print $1}'
|
||||
$ patch_name: ls *.patch | awk '{print $1}'
|
||||
|
||||
Reference in New Issue
Block a user