Skip to content

Instantly share code, notes, and snippets.

View pahund's full-sized avatar

Patrick Hund pahund

View GitHub Profile
{
"id": "DE/P/OB/H",
"lang": "de",
"client": {
"ip": "::ffff:127.0.0.1",
"url": "http://localhost:3000?pmtest=1437728069",
"header": {
"cookie": "axd=100216471054020008; whiteLabelBehavior=\"Visit from returning Visitor - Mobile\"; mobileNpsSurvey=off; recent=28502; _m_u=f0339679-c505-46fa-8fa8-cc126efc6f24; featureVariant.hydra.1=test; mobile.LOCALE=de",
"accept-language": "en-US,en;q=0.8,de;q=0.6,ru;q=0.4,es;q=0.2",
"accept-encoding": "gzip, deflate, sdch",
@pahund
pahund / gc-stats-build-error
Created September 22, 2015 07:42
Error message shown when trying to build gc-stats 0.0.5 with NodeJS 4.1.0
> gc-stats@0.0.5 install /Users/pahund/git/public-home-germany-node/node_modules/mde-node-metrics/node_modules/gc-stats
> node-gyp rebuild
CXX(target) Release/obj.target/gcstats/src/gcstats.o
In file included from ../src/gcstats.cc:3:
../node_modules/nan/nan.h:324:27: error: redefinition of 'NanEnsureHandleOrPersistent'
NAN_INLINE v8::Local<T> NanEnsureHandleOrPersistent(const v8::Local<T> &val) {
^
../node_modules/nan/nan.h:319:17: note: previous definition is here
v8::Handle<T> NanEnsureHandleOrPersistent(const v8::Handle<T> &val) {
@pahund
pahund / dabblet.css
Created April 24, 2012 10:19 — forked from LeaVerou/dabblet.css
Sticker
/* Sticker */
.sticker {
position: relative;
width: 3.5em;
height: 3.5em;
padding: 1em .5em 0;
margin: 100px;
background: deeppink;
color: white;
@pahund
pahund / dabblet.css
Created April 24, 2012 12:54
slide out tabs
/**
* slide out tabs
*/
li {
float: left;
width: 100px;
height: 10px;
list-style: none;
display: block;
@pahund
pahund / dabblet.css
Created April 24, 2012 13:11
Rotating smiley
/**
* Rotating smiley
*/
@keyframes outer {
100% { transform: rotate(360deg) }
}
@keyframes inner {
100% { transform: rotate(-360deg) }
@pahund
pahund / dabblet.css
Created May 3, 2012 16:15
U.T.A. - Unified Test Architecture (Dummy)
/**
* U.T.A. - Unified Test Architecture (Dummy)
*/
body {
font-family: sans-serif;
font-size: 80%;
margin: 0;
background-image: linear-gradient(top, slategray 70px, silver 150px);
background-repeat: no-repeat;
background-color: silver;
@pahund
pahund / dabblet.css
Created June 14, 2012 16:46
Kanban History
/**
* Kanban History
*/
#kanbanHistory {
padding: 10px;
border-radius: 10px;
box-shadow: 5px 5px 10px 0 black;
background: linear-gradient(#114070 25px, #3C78B5 30px, white 35px);
}
@pahund
pahund / wallaby.js
Created October 19, 2015 13:54
Wallaby test configuration with env.params.env – there seems to be a problem with comma-separated env variables
const babel = require("babel");
module.exports = function () {
return {
files: [
"app/**/*.js"
],
tests: [
"test/app/**/*-test.js"
@pahund
pahund / start.js
Created October 21, 2015 14:30
Gulp task for running app in local development mode using nodemon
/**
* start.js
*
* A Gulp task that starts the local development server and the watchers.
*
* @author <a href="mailto:pahund@team.mobile.de">Patrick Hund</a>
* @since 22 Jun 2015
*/
import gutil from "gulp-util";
import path from "path";
@pahund
pahund / gist:90153e352dcf40eee49e
Created December 21, 2015 17:21
electron stacktrace
[8883:1221/181921:FATAL:url_request_context.cc(107)] Check failed: false. Leaked 1 URLRequest(s). First URL: http://10.44.74.1/testproxy/integra214.pac.
0 Electron Framework 0x0000000102539053 _ZN4base8internal30DstRangeRelationToSrcRangeImplIilLNS0_21IntegerRepresentationE1ELS2_1ELNS0_26NumericRangeRepresentationE0EE5CheckEl + 391907
1 Electron Framework 0x000000010254ef9a _ZN4base8internal30DstRangeRelationToSrcRangeImplIilLNS0_21IntegerRepresentationE1ELS2_1ELNS0_26NumericRangeRepresentationE0EE5CheckEl + 481834
2 Electron Framework 0x0000000103c32d7d _CTFontManagerUnregisterFontForData + 13223693
3 Electron Framework 0x0000000103c32b49 _CTFontManagerUnregisterFontForData + 13223129
4 Electron Framework 0x0000000103c32dce _CTFontManagerUnregisterFontForData + 13223774
5 Electron Framework 0x000000010242a382 _ZNK4base14DefaultDeleterIN3net17URLRequestContextEEclEPS2_ + 18
6 Electron Framework