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
#!/bin/sh | |
sudo pacman -Syu --noconfirm | |
sudo pacman -Syu --needed git base-devel yay ncurses libssh inotify-tools --noconfirm | |
yay -S google-chrome ttf-victor-mono visual-studio-code-bin asdf-vm direnv fish --noconfirm --sudoloop | |
# ASDF | |
echo $'erlang 27.3\nelixir 1.18.3\nnodejs 18.17.0\npostgres 16.6' > $HOME/.tool-versions | |
(cut -d' ' -f1 .tool-versions | xargs -i asdf plugin add {}) && asdf install |
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
git log --graph --oneline --all | |
git rebase --onto topic1~2 topic2~1 topic2 |
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
# from http://stackoverflow.com/a/647451 | |
git symbolic-ref HEAD refs/heads/newroot | |
git rm --cached -r . | |
git clean -f -d | |
# then you apply the same steps | |
git commit --allow-empty -m 'root commit' | |
git cherry-pick $(git rev-list --reverse master | head -1) |