Skip to content

Instantly share code, notes, and snippets.

@Soneji
Soneji / git checkout-all-branches.sh
Created March 31, 2023 10:48 — forked from wilmarvh/git checkout-all-branches.sh
git checkout-all-branches
#!/bin/bash
#Whenever you clone a repo, you do not clone all of its branches by default.
#If you wish to do so, use the following script:
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v main `; do
git branch --track ${branch#remotes/origin/} $branch
done
@Soneji
Soneji / tutorial_kali_autologin_afterupdate.txt
Created March 6, 2019 20:19 — forked from intrd/tutorial_kali_autologin_afterupdate.txt
Kali light xfce4 root autologin (works after lightdm update)
## Kali light xfce4 root autologin (works after lightdm update)
# @author intrd - http://dann.com.br/
# @license Creative Commons Attribution-ShareAlike 4.0 International License - http://creativecommons.org/licenses/by-sa/4.0/
After lighdtdm update root autologin is broken fix doing this:
nano /etc/lightdm/lightdm.conf
at [Seat:*] group uncomment/edit:
autologin-user=root
autologin-user-timeout=0