Skip to content

Instantly share code, notes, and snippets.

View jbhardwaj's full-sized avatar

Julian Bhardwaj jbhardwaj

  • University of Warwick
View GitHub Profile
@jbhardwaj
jbhardwaj / realData.py
Created February 28, 2013 22:11
Pulls data from Twitter and writes to a .csv data file for use with Witter
from __future__ import division
import re, string, os, math, time, sys, random
from operator import itemgetter
import tweetstream
def strTimeProp(start, end, format, prop):
"""Get a time at a proportion of a range of two formatted times.
start and end should be strings specifying times formated in the
given format (strftime-style), giving an interval [start, end].
@jbhardwaj
jbhardwaj / entrophygraph.html
Last active December 10, 2015 13:59
A Cuckoo Sandbox processing module to render an entropy graph of the sample.
<!-- cuckoo/data/html/sections/entrophygraph.html -->
<section id="entropygraph">
<div class="section-title">
<h3>Entropy Graph <small>of the binary.</small></h3>
</div>
{% if results.entropygraph %}
<a href="data:image/png;base64,{{results.entropygraph.data}}"><img class="fade" src="data:image/png;base64,{{results.entropygraph.data}}"/></a>
{% else %}
No entropy graph available.
{% endif %}