Skip to content

Instantly share code, notes, and snippets.

View coolya's full-sized avatar

Kolja Dummann coolya

View GitHub Profile
@coolya
coolya / gist:1fccef3591086bd7ba7d
Last active August 29, 2015 14:04
High Performance Loggin
using logv.http;
using logv.ws.core;
using System;
using System.Collections.Concurrent;
using System.Threading.Tasks;
using MongoDB.Bson;
using logv.ws.core.data;
namespace logv.host
{
wget https://opscode-omnibus-packages.s3.amazonaws.com/debian/6/x86_64/chef_11.16.4-1_amd64.deb [17:22:03]
--2014-10-24 17:22:04-- https://opscode-omnibus-packages.s3.amazonaws.com/debian/6/x86_64/chef_11.16.4-1_amd64.deb
Resolving opscode-omnibus-packages.s3.amazonaws.com... 54.231.16.25
Connecting to opscode-omnibus-packages.s3.amazonaws.com|54.231.16.25|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 31437864 (30M) [application/x-debian-package]
Saving to: 'chef_11.16.4-1_amd64.deb'
100%[======================================================================================================================================================================================================================================>] 31,437,864 2.27MB/s in 21s
traceroute opscode-omnibus-packages.s3.amazonaws.com [17:25:42]
traceroute to s3-1-w.amazonaws.com (54.231.1.217), 64 hops max, 52 byte packets
1 192.168.1.1 (192.168.1.1) 1.110 ms 0.935 ms 0.755 ms
2 87.186.224.48 (87.186.224.48) 21.486 ms 22.678 ms 21.190 ms
3 217.0.75.106 (217.0.75.106) 22.370 ms 88.930 ms 140.463 ms
4 f-ed4-i.f.de.net.dtag.de (62.154.15.10) 24.636 ms 25.471 ms 135.240 ms
5 80.156.161.46 (80.156.161.46) 25.866 ms 25.925 ms 135.329 ms
6 ae-6.r20.frnkge04.de.bb.gin.ntt.net (129.250.6.248) 24.870 ms 124.842 ms
ae-1.r21.frnkge03.de.bb.gin.ntt.net (129.250.6.216) 33.385 ms
7 ae-3.r23.nycmny01.us.bb.gin.ntt.net (129.250.3.180) 111.264 ms
/source/gnupg(master)» git summary [19:05:52]
project : gnupg
repo age : 17 years
active : 1976 days
commits : 4673
files : 891
authors :
3025 Werner Koch 64.7%
1197 David Shaw 25.6%
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="private" fetch="git://github.com/"/>
<project path="vendor/broadcom" name="koush/proprietary_vendor_broadcom" remote="private" />
<project path="vendor/bn" name="koush/proprietary_vendor_bn" remote="private" />
<project path="vendor/htc" name="koush/proprietary_vendor_htc" remote="private" />
<project path="vendor/imgtec" name="koush/proprietary_vendor_imgtec" remote="private" />
<project path="vendor/google" name="koush/proprietary_vendor_google" remote="private" revision="gh-pages" />
<project path="vendor/lge" name="koush/proprietary_vendor_lge" remote="private" />
var config = new IConfiguration() {Path = "meh", Root = "foo" }; // where IConfiguration is a Interface
class GenricCmdLineParser
{
private Dictionary<string, Action<string>> Entries = new Dictionary<string, Action<string>>();
protected void Register(string arg, Action<string> valueSetter)
{
if (!Entries.ContainsKey(arg))
Entries.Add(arg.ToLowerInvariant(), valueSetter);
}
@coolya
coolya / gist:2953039
Created June 19, 2012 08:36
Convert number to a higher base
x= 2547, y = 8, x * 10 ^ ((y - 1) - (int(log10(x)))
@coolya
coolya / gist:3621884
Created September 4, 2012 14:48
Objectgraph
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Text;
namespace ConsoleApplication1
{
class Program