mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-17 23:24:52 +00:00
Update
This commit is contained in:
parent
fee575a446
commit
8386275de4
2 changed files with 12 additions and 1 deletions
|
|
@ -1,5 +1,10 @@
|
|||
#!/usr/bin/env sh
|
||||
if [ "$1" == "start" ]; then
|
||||
if [ "$1" == "start" ] && [ -z "$2" ]; then
|
||||
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo
|
||||
for fgovernor in /sys/devices/system/cpu/cpufreq/policy*/scaling_governor; do echo performance > "${fgovernor}"; done
|
||||
exit
|
||||
elif [ "$1" == "start" ] && [ "$2" == "turbo" ]; then
|
||||
echo 0 > /sys/devices/system/cpu/intel_pstate/no_turbo
|
||||
for fgovernor in /sys/devices/system/cpu/cpufreq/policy*/scaling_governor; do echo performance > "${fgovernor}"; done
|
||||
exit
|
||||
elif [ "$1" == "stop" ]; then
|
||||
|
|
|
|||
|
|
@ -191,6 +191,12 @@ alias pkgfile='pkgfile -v'
|
|||
alias hibernate='systemctl hibernate'
|
||||
alias shutdown='shutdown -n now'
|
||||
|
||||
# Alias for going to a temporal dir
|
||||
alias cdtemp='cd $(mktemp -d)'
|
||||
|
||||
# Alias to show ip addresses in short and color
|
||||
alias ipa='ip -c -br a'
|
||||
|
||||
# Avoid pip installing packages as root/sudo, execute the following line in your terminal or just delete the # at the begin
|
||||
#install -Dm644 /dev/stdin ~/.config/pip/pip.conf <<< $'[install]\nuser = yes\n'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue