ps -ef | grep httpd | wc -lnetstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'| #!/bin/bash | |
| # bash generate random alphanumeric string | |
| # | |
| # bash generate random 32 character alphanumeric string (upper and lowercase) and | |
| NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
| # bash generate random 32 character alphanumeric string (lowercase only) | |
| cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 |
To setup your computer to work with *.dev domains, e.g. project.dev, awesome.dev and so on, without having to add to your hosts file each time.
| #!/bin/bash | |
| ## TODO: | |
| # Figure out how to get nginx file-aio module working (incompatible?) | |
| ## Get and install tools and dependencies | |
| sudo apt-get -y install build-essential zlib1g-dev libpcre3 libpcre3-dev libbz2-dev | |
| ## Get installed OpenSSL version | |
| # Use `whereis openssl` to check if installed first |