create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
<?php | |
/* PHP PBKDF2 implementation | |
* | |
* PBKDF2 is a key derivation function defined in RFC2898. It's used to | |
* generate longer and more secure passwords from short, human-entered | |
* passwords. The number of rounds can be increased to keep ahead of | |
* improvements in CPU/GPU performance. | |
* | |
* You should use a different salt for each password (it's safe to store it |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
<?php | |
/** | |
* Todo: Send a random user agent string and sleep a random amount between requests. | |
*/ | |
if ($_SERVER['REQUEST_METHOD'] == 'POST') { | |
// Extract and sanatize input: | |
$domain = filter_input(INPUT_POST, 'domain', FILTER_SANITIZE_URL); | |
$terms = filter_input(INPUT_POST, 'terms', FILTER_SANITIZE_STRING); | |
// Setup Goutte (which also includes Guzzle): |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Net.Http; | |
using System.Net; | |
namespace HTTP_Test |
<?php | |
use Predis\Client; | |
class RedisSession implements SessionHandlerInterface { | |
private $redis; | |
private $keyPrefix; | |
private $maxLifetime; | |
/** |
package main | |
import ( | |
"math/rand" | |
"testing" | |
"time" | |
) | |
const ( | |
numItems = 100 // change this to see how number of items affects speed |
Dockerfile
that is based on your production image and
simply install xdebug
into it. Exemple:FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
import json | |
import datetime | |
import pytz | |
from random import randint | |
import logging | |
import time | |
import redis | |
main_prefix = "bqueues:" |
package main | |
import ( | |
"context" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" | |
"time" | |
) |
<?php | |
class _╯°□°╯︵┻━┻ extends \Exception {} | |
function _╯°□°╯︵┻━┻($message) { | |
throw new _╯°□°╯︵┻━┻($message); | |
} | |
_╯°□°╯︵┻━┻("Flip Table"); |