Skip to content

Instantly share code, notes, and snippets.

json = {
"component": "root",
"body": [
{
"component": "headline",
"text": "42323"
}
]
}
module.exports = {
props: ['schema', 'model'],
template: 'test'
}
module.exports = {
props: ['schema', 'model'],
template: 'test'
}
@onefriendaday
onefriendaday / Node
Last active September 13, 2016 15:59
Nodejs vs. PHP
Server Software:
Server Hostname: localhost
Server Port: 3300
Document Path: /de/home/
Document Length: 15462 bytes
Concurrency Level: 20
Time taken for tests: 4.585 seconds
Complete requests: 200
@onefriendaday
onefriendaday / php
Created September 13, 2016 15:01
PHP
Server Software:
Server Hostname: localhost
Server Port: 3000
Document Path: /de/home/
Document Length: 11180 bytes
Concurrency Level: 20
Time taken for tests: 10.143 seconds
Complete requests: 200
@onefriendaday
onefriendaday / php-symfony-httpcache
Last active September 13, 2016 15:33
php-symfony-httpcache
Server Software:
Server Hostname: localhost
Server Port: 3000
Document Path: /de/home/
Document Length: 11180 bytes
Concurrency Level: 20
Time taken for tests: 4.918 seconds
Complete requests: 200
Server Software:
Server Hostname: localhost
Server Port: 3000
Document Path: /de/home/
Document Length: 11180 bytes
Concurrency Level: 20
Time taken for tests: 7.859 seconds
Complete requests: 200
@onefriendaday
onefriendaday / Rails
Created September 17, 2016 16:33
Rails
Completed 100 requests
Completed 200 requests
Finished 200 requests
Server Software:
Server Hostname: 127.0.0.1
Server Port: 3002
Document Path: /pages
@onefriendaday
onefriendaday / gulpfile.js
Created February 21, 2017 13:25
Uikit scss transform
var pkg = require('./package.json'),
fs = require('fs'),
path = require('path'),
glob = require('glob'),
mkdirp = require('mkdirp'),
gulp = require('gulp'),
gutil = require('gulp-util'),
concat = require('gulp-concat'),
ignore = require('gulp-ignore'),
rename = require('gulp-rename'),
@onefriendaday
onefriendaday / 01_install_dynatrace.config
Created October 5, 2017 11:39
Dynatrace ElasticBeanstalk Config with Rails Stack and Nginx
container_commands:
01_install_dynatrace_oneagent:
command: "[ -d /opt/dynatrace/oneagent ] || /tmp/Dynatrace-OneAgent.sh"
cwd: /tmp
02_reload_nginx:
command: "service nginx restart"
files:
"/tmp/Dynatrace-OneAgent.sh":
mode: "000755"
owner: root