Skip to content

Instantly share code, notes, and snippets.

View manuelkiessling's full-sized avatar

Manuel Kießling manuelkiessling

View GitHub Profile
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=7.3.0",
"ext-bcmath": "*",
"ext-curl": "*",
"ext-json": "*",
"ext-pcntl": "*",
"ext-sockets": "*",
"ext-zlib": "*",
import { Selector } from 'testcafe';
fixture `Getting Started`
.page `http://devexpress.github.io/testcafe/example`;
test('My first test', async t => {
await t
.typeText('#developer-name', 'John Smith')
.click('#submit-button');
});
@manuelkiessling
manuelkiessling / generate-assets-manifest.php
Created December 21, 2017 12:23
Generate manifest.json file with hashes of all asset files in a folder, recursively
#!/usr/bin/env php
<?php
$path = realpath(__DIR__ . '/../web/assets');
$obsoletePrefix = realpath(__DIR__ . '/../web/') . '/';
$objects = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path, FilesystemIterator::KEY_AS_PATHNAME | RecursiveDirectoryIterator::FOLLOW_SYMLINKS));
$hashes = [];
insert into statistics (testcase_id, day_bucket, testresult_id, testresult_datetime_run, number_of_200) values ('a', '2016-02-17', 'a3', '2016-02-17 18:18:31+0000', 15);
@manuelkiessling
manuelkiessling / gist:b1dfae26d9b665321185
Last active August 29, 2015 14:23
Thoughts and questions about JourneyMonitor Analytics architecture re Cassandra/Spark

JourneyMonitor (see https://github.com/journeymonitor and http://journeymonitor.com/) allows users to upload a Selenium test script and have this script run regularly in a headless Firefox.

The service notifies the user if the script run failed, and additionally collects HAR data for each run, like this one: http://codebeautify.org/jsonviewer/c6b9d9

Next, we would like to provide the user with more info regarding the collected HAR-based performance metrics. For each testcase, we would like to present a summary like this:

  • Average overall load time of pages
  • Average load time of all CSS assets (or JS assets or image assets etc.)
  • Average number of 404s when requesting assets
<!DOCTYPE html>
<html lang='de'>
<head>
<meta charset='utf-8'>
<meta content='width=device-width, initial-scale=1.0' name='viewport'>
<title>Roombeats - Häufig gestellte Fragen</title>
<meta content='Roombeats - Häufig gestellte Fragen' name='description'>
<meta content='keyword1,keyword2,keyword3' name='keywords'>
<meta content='placeholder' name='author'>
@manuelkiessling
manuelkiessling / no_pointers.go
Created August 7, 2012 11:06
Go map with pointers to structs / with structs
package webservice
import (
"io"
"io/ioutil"
"net/http"
"encoding/json"
"github.com/bmizerany/pat"
"manuel.kiessling.net/multivariate/runner/types"
// "fmt"
(defn m
"Measures the number of consonant sequences between
the start of word and position j. If c is a consonant
sequence and v a vowel sequence, and <...> indicates
arbitrary presence,
<c><v> -> 0
<c>vc<v> -> 1
<c>vcvc<v> -> 2
<c>vcvcvc<v> -> 3
...
INFO environment: Loading configuration...
DEBUG loader: Set :default = "/Applications/Vagrant/embedded/gems/gems/vagrant-1.0.2/config/default.rb"
DEBUG loader: Populating proc cache for "/Applications/Vagrant/embedded/gems/gems/vagrant-1.0.2/config/default.rb"
DEBUG loader: Load procs for pathname: #<Pathname:/Applications/Vagrant/embedded/gems/gems/vagrant-1.0.2/config/default.rb>
DEBUG loader: Set :home = #<Pathname:/Users/manuel/.vagrant.d/Vagrantfile>
DEBUG loader: Populating proc cache for #<Pathname:/Users/manuel/.vagrant.d/Vagrantfile>
DEBUG loader: Load procs for pathname: #<Pathname:/Users/manuel/.vagrant.d/Vagrantfile>
DEBUG loader: Set :root = #<Pathname:/Users/manuel/vagrant-dev/Vagrantfile>
DEBUG loader: Populating proc cache for #<Pathname:/Users/manuel/vagrant-dev/Vagrantfile>
DEBUG loader: Load procs for pathname: #<Pathname:/Users/manuel/vagrant-dev/Vagrantfile>
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Konfiguration mhdev VM (bestehender Stack)
config.vm.define :mhdev do |mhdev_config|