Skip to content

Instantly share code, notes, and snippets.

View clm-a's full-sized avatar

Clément Alexandre clm-a

View GitHub Profile
@clm-a
clm-a / manjaro.sh
Last active April 9, 2025 09:59
Manjaro Install Party
#!/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
@clm-a
clm-a / git_commands.sh
Created October 17, 2012 17:08
Git commands
git log --graph --oneline --all
git rebase --onto topic1~2 topic2~1 topic2
@clm-a
clm-a / root_commit.sh
Created March 10, 2012 10:08
Insert a blank root commit on an existing repo
# 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)