This file contains 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 | |
# NOTE: make file executable with: | |
# chmod +x .git/hooks/pre-commit | |
# Get the current branch name | |
branch=$(git rev-parse --abbrev-ref HEAD) | |
# Check if the current branch is 'main' | |
if [ "$branch" = "main" ]; then |
This file contains 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
cat bat_safe.sh | |
#!/bin/sh | |
sudo tlp setcharge 75 80 BAT0 | |
sudo tlp setcharge 85 95 BAT1 | |
cat bat_normal.sh | |
#!/bin/sh | |
sudo tlp setcharge 93 97 BAT0 |
This file contains 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
http://www.thesis.guru master's thesis guide |