check-httpd.sh
Here is a quick little bash script to let you know if apache is up and running or not and will email a specific user with details. cd /root/bin/ touch…
Here is a quick little bash script to let you know if apache is up and running or not and will email a specific user with details. cd /root/bin/ touch…
CIDR stands for Classless Inter-Domain Routing. CIDR was developed in the 1990s as a standard scheme for routing network traffic across the Internet.
/27 1/8th of a Class C 32 hosts
/26 1/4th of a Class C 64 hosts
/25 1/2 of a Class C 128 hosts
/24 1 Class C 256 hosts
/23 2 Class C 512 hosts
/22 4 Class C 1,024 hosts
/21 8 Class C 2,048 hosts
/20 16 Class C 4,096 hosts
/19 32 Class C 8,192 hosts
/18 64 Class C 16,384 hosts
/17 128 Class C 32,768 hosts
/16 256 Class C 65,536 hosts (= 1 Class B)
/15 512 Class C 131,072 hosts
/14 1,024 Class C 262,144 hosts
/13 2,048 Class C 524,288 hosts
(more…)
In order to setup eternal bash history for all users: vim /etc/bashrc insert if [ "$BASH" ]; then export HISTTIMEFORMAT="%Y-%m-%d_%H:%M:%S " export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ; }"'echo "`date +'%y.%m.%d-%H:%M:%S:'`" $USER "("$ORIGINAL_USER")" "COMMAND:…
http://unix4lyfe.org/darkstat/
darkstat is an ntop-workalike network statistics gatherer. It runs as a background process on a cable or DSL router, uses libpcap to capture network traffic, and has a Web interface that serves up reports of statistics such as data transferred by host, port, and protocol. It also has a neat bandwidth usage graph.
The “at” command lets you execute a command or script at a later time, you can set the time in many different ways and even have the result mailed to you after the command has been executed.
Here are some examples:
Here's how to install node.js on your cPanel server yum install openssl-devel cd /usr/local/src wget http://nodejs.org/dist/v0.6.8/node-v0.6.8.tar.gz tar zxvf node-v0.6.8.tar.gz cd node-v0.6.8 ./configure make make install If you get the error:…
From CrazyTerabyte Blog
prettyping.sh – A better UI for watching ping responses
Do you run ping tool very often? Do you find yourself squeezing your eyes to see if a packet has been lost? Do you want to have a better view of the latency and of the lost packets over time? Then you need prettyping.sh, a wrapper around the standard ping tool with the objective to make the output prettier, by making it colorful, more compact, and easier to read. How? Look at the following animated GIF (being played at 4× the actual speed):