Skip to content

Instantly share code, notes, and snippets.

View storyflow's full-sized avatar
🎯
Focusing

storyflow storyflow

🎯
Focusing
View GitHub Profile
@storyflow
storyflow / Flexihash.php
Created February 13, 2019 03:53 — forked from zigo928/Flexihash.php
一致性hash算法实现-PHP版
<?php
/**
* Flexihash - A simple consistent hashing implementation for PHP.
*
* The MIT License
*
* Copyright (c) 2008 Paul Annesley
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
<?php
define('XDEBUG', "xdebug");
define('ZEND_DEBUGGER', "Zend Debugger");
function createXmlHeader()
{
return "<?xml version=\"1.0\"?>";
}
@storyflow
storyflow / php7.Dockerfile
Created March 19, 2018 05:44 — forked from zz/php7.Dockerfile
Dockerfile for PHP7 memcache and Redis ext and zmq https://hub.docker.com/r/zhuzhu/php/
FROM php:7.1-fpm
ENV LIBEVENT_VERSION=2.0.22
RUN apt-get -y update && \
apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev \
libpng12-dev libmemcached-dev libmysqlclient-dev libicu-dev libcurl4-nss-dev \
libzmq-dev libpq-dev libyaml-dev zlib1g-dev \
curl git wget netcat && \
rm -rf /var/lib/apt/lists/*