ProTip! Press
CTRL+F, type and find what you need, pressESCandENTERto open the link.
- Open
/etc/modprobe.d/alsa-base.confwith root permissions. - Append
options snd_hda_intel model=alc255-asusand save. - Reboot.
Source: https://forums.linuxmint.com/viewtopic.php?p=1790578#p1790578
- Open
/etc/NetworkManager/conf.d/default-wifi-powersave-on.confwith root permissions. - Replace
wifi.powersave = 3withwifi.powersave = 2and save. - Reboot.
Source: https://askubuntu.com/a/1240386
This file contains hidden or 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 | |
| # $1 - url address of the NFS, $2 - directory to mount | |
| sudo mount -t nfs "$1":/"$2" /mnt/"$2" |
This file contains hidden or 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 | |
| # for each system call line, print its line number instead | |
| strace -f -p "$1" 2>&1 | awk '{ print NR }' # PID should be in $1 |
This file contains hidden or 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 | |
| # trace system calls of process and its forks | |
| strace -f -p "$1" 2>&1 # PID should be in $1 |
This file contains hidden or 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 | |
| # show content of the file every second | |
| watch -n 1 cat /proc/interrupts |
This file contains hidden or 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 | |
| if [ "$#" -gt 0 ]; then # if any arguments | |
| shift "$(($# - 1))" # shift to the last one | |
| echo "$1" # print it | |
| fi |
NewerOlder