Information about shutdowns and reboots
A easy way to get information about shutdowns and reboots is to run the command last reboot or last -x | grep down
A chronological documentation test project, nothing serious, really!
A easy way to get information about shutdowns and reboots is to run the command last reboot or last -x | grep down
If you have shell access to your webserver this script can be used to upgrade your WordPress installation to the latest version quickly. Always remeber to backup your database and installation files before running it! Do change the bold text to reflect your WordPress Internet address before you run the script. #!/bin/bash CURDIR=$(pwd) SITE=”http://yoursite.com/wordpress” echo […]
By doing the following you can deny certain daemons to be available in specified hours by using hosts.allow and hosts.deny. In my example I will be using the vsftpd daemon by adding tcp_wrapper=YES in /etc/vsftpd.conf. Make sure that your private network has access all the time by adding this in /etc/hosts.allow vsftpd: 192.168.0. Enables access […]
This is a simple oneliner to replace words inline using perl :) # for i in `find ./ -name foo` ; { perl -p -i -e “s/oldword/newword/g” $i ;} You’ll need bash and perl.
TCP Wrapper is a host-based Networking ACL system, used to filter network access to Internet Protocol servers on (Unix-like) operating systems such as Linux or BSD. It allows host or subnetwork IP addresses, names and/or ident query replies, to be used as tokens on which to filter for access control purposes.