This file contains hidden or 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
| git config --global alias.tree 'log --graph --full-history --all --color —pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s"' |
This file contains hidden or 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
| find /path-to-directory -mtime +5 -exec rm -f {} \; | |
| find /path-to-directory -mtime +5 -exec ls -l {} \; |
This file contains hidden or 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
| arcdel() { | |
| if [ -z $1 ]; then | |
| echo "Error: missing branch name" | |
| else | |
| git checkout $1 | |
| git pull origin $1 | |
| git tag archive/$1 | |
| git push origin archive/$1 | |
| git checkout master | |
| git push origin --delete $1 |
This file contains hidden or 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
| docker run -d --rm --name es -p 9200:9200 -p 9300:9300 elasticsearch:5.2.0 |
This file contains hidden or 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
| http://www.phpbench.com/ |
This file contains hidden or 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
| { | |
| "Ansi 5 Color" : { | |
| "Green Component" : 0.1080246344208717, | |
| "Blue Component" : 0.4351663589477539, | |
| "Red Component" : 0.7773894071578979 | |
| }, | |
| "Tags" : [ | |
| ], | |
| "Ansi 12 Color" : { |
Without wasting much time, Let us get started!
Follow these simple instructions:
-
Step 1: Login into your WHM panel and using
easyapacheenableMemcache -
Step 2: SSH into your server and fire this command
yum install memcached.x86_64 php-pecl-memcache.x86_64
This file contains hidden or 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
| add_action('wp_mail_failed', 'log_mailer_errors', 10, 1); | |
| function log_mailer_errors($mailer){ | |
| $fn = ABB_FRAMEWORK . 'mail.log'; // say you've got a mail.log file in your server root | |
| $fp = fopen($fn, 'a'); | |
| fputs($fp, "Mailer Error: " . json_encode($mailer->get_error_messages()) ."\n"); | |
| fclose($fp); | |
| } | |
| add_action( 'phpmailer_init', 'mailer_config', 10, 1); | |
| function mailer_config(PHPMailer $mailer){ |
This file contains hidden or 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
| cat /dev/null > ~/.bash_history && history -c && exit |

