sudo yum update
##Install Redis https://gist.github.com/dstroot/2776679
wget https://raw.github.com/gist/2776679/04ca3bbb9f085b192f6aca945120fe12d59f15f9/install-redis.sh
chmod 777 install-redis.sh
./install-redis.sh
| ############################################################################# | |
| # current prompt | |
| ############################################################################# | |
| # \d – Current date | |
| # \t – Current time | |
| # \h – Host name | |
| # \# – Command number | |
| # \u – User name | |
| # \W – Current working directory (ie: Desktop/) | |
| # \w – Current working directory, full path (ie: /Users/Admin/Desktop) |
| <?php | |
| /* vars for export */ | |
| // database record to be exported | |
| $db_record = 'XXXXXXXXX'; | |
| // optional where query | |
| $where = 'WHERE 1 ORDER BY 1'; | |
| // filename for export | |
| $csv_filename = 'db_export_'.$db_record.'_'.date('Y-m-d').'.csv'; | |
| // database variables |
sudo yum update
##Install Redis https://gist.github.com/dstroot/2776679
wget https://raw.github.com/gist/2776679/04ca3bbb9f085b192f6aca945120fe12d59f15f9/install-redis.sh
chmod 777 install-redis.sh
./install-redis.sh
| #!/bin/bash | |
| # Set these variables | |
| USER_NAME="[email protected]" | |
| API_KEY="XXXXXXXX_YOUR_DHQ_API_KEY_XXXXXXXXXXXXX" | |
| START_REV='SOME_ARBITRARY_GIT_REVISION_HASH_TO_START_FROM' | |
| DHQ_API_PROJ="your-project-shortname" | |
| DHQ_BASE_URL="https://yoursite.deployhq.com/" | |
| DHQ_SERVER_GROUP="YOUR_SERVER_GROUP_UUID" | |
| DHQ_SERVER_USERNAME="your-server-username" |
| #!/bin/bash | |
| # This way you can customize which branches should be skipped when | |
| # prepending commit message. | |
| if [ -z "$BRANCHES_TO_SKIP" ]; then | |
| BRANCHES_TO_SKIP=(master develop test) | |
| fi | |
| BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
| BRANCH_NAME="${BRANCH_NAME##*/}" |
| <?php | |
| /*********************************************************** | |
| MYSQL VERSION | |
| ************************************************************/ | |
| $username="root"; $password=""; $database="exam_codes"; | |
| $con = mysql_connect("localhost",$username,$password) or die( "Unable to Connect database"); | |
| mysql_select_db($database,$con) or die( "Unable to select database"); | |
| // Table Name that you want | |
| // to export in csv |