Skip to content

Instantly share code, notes, and snippets.

Andreas Katzig derFunk

Block or report user

Report or block derFunk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
derFunk / long_screenshot.js
Created Feb 26, 2018
Long screenshots with headless chrome, avoiding the 16384 pixel count limitation (texture size)
View long_screenshot.js
#!/usr/bin/env node
function sleep(ms) {
ms = (ms) ? ms : 0;
return new Promise(resolve => {setTimeout(resolve, ms);});
process.on('uncaughtException', (error) => {
derFunk /
Last active Dec 27, 2017 — forked from lalyos/
generate docker-compose.yml by inspecting a running container
docker-yml() {
docker inspect -f $'
version: '2.2'
image: {{.Config.Image}}
entrypoint: {{json .Config.Entrypoint}}
command: {{json .Config.Cmd}}
environment: {{range .Config.Env}}
- {{.}}{{end}}

Keybase proof

I hereby claim:

  • I am derFunk on github.
  • I am derfunk ( on keybase.
  • I have a public key whose fingerprint is E569 9481 B960 CEA5 BC81 3CE2 81F8 58E2 46A0 4A97

To claim this, I am signing this object:

derFunk / UnityNodeTypeResolver.cs
Last active Sep 16, 2015
NodeTypeResolver for YamlDotNet to ease deserializing Unity3D scene files
View UnityNodeTypeResolver.cs
using System;
using System.Collections.Generic;
using System.Reflection;
using YamlDotNet.Core.Events;
using YamlDotNet.Serialization;
namespace Chimera.Unity3DYamlChecker
class UnityNodeTypeResolver : INodeTypeResolver
derFunk / bacula-fd.rb
Created Jan 27, 2015
OSX brew formula for Bacula 5.2.6 to be compatible with current Debian Wheezy Bacula package.
View bacula-fd.rb
require 'formula'
class BaculaFd < Formula
homepage ''
# you may exchange this download url to match the correct bacula source code, if Debian once updates it's own package
url ''
def install
system "./configure", "--prefix=#{prefix}",
derFunk /
Last active Jun 3, 2016 — forked from mediabounds/
Allow for different keychain usage and allow for resigning with Xcode > 6 (removed --resource-rules parameter)
# !/bin/bash
# Copyright (c) 2011 Float Mobile Learning
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
derFunk /
Created Jun 18, 2014
Reliably Detect ART Runtime on Android KitKat
* Checks if the device is using the (still experimental Android Runtime (ART))
* @return Returns true if ART is used on the device.
public static boolean isART()
if (Build.VERSION.SDK_INT < 19) // Before KITKAT, as ART is only available since 4.4.x
return false ;
derFunk / BinarySerializedTests.cs
Created Aug 30, 2012
Cached binary serialization unit tests for ServiceStack
View BinarySerializedTests.cs
using System;
using System.Text;
using NUnit.Framework;
using ServiceStack.Plugins.ProtoBuf;
using ServiceStack.ServiceClient.Web;
using ServiceStack.Text;
namespace ServiceStack.WebHost.IntegrationTests.Tests
derFunk /
Created Aug 3, 2012
Android device info bridge for Unity 3D
import android.content.Context;
import android.view.WindowManager;
import de.chimeraentertainment.namespace.<<YourMainActivity>>;
import android.util.DisplayMetrics;
import android.util.Log;
public class DeviceInfo {
You can’t perform that action at this time.