Skip to content

Instantly share code, notes, and snippets.

@liwo
liwo / Dockerfile
Created Nov 5, 2019
Tideways Xhprof error in FPM setup
View Dockerfile
FROM php:7.1.30-fpm-buster
#FROM php:7.3.11-fpm-buster
RUN sed -ie 's/pm.max_children = 5/pm.max_children = 1/;s/pm.start_servers = 2/pm.start_servers = 1/;s/pm.max_spare_servers = 3/pm.max_spare_servers = 1/' /usr/local/etc/php-fpm.d/www.conf
ADD https://github.com/tideways/php-xhprof-extension/releases/download/v5.0.1/tideways-xhprof_5.0.1_amd64.deb /root/tideways-xhprof_5.0.1_amd64.deb
RUN dpkg -i /root/tideways-xhprof_5.0.1_amd64.deb
RUN echo 'php_admin_value[extension] = /usr/lib/tideways_xhprof/tideways_xhprof-7.1.so' >> /usr/local/etc/php-fpm.d/www.conf
@liwo
liwo / Gruntfile.js
Created Jun 8, 2015
Minimal setup to demonstrate sentry problem with sourcesContent in sourcemaps. To build it, run `npm install && bower install && grunt`
View Gruntfile.js
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
concat: {
options: {
sourceMap: true
},
broken: {
src: ['bower_components/jquery/dist/jquery.min.js', 'bower_components/angular/angular.min.js', 'bower_components/angular-strap/dist/angular-strap.min.js', 'bower_components/raven-js/dist/raven.min.js'],