Pure bash solution:
$ filename='Some_randoM data1-A'
$ f=${filename//[^[:alnum:]]/}
$ echo "$f"
SomerandoMdata1A
$ echo "${f,,}"
somerandomdata1a
Pure bash solution:
$ filename='Some_randoM data1-A'
$ f=${filename//[^[:alnum:]]/}
$ echo "$f"
SomerandoMdata1A
$ echo "${f,,}"
somerandomdata1a
Plugin Name: HTTP TRACE / TRACK Methods Allowed
To turn off track and trace methods globally on the server add the following line:
vim /etc/httpd/conf/httpd.conf
TraceEnable Off
Read More
Your computer has one, and maybe two, special buttons that you can configure for just these purposes. In addition, you can create shortcuts for these tasks, and assign hotkeys to the shortcuts.
Let’s start with the special buttons that already exist.
In Windows 7, click Start, or in Windows 8, go to the Search charm. Once there, type power
, and select Power Options. In the resulting Control Panel window’s left pane, select Choose what the power buttons do. Read More
With all those new Mobile Devices that are capable to display and handle any kind of data, it is only reasonable to provide your Online content to as much devices as possible and not only Computer.
In this post you will see how easy it is to setup a mobile version of your Website without any Modules or Online Services that are being offered around. Read More
if [ -z “$1″ ]; then echo “usage: ssh-uploadkeys [email protected]” else if [ -e “$HOME/.ssh/id_dsa.pub” ]; then echo “SSH public key found: ~/.ssh/id_dsa.pub” else echo -e ‘\n\n’|ssh-keygen -t dsa -N ” fi cat ~/.ssh/id_dsa.pub| \ ssh $1 ‘cat > tero-authorized_keys && mkdir -p $HOME/.ssh/ && chmod 0700 $HOME /.ssh/ && cat tero-authorized_keys >> .ssh/authorized_keys && chmod 0600 .ssh/authorized_keys && rm tero-authorized_keys && echo “Success, next time you do not need to type password.”||echo “SSH key generation or upload failed.”‘ fi
To create a banner so that whenever a user logs into a system will see some default text, you can couple of options
1. put the default text into /etc/motd
2. type echo “<the text you want to display>” into /etc/profile
3. type echo “<the text you want to display>” into user home .profile file. Read More
TCP wrapper based access List Rules can be included in the two files
/etc/hosts.allow and
/etc/hosts.deny . Read More