Skip to content

Instantly share code, notes, and snippets.

View DIOHz0r's full-sized avatar
💻
available for hire

Domingo Oropeza DIOHz0r

💻
available for hire
View GitHub Profile
@DIOHz0r
DIOHz0r / keybase.md
Created September 19, 2019 01:09
Keybase public proof

Keybase proof

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:

@DIOHz0r
DIOHz0r / virtualhost
Created July 9, 2019 18:40
Bash script for create apache virtualhosts
#!/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}')
@DIOHz0r
DIOHz0r / keybase.md
Created October 2, 2017 13:35
Keybase Validator

Keybase proof

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:

/*
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” !
@DIOHz0r
DIOHz0r / README.md
Last active April 11, 2017 02:51
Abstract class to add an check dates against holidays