Skip to content

Instantly share code, notes, and snippets.

View smelike's full-sized avatar
🎯
Focusing

smelike smelike

🎯
Focusing
View GitHub Profile
{"sig":"fb69c67e5ab709175d4bd90b66aec765d2fa13e06e50d1fdd52c37175963e80d92be8a15d77c49cd4ed049606bef2e913c38104b73a0eff5fd56b15330773ece1","msghash":"6fcdcd1a692b1d69423fe87c11596b7c8cacfb00a0f4e86b7b74843a90d99a0d"}
{"sig":"fb69c67e5ab709175d4bd90b66aec765d2fa13e06e50d1fdd52c37175963e80d92be8a15d77c49cd4ed049606bef2e913c38104b73a0eff5fd56b15330773ece1","msghash":"6fcdcd1a692b1d69423fe87c11596b7c8cacfb00a0f4e86b7b74843a90d99a0d"}
{"sig":"fb69c67e5ab709175d4bd90b66aec765d2fa13e06e50d1fdd52c37175963e80d92be8a15d77c49cd4ed049606bef2e913c38104b73a0eff5fd56b15330773ece1","msghash":"6fcdcd1a692b1d69423fe87c11596b7c8cacfb00a0f4e86b7b74843a90d99a0d"}
{"sig":"fb69c67e5ab709175d4bd90b66aec765d2fa13e06e50d1fdd52c37175963e80d92be8a15d77c49cd4ed049606bef2e913c38104b73a0eff5fd56b15330773ece1","msghash":"6fcdcd1a692b1d69423fe87c11596b7c8cacfb00a0f4e86b7b74843a90d99a0d"}
@smelike
smelike / default
Created October 13, 2016 08:45 — forked from jason-fonseca/default
cat /etc/nginx/nginx.conf
galaxy:/usr/share/nginx/html# cat /etc/nginx/sites-enabled/default
server {
listen *:80; ## listen for ipv4; this line is default and implied
listen [::]:80 default ipv6only=on; ## listen for ipv6
root /usr/share/nginx/www;
index index.php index.html index.htm;
# Make site accessible from http://localhost/
#server_name _;
# location / {
# # First attempt to serve request as file, then

Quick install PHP 7.0:

1. Install depends PHP 7.0
$ brew install autoconf automake gmp homebrew/versions/bison27 gd freetype t1lib gettext zlib mcrypt
2. Configure PHP 7.0
$ git clone --depth=1 https://github.com/php/php-src.git

$ cd php-src

var performance = (function () {
var my = {};
// Wrap a function body in this to return a copy that instruments itself
// If you want this to be useful, you should give your profiled function a name,
// otherwise it will be identified as "", which is less than useful.
my.profile = function (func) {
return function () {
var start = new Date().getTime(),
time,