Skip to content

Instantly share code, notes, and snippets.

View venuatu's full-sized avatar

Steve Manuatu venuatu

  • Sydney, Australia
View GitHub Profile
@venuatu
venuatu / stats.1107.json
Created October 24, 2020 08:52
naxx boss timers from logs
{
"bosses": {
"1107": "Anub'Rekhan"
},
"initial": [
{
"count": 32,
"guid": "28785",
"max": 113.15,
"mean": 92.138125,
@venuatu
venuatu / zg-buff.lua
Last active July 10, 2020 13:42
zg buff transcripts and times
BootyBay = {
"<3218.51 15:28:12> [CHAT_MSG_MONSTER_YELL] The Blood God, the Soulflayer, has been defeated! We are imperiled no longer!#Zandalarian Emissary###Valkyree##0#0##0#362#nil#0#false#false#false#false", -- [66]
"<3265.81 15:28:59> [CHAT_MSG_MONSTER_YELL] All Hail Valkyree, slayer of Hakkar, and hero of Azeroth!#Zandalarian Emissary###Valkyree##0#0##0#375#nil#0#false#false#false#false", -- [73]
"<3267.48 15:29:01> [CLEU] SPELL_CAST_START#Player-4670-0063A689#Phoxx##nil#Hearthstone#nil#nil", -- [74]
"<3268.88 15:29:02> [CLEU] SPELL_AURA_APPLIED##nil#Player-4670-004D1F5B#Immorticia#Spirit of Zandalar#BUFF#nil", -- [75]
"<3268.88 15:29:02> [CLEU] SPELL_AURA_APPLIED##nil#Player-4670-005B9412#Hordetraitor#Spirit of Zandalar#BUFF#nil", -- [76]
"<3268.88 15:29:02> [CLEU] SPELL_AURA_APPLIED##nil#Player-4670-004D1862#Dangerlooms#Spirit of Zandalar#BUFF#nil", -- [77]
"<3268.88 15:29:02> [CLEU] SPELL_AURA_APPLIED##nil#Player-4670-00444355#Maleficarvm#Spirit of Zandalar#BUFF#nil", -- [
@venuatu
venuatu / therocks.geojson
Created November 5, 2015 21:19
shopsmall dining map for the rocks
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@venuatu
venuatu / amexsmall.py
Last active November 2, 2015 22:54
shopsmall-barangaroo.geojson
# Usage: pbpaste | amexsmall.py
import json, sys
output = [{
"type": "Feature",
"properties": {k: v for k, v in x.items() if v},
"geometry": {
"type": "Point",
"coordinates": [
x['ConLongitude'],
@venuatu
venuatu / gist:1595084a6b00fa6b9487
Created December 4, 2014 07:03
#hackagong on twitter during hackagong 2014
twitter Hackagong 2014-12-03T10:22:17.000Z Caleb Avery from winning #Hackagong team, Infobahn, has written an awesome blog post on their Hackagong experience: https://t.co/KnX83KHlIi
twitter dwoolrych 2014-12-03T06:21:41.000Z LawPath: RT Hackagong: #Hackagong on WINNews_Woll! #startupaus #hackathon #design #code #build #launch #game https://t.co/rxKDcL5IKn
twitter LawPath 2014-12-03T06:14:59.000Z RT @Hackagong: #Hackagong on @WINNews_Woll! #startupaus #hackathon #design #code #build #launch #game https://t.co/vm35Aea3fO
twitter Hackagong 2014-12-03T03:45:31.000Z Darryl from @RedshiftWire has written an awesome blog post on his learnings from last weekend's #Hackagong http://t.co/9qJ9xfZq9b
twitter venuatu 2014-12-03T00:43:59.000Z #hackagong #hacktweets #testing http://t.co/F6R1TencLA
photo venuatu 2014-12-03T00:43:59.000Z https://pbs.twimg.com/media/B35DXdsCcAI4YwW.jpg
twitter huntchr 2014-12-03T00:32:10.000Z A great turn out of #scala, #akka and #playframework users at #hackagong last w/e. Well done wtbh.ru!
@venuatu
venuatu / main.py
Created September 7, 2014 06:05
pipe.py: A simple functional list wrapper for python
from pipe import *
primes = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47]
mod_primes = ~(pipe(primes)
| filter(lambda a: a > 20)
| map(lambda a: a * a)
| zip_index
)
summed_primes = ~(pipe(mod_primes)
| map(lambda a: a[1])
@venuatu
venuatu / jsonp.js
Created June 28, 2014 16:27
JSONP in an ES6 promise
var jsonp = (function (window) {
var CALLBACK_CHARS = 'abcdefghijklmnopqrstuvwxyz0123456789';
return function jsonp(url, options) {
options = options || {};
options.timeout = options.timeout || 5000;
return new Promise(function (resolve, reject) {
var callback;
@venuatu
venuatu / SecurityAlgorithms.scala
Created December 3, 2013 21:59
Get jvm security algorithms (from a scala (2.10) script)
import scala.language.postfixOps
object Main {
def getProviders(): Map[String, Seq[String]] = {
import scala.collection.JavaConversions._
import java.security._
Security.getProviders().map{ provider =>
val name = provider.getName
name -> (provider.getServices.toList.map{ service =>
@venuatu
venuatu / metadata_to_perm.py
Last active December 17, 2020 03:03
A script to transform set_metadata into set_perm (for recoveries that don't support the former)
#!/usr/bin/env python
## Transform set_metadata into set_perm (for recoveries that don't support the former)
# Usage: metadata_to_perm.py file
import sys, re
try:
file = open(sys.argv[1])
except:
print('unable to open file')
exit(1)
@venuatu
venuatu / 4_3-art.diff
Created November 2, 2013 05:36
Some runs of 0xBenchmark comparing 4.3 (AOSPA 3.99-RC2) and 4.4 (AOSP) with dalvik and art using a nexus 4 (mako)
diff --git a/dalvik-4_3.txt b/art.txt
index eaa35f5..08e85bb 100644
--- a/dalvik-4_3.txt
+++ b/art.txt
@@ -1,165 +1,165 @@
============================================================
Linpack
------------------------------------------------------------
-Mflops/s :65.22679418844174
+Mflops/s :86.56918387803603