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
<control> ESTABLISH CONNECTION FOR USER: root | |
<control> EXEC ['ssh', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/Users/dwt/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=root', '-o', 'ConnectTimeout=10', 'control', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-1383824368.96-132092729807089 && echo $HOME/.ansible/tmp/ansible-1383824368.96-132092729807089'"] | |
fatal: [vm2.yeepa.de] => SSH encountered an unknown error. The output was: | |
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 | |
debug1: Reading configuration data /Users/dwt/.ssh/config | |
debug1: /Users/dwt/.ssh/config line 16: Applying options for * | |
debug1: Reading configuration data /etc/ssh_config | |
debug1: /etc/ssh_config line 20: Applying options for * | |
debug1: /etc/ssh_config line 53: Applying options for * | |
debug1: auto-mux: Trying existing mast |
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
import zmq | |
from zmq.eventloop.ioloop import IOLoop | |
from broker import MDPBroker | |
class MyBroker(MDPBroker): | |
pass | |
if __name__ == '__main__': | |
context = zmq.Context() |
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
from pyramid.i18n import TranslationStringFactory | |
_ = TranslationStringFactory('yeepa') | |
def _get_localizer(): | |
from pyramid.i18n import get_localizer, make_localizer | |
from pyramid.threadlocal import get_current_request | |
if get_current_request(): | |
# pyramid context | |
return get_localizer(get_current_request()) | |
else: |
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
% git rebase master | |
First, rewinding head to replay your work on top of it... | |
Applying: Add CongrexEsrs target | |
Applying: Show search view for events | |
Using index info to reconstruct a base tree... | |
<stdin>:29: trailing whitespace. | |
<stdin>:50: trailing whitespace. | |
warning: 2 lines add whitespace errors. |
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
% curl -I https://admin:C0uchb4$3@db.insideguidance.com/cms -v | |
* About to connect() to db.insideguidance.com port 443 (#0) | |
* Trying 213.73.99.18... connected | |
* Connected to db.insideguidance.com (213.73.99.18) port 443 (#0) | |
* SSLv3, TLS handshake, Client hello (1): | |
* SSLv3, TLS handshake, Server hello (2): | |
* SSLv3, TLS handshake, CERT (11): | |
* SSLv3, TLS alert, Server hello (2): | |
* SSL certificate problem, verify that the CA cert is OK. Details: | |
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed |
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
{ | |
"ok":true, | |
"no_changes":true, | |
"session_id":"191983e241fc72900cc9f27f14a98719", | |
"source_last_seq":99, | |
"replication_id_version":2, | |
"history": | |
[ | |
{ |
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
Arrayobservers = SC.Application.create({ | |
NAMESPACE: 'Arrayobservers', | |
VERSION: '0.1.0', | |
store: SC.Store.create().from(SC.Record.fixtures) | |
}); |
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
Arrayobservers = SC.Application.create({ | |
NAMESPACE: 'Arrayobservers', | |
VERSION: '0.1.0', | |
store: SC.Store.create().from(SC.Record.fixtures) | |
}); | |
Arrayobservers.objects = [SC.Object.create({foo: 1}), SC.Object.create({foo: 2})]; |
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
def each_fortune_value(initial_fortune, minimum_bet, maximum_bet) | |
table = PerfectEuropeanRouletteTable.new RouletteCroupier.new, minimum_bet, maximum_bet | |
player = MartingalPlayer.new initial_fortune, table | |
yield player.fortune | |
while not player.bankrupt? | |
player.place_jetons :black | |
table.croupier.no_more_bets | |
yield player.fortune | |
end |
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
class RouletteCroupier | |
attr_accessor :table, :last_result | |
def bets | |
@bets ||= [] | |
end | |
def place_color_bet(player, color, amount) | |
bets << { :player => player, :color => color, :amount => amount } |