Skip to content

Instantly share code, notes, and snippets.

View michi88's full-sized avatar

Michaël Krens michi88

View GitHub Profile
@michi88
michi88 / gist:a5553d7f3613cdfa8935
Created July 16, 2015 00:20
Google Analytics premium BiqQuery ga_sessions table export fields changelog
#!/bin/bash
# Somehow Google does not provide a changelog for when they add fields to the ga_sessions table
# export you get with Google Analitics premium. Here's some of it by trial and error... :(
COLUMNS="
visitorId,
visitNumber,
visitId,
visitStartTime,
require 'formula'
class Wkhtmltopdf < Formula
url 'http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9.tar.bz2'
homepage 'http://code.google.com/p/wkhtmltopdf/'
# md5 'df2bb84b7d15140ca14732898155dd6a'
sha1 '41f598c0103326e7c13101391447b0284b4ba3cb'
depends_on 'qt'
@michi88
michi88 / SAP_CLA
Created June 28, 2020 10:20 — forked from CLAassistant/SAP_CLA
SAP Individual Contributor License Agreement
### SAP Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects (“Projects”) made available by SAP SE or its affiliates (“SAP”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to SAP in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact [email protected].
You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.
**Copyright License.** You hereby grant, and agree to grant, to SAP a non-exclusive, perpetual, irrevocable, worldwi
@michi88
michi88 / index.js
Created July 2, 2020 10:44
SIGINT spawn testing
const http = require("http");
const spawn = require("child_process").spawn;
const IS_CHILD = process.argv[2] === "--child";
const DETACHED = process.argv[2] === "--detached";
const port = IS_CHILD ? 3001 : 3000;
const requestHandler = (request, response) => {
console.log(request.url);
response.end("Hello Node.js Server!");
};