|
Oversikt over de mest leste RSS'ene mine |
|
Pario TechnoBlob
|
A cronological documentation test project, nothing serious, really!
|
-
Show mounted partitions with a nice layout
This command shows the result of a mount command in a nice table layout # mount | column -t Result /dev/sda1 on / type ext4 (rw,errors=remount-ro) /dev/sda2 on /home type ext4 (rw) var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMTAvMDkvMTAvc2hvdy1tb3VudGVkLXBhcnRpdGlvbnMtd2l0aC1hLW5pY2UtbGF5b3V0Lzx3cHRiPlNob3cgbW91bnRlZCBwYXJ0aXRpb25zIHdpdGggYSBuaWNlIGxheW91dDx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";
-
Compare a remote file with a local file using ssh and diff
# ssh user@example.com cat /path/to/remotefile | diff /path/to/localfile - var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMTAvMDkvMDkvY29tcGFyZS1hLXJlbW90ZS1maWxlLXdpdGgtYS1sb2NhbC1maWxlLXVzaW5nLXNzaC1hbmQtZGlmZi88d3B0Yj5Db21wYXJlIGEgcmVtb3RlIGZpbGUgd2l0aCBhIGxvY2FsIGZpbGUgdXNpbmcgc3NoIGFuZCBkaWZmPHdwdGI%2BaHR0cDovL3BhcmlvLm5vPHdwdGI%2BUGFyaW8gVGVjaG5vQmxvYg%3D%3D";
-
Redirect failing URLs to other webserver
A typical FAQ about URL rewriting is how to redirect failing requests on webserver A to webserver B. Usually this is done via ErrorDocument CGI-scripts in Perl, but there is also a mod_rewrite solution. But notice that this performs more poorly than using an ErrorDocument CGI-script! Place this in your httpd.conf og .htaccess file on [...]
-
Force fsck at reboot
There are at least two ways to force a disk check (fsck) at reboot. Creating a /forcefsck file As root run the following command # touch /forcefsck Using the shutdown command # shutdown -rF now Note This command switch might not work on modern Linux operating systems since they use Upstart instead of the old [...]
-
HP Compaq 8540p hardware list in linux
You can use lspci -n to analyce what hardware is on your system. My new laptop a HP EliteBook 8540p gives the following output: 00:00.0 0600: 8086:0044 (rev 12) 00:01.0 0604: 8086:0045 (rev 12) 00:16.0 0780: 8086:3b64 (rev 06) 00:19.0 0200: 8086:10ea (rev 06) 00:1a.0 0c03: 8086:3b3c (rev 06) 00:1b.0 0403: 8086:3b56 (rev 06) 00:1c.0 [...]
|
|