Skip to content

Instantly share code, notes, and snippets.

@KJoke70
KJoke70 / pacman-groups.md
Last active November 9, 2019 14:05
Remove (big) pacman groups and keep specific packages
  • mark packages in that group as dependencies (sudo pacman -D --asdeps $(pacman -Qgq <group>))
  • mark the packages you want to keep as explicitly installed (pacman -D --asexplicit <pkg1> <pkg2> ...)
  • all other packages of the group should now be orphans (check with pacman -Qtdq)
  • uninstall them (pacman -Rns $(pacman -Qtdq))
--- TLP 1.2.1.901 --------------------------------------------
+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
TLP_PERSISTENT_DEFAULT=0
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60
@KJoke70
KJoke70 / ac
Created March 8, 2019 15:30
tlp 1.2 beta test #2
--- TLP 1.1.909 --------------------------------------------
+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
TLP_PERSISTENT_DEFAULT=0
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60
--- TLP 1.1.907 --------------------------------------------
+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
TLP_PERSISTENT_DEFAULT=0
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60
@KJoke70
KJoke70 / git-pushing-multiple.rst
Last active February 2, 2019 02:27 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just