This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# i-MSCP Listener::Named::NotifySecondary listener file | |
# Copyright (C) 2016 Marc Pujol <[email protected]> | |
# | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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] |