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
Disconnected at Sun Apr 21 18:00:21 UTC 2013
Connected at Sun Apr 21 18:00:26 UTC 2013
Disconnected at Sun Apr 21 18:02:09 UTC 2013
Connected at Sun Apr 21 18:02:17 UTC 2013
Disconnected at Sun Apr 21 18:03:21 UTC 2013
Connected at Sun Apr 21 18:03:27 UTC 2013
Disconnected at Sun Apr 21 18:05:51 UTC 2013
Connected at Sun Apr 21 18:06:02 UTC 2013
Disconnected at Sun Apr 21 18:06:04 UTC 2013
Connected at Sun Apr 21 18:06:08 UTC 2013
s := CMSystem globalInstance.
u := s userManager findUser: '[email protected]' ifAbsent: [
| uu |
uu := CMUser withLogin: 'danielkza' email: '[email protected]' password: '123aew' firstName: 'daniel' lastName: 'miranda'.
s userManager addUser: uu.
].
t := CMTopic withName: 'testTopic' creator: u.
s children add: t.
'users' -> [ :url |
| userName |
userName := [ url second ] on: Error do: [ nil ].
].
@danielkza
danielkza / 42_windows
Last active December 19, 2015 12:29
Files related to GRUB2 fedora troubles
#!/bin/sh
# 30_os-prober was also made non-executable
cat <<EOF
menuentry 'Windows Boot Manager' {
insmod part_gpt
search --no-floppy --set root --file /EFI/Microsoft/Boot/bootmgfw.efi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
boot
@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
@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/
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 / 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
@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
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