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 / kalibro_install_new.sh
Created May 22, 2014 01:08
Tentativa de novo script de instalação do Kalibro
#!/bin/bash
export LC_ALL=C.UTF-8
APT_GET_INSTALL='apt-get install -y --no-install-recommends --no-install-suggests'
if [ -n "${PS1}" ]; then
IS_INTERACTIVE=1
else
IS_INTERACTIVE=0
fi
blaziken
skarmory
zubat
eeveeni
absol
luxray
lapras
zapdos
aggron
ninjask
lcs() {
path=$1
shift
cd "$path" && ls "$@"
}
#!/bin/bash
APT_GET_INSTALL=apt-get install -y --no-install-recommends
DATABASE_DEFAULT_USER='kalibro'
DATABASE_DEFAULT_PASSWORD='kalibro'
if [ -n "${DATABASE_URL}" ]; then
echo "Using DATABASE_URL '${DATABASE_URL}'. Not installing postgres"
if [ -z "$DATABASE_TYPE" ]; then
CREATE ROLE kalibro LOGIN ENCRYPTED PASSWORD 'kalibro' VALID UNTIL 'infinity';
CREATE DATABASE kalibro WITH ENCODING='UTF8' OWNER=kalibro CONNECTION LIMIT=-1;
CREATE DATABASE kalibro_test WITH ENCODING='UTF8' OWNER=kalibro CONNECTION LIMIT=-1;
require("luarocks.loader")
io = require("io")
os = require("os")
rex = require("rex_pcre")
function read_all(file)
local f = io.open(file, "rb")
if not f then
return nil
@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/