Skip to content

Instantly share code, notes, and snippets.

View danielkza's full-sized avatar

Daniel Miranda danielkza

  • Vonage
  • London, United Kingdom
View GitHub Profile
@danielkza
danielkza / lambda.py
Last active October 19, 2016 20:45
Stacker hook for uploading lambda functions
import os
import os.path
import fnmatch
import stat
import logging
import hashlib
from StringIO import StringIO
from zipfile import ZipFile, ZIP_DEFLATED
import boto3
#!/bin/sh
CONFIG_FILE="$HOME/.config/twitchstreamrc"
if ! [ -f "$CONFIG_FILE" ]; then
echo "Missing configuration file ('$CONFIG_FILE')" 1>&2
exit 1
fi
. "$CONFIG_FILE"
$ PROFILE_NUM_RUNS=3 command time -v ruby performance/tests/aggregation.rb
warning: parser/current is loading parser/ruby22, which recognizes
warning: 2.2.x-compliant syntax, but you are running 2.3.0.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
Profiling Performance::Aggregation
Setup: start
Created 1023 ModuleResults and 4096 MetricResults
Setup: finish
Run 1: start
Run 1: finish
--- !ruby/object:Gem::Specification
name: kalibro_client
version: !ruby/object:Gem::Version
version: 4.0.0
platform: ruby
authors:
- Daniel Quadros Miranda
- Diego de Araújo Martinez Camarinha
- Heitor Reis Ribeiro
- Rafael Reggiani Manzo
@danielkza
danielkza / download_ego_top.py
Created June 15, 2016 23:21
extensions.gnome.org crawler - downloads extensions available, ordered by popularity. Usage: ./download_ego_top.py dest_dir max_num shell_version. Requires wget and GNU parallel installed.
#!/bin/env python3
import os
import sys
import urllib.request
import json
import subprocess
EXTENSION_BASE_URL = 'https://extensions.gnome.org'
EXTENSION_QUERY_URL_FORMAT = EXTENSION_BASE_URL + '/extension-query/?sort=popularity&page={page}'
@danielkza
danielkza / livestreamer.log
Created December 27, 2013 07:32
Livestreamer issue #253 logs
[cli][info] Found matching plugin twitch for URL twitch.tv/nl_kripp
[cli][info] Starting player: vlc --repeat
[0x879048] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[cli][info] Got HTTP request from VLC/2.1.2 LibVLC/2.1.2
[cli][info] Opening stream: source
[stream.hls][debug] Starting buffer filler thread
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding sequence 2713 to queue
[stream.hls][debug] Adding sequence 2714 to queue
[stream.hls][debug] Adding sequence 2715 to queue
@danielkza
danielkza / devilspie2.spec
Last active January 1, 2016 10:19
RPM spec file for devilspie2
Name: devilspie2
Version: 0.31
Release: 1%{?dist}
Summary: A window-matching utility
Group: User Interface/X
License: GPLv3+
URL: http://www.gusnan.se/devilspie2
Source0: http://www.gusnan.se/%{name}/download/%{name}_%{version}-src.tar.gz
Ago 17 22:37:29 daniel-pc gnome-session[1919]: [PIPELIGHT] Attached to process
Ago 17 22:37:29 daniel-pc gnome-session[1919]: [PIPELIGHT] Trying to load config file from /home/danielkza/.config/pipelight
Ago 17 22:37:29 daniel-pc gnome-session[1919]: [PIPELIGHT] Using wine prefix directory /home/danielkza/.wine-pipelight/
Ago 17 22:37:29 daniel-pc gnome-session[1919]: err:module:import_dll Library libgcc_s_sjlj-1.dll (which is needed by L"Z:\\home\\danielkza\\.pipelight\\pluginloader.exe") no
Ago 17 22:37:29 daniel-pc gnome-session[1919]: err:module:import_dll Library libstdc++-6.dll (which is needed by L"Z:\\home\\danielkza\\.pipelight\\pluginloader.exe") not fo
Ago 17 22:37:29 daniel-pc gnome-session[1919]: err:module:LdrInitializeThunk Main exe initialization for L"Z:\\home\\danielkza\\.pipelight\\pluginloader.exe" failed, status
Ago 17 22:37:29 daniel-pc gnome-session[1919]: [PIPELIGHT] Error during the initialization of the wine process - aborting
@danielkza
danielkza / pipelight
Created August 18, 2013 01:32
pipelight config
#
# Path to the wine executable
#
winePath = /usr/bin/wine
#
# Path to the wine prefix containing Silverlight
#
winePrefix = $HOME/.wine-pipelight/
@danielkza
danielkza / install.inf
Created July 11, 2013 09:55
Aero Inverted Cursors inf files
; xFree cursors for Windows XP.
; Win 2000/XP Alphablended Cursor Scheme installation file.
[Version]
signature="$CHICAGO$"
[DefaultInstall]
CopyFiles = Scheme.Cur, Scheme.Txt
AddReg = Scheme.Reg