Code moved to its own public repo at https://github.com/DIOHz0r/holidays
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Code founded from http://kedar.nitty-witty.com/blog/search-through-all-databases-tables-columns-in-mysql | |
What will you do if one day some one ask you to find single string in all databases, all tables and in all columns? | |
I just read such question and tried to find a “ready made” solution. | |
Reusability is Key Concept !! | |
But I ended up finding no “copy-paste” material. Some of the posts like http://vyaskn.tripod.com/search_all_columns_in_all_tables.htm helped me out and supported my thinking of “how to do it” ! |
I hereby claim:
- I am diohz0r on github.
- I am diohz0r (https://keybase.io/diohz0r) on keybase.
- I have a public key ASDluboN65ZaCa3GqCFEkahQHS-IWzctnLo3zYqXhUE2bwo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### Set Language | |
TEXTDOMAIN=virtualhost | |
### Set default parameters | |
action=$1 | |
domain=$2 | |
rootDir=$3 | |
owner=$(who am i | awk '{print $1}') | |
apacheUser=$(ps -ef | egrep '(httpd|apache2|apache)' | grep -v root | head -n1 | awk '{print $1}') |
I hereby claim:
- I am diohz0r on github.
- I am diohz0r (https://keybase.io/diohz0r) on keybase.
- I have a public key whose fingerprint is 0D79 8D10 F048 0DF3 86F8 94AE F208 2F34 52ED B938
To claim this, I am signing this object: