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
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 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 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 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
easyapache
enableMemcache
-
Step 2: SSH into your server and fire this command
yum install memcached.x86_64 php-pecl-memcache.x86_64
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
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 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 |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
<style> | |
body{margin: 0;padding: 0;position: relative;background: #eeeeee} | |
p{margin-bottom: 10px;} | |
</style> | |
</head> |
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
FROM php:7.0-fpm | |
# ... | |
RUN apt-get update && apt-get install -y \ | |
libpq-dev \ | |
libmemcached-dev \ | |
curl | |
# ... |