Skip to content

Instantly share code, notes, and snippets.

View timob's full-sized avatar

timob timob

View GitHub Profile

Keybase proof

I hereby claim:

  • I am timob on github.
  • I am timob (https://keybase.io/timob) on keybase.
  • I have a public key ASAu_sYaqshM80XoThRWBELL8XBNhVDXDPvMUnWrTzWVhgo

To claim this, I am signing this object:

@timob
timob / jsig.c
Created August 1, 2016 15:43
Library to be preloaded to intercept sigation call and SA_ONSTACK flag
/*
* Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
@timob
timob / test.py
Created June 14, 2014 23:14
test that print writes in whisper.update_many for current whisper and my fixed whisper
#!/usr/bin/env python
import random
import time
import sys
print("running update_many with:")
now = int(time.time())
datapoints = [(now + i*60, random.randrange(100000)) for i in xrange(-100, 0)]
print(datapoints)