View myserver.conf
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
server { | |
listen 80 ; | |
# listen [::]:80 ipv6only=on; | |
root /var/www/html; | |
index index.php index.html index.htm; | |
server_name y.relm.us; | |
location / { |
View uniques.js
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
const {range, shuffle} = require('lodash'); | |
const f = require('faker'); | |
let dup = (a) => a.map((el) => JSON.parse(JSON.stringify(el))); | |
console.time('seed'); | |
let a = range(0, 20000).map(() => ({ | |
id: f.random.uuid(), | |
name: f.name.findName(), | |
about: f.lorem.paragraphs(1), |
View vimrc
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
syntax on | |
set backupdir=.backup/,~/.backup/,/tmp// | |
set directory=.swp/,~/.swp/,/tmp// | |
set undodir=.undo/,~/.undo/,/tmp// | |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim |
View fpm
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
req #1 : 150ms | |
req #2 : 130ms | |
req #3 : 152ms | |
req #4 : 111ms | |
req #5 : 119ms | |
req #6 : 116ms | |
req #7 : 124ms | |
req #8 : 125ms | |
req #9 : 135ms | |
req #10 : 120ms |
View app.php
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
<?php | |
use div\Std\App; | |
use div\Std\Http; | |
use div\Std\Jobs; | |
use Illuminate\Http\Request; | |
$app = new App('app', __DIR__.'/..', include 'config.php'); |
View module.php
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
<?php namespace div\Core; | |
use Illuminate\Container\Container; | |
use ReflectionFunction; | |
use Closure; | |
use div; | |
class Module extends Container { | |
protected static $scriptClosureMap = []; |
View test.js
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
/// router | |
define( | |
['backbone'], | |
function (backbone) { | |
var router = new backbone.Router; | |
return { | |
route: function (uri, name, handler) { | |
router.route(uri, name, handler); | |
}, |
View example.php
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
<?php | |
class Boxes extends k\Reposed\Repository | |
{ | |
protected function leftJoinOrdersPivot() | |
{ | |
return $this->newJoint(function ($q) { | |
$pivot = Order::repo()->orderedBoxes()->getTable(); | |
$q->leftJoin( | |
$pivot, |
View session.js
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
define(function () { | |
return [function () { | |
var keyName = API_KEY_NAME; | |
var key = localStorage.getItem('sessionKey'); | |
return { | |
keyName: function () { | |
return keyName; | |
}, |
NewerOlder