Skip to content

Instantly share code, notes, and snippets.

View kilburn's full-sized avatar

Marc Pujol kilburn

View GitHub Profile
@kilburn
kilburn / .block
Last active April 13, 2017 20:53 — forked from mbostock/.block
Responsive Line Charts
license: gpl-3.0
# i-MSCP Listener::Named::NotifySecondary listener file
# Copyright (C) 2016 Marc Pujol <kilburn@la3.org>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Task Logs: 'attempt_201405212016_0002_m_000002_0'
stdout logs
org.apache.giraph.comm.netty.NettyServer - NettyServer: Using execution group with 8 threads for requestFrameDecoder.
org.apache.giraph.comm.netty.NettyServer - start: Started server communication server: master/192.168.50.4:30002 with up to 16 threads on bind attempt 0 with sendBufferSize = 32768 receiveBufferSize = 524288
org.apache.giraph.comm.netty.NettyClient - NettyClient: Using execution handler with 8 threads after request-encoder.
org.apache.giraph.comm.netty.NettyServer - start: Using Netty without authentication.
org.apache.giraph.comm.netty.handler.RequestServerHandler - channelActive: Connected the channel on /192.168.50.5:53267
# Load environment if available
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
# See if we are trying to reload a failed boot
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
PLAY [ispcp] ******************************************************************
GATHERING FACTS ***************************************************************
ok: [srv0.redacted]
TASK: [debug stuff] ***********************************************************
ok: [srv0.redacted] => {"item": "", "msg": "release= 4"}
TASK: [debug stuff] ***********************************************************
ok: [srv0.redacted] => {"item": "", "msg": "release= 4"}
@kilburn
kilburn / readyForZero.py
Created June 15, 2011 07:24
Script that answers the Ready For Zero challenges (https://www.readyforzero.com/challenge)
#!/usr/bin/env python
def load_file(fname, slice=None, conversion=None, ignore=True):
"""Loads the specified file, returning a (sub)list of (converted) elements."""
f = open(fname, 'r')
chars = ''.join([line.rstrip('\n') for line in f])
f.close()
if slice:
chars = chars[slice]