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
| # read speed test with hdparm | |
| hdparm -Tt /dev/sda | |
| # read speed test with dd (posibly buffered) | |
| dd if=/path/to/drive/mount/testfile of=/dev/null bs=1M count=1024 | |
| # read speed test with dd (flushed buffer) | |
| sysctl -w vm.drop_caches=3 | |
| dd if=/path/to/drive/mount/testfile of=/dev/null bs=1M count=1024 |
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
| # Display drive identification | |
| hdparm -i /dev/sda | |
| # Detailed/current information directly from drive | |
| hdparm -I /dev/sda | |
| # Display drive configuration | |
| hdparm /dev/sda |
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
| # switch to HDMI | |
| pactl set-card-profile 0 output:hdmi-stereo | |
| # switch to analog Stereo | |
| pactl set-card-profile 0 output:analog-stereo+input:analog-stereo |
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
| RewriteEngine On | |
| RewriteCond %{REQUEST_URI} ^/pathtopiwik/?(index.php)?$ | |
| RewriteCond %{QUERY_STRING} !^module=CustomOptOut&action=optOut(.*)?$ | |
| RewriteCond %{REMOTE_ADDR} !^(192\.168\.0\.1)|(192\.168\.0\.2)$ | |
| RewriteRule ^(.*)$ - [F,L] | |
| # Line 3 is the exception for the Opt-Out option | |
| # Line 4 contain the ip addresses with granted access to the login page |