start new:
tmux
start new with session name:
tmux new -s myname
| /* | |
| * ==================================================================== | |
| * | |
| * Licensed to the Apache Software Foundation (ASF) under one or more | |
| * contributor license agreements. See the NOTICE file distributed with | |
| * this work for additional information regarding copyright ownership. | |
| * The ASF licenses this file to You under the Apache License, Version 2.0 | |
| * (the "License"); you may not use this file except in compliance with | |
| * the License. You may obtain a copy of the License at | |
| * |
o.......Open files, directories and bookmarks....................|NERDTree-o|
go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go|
t.......Open selected node/bookmark in a new tab.................|NERDTree-t|
T.......Same as 't' but keep the focus on the current tab........|NERDTree-T|
i.......Open selected file in a split window.....................|NERDTree-i|
gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi|
s.......Open selected file in a new vsplit.......................|NERDTree-s|
gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|
O.......Recursively open the selected directory..................|NERDTree-O|
One can log into the slave nodes using Agent Forwarding by SSH. Suppose that I find in the YARN log
java.nio.channels.CancelledKeyException
14/09/25 23:12:58 ERROR SendingConnection: Exception while reading SendingConnection to ConnectionManagerId(ip-172-31-xx-xx.ec2.internal,49972)
java.io.IOException: Connection reset by peer
...
I would like to SSH to the slave ip-172-31-xx-xx.ec2.internal to check the logs. To do so, firstly we have to add EMR identity to the agent
| // Caffe proto converter. | |
| // | |
| // Build | |
| // | |
| // mex -I/path/to/mexplus ... | |
| // -I/path/to/build/src/caffe/proto/ ... | |
| // caffe_proto_.cc ... | |
| // /path/to/build/src/caffe/proto/caffe.pb.o ... | |
| // -lprotobuf ... | |
| // -L/usr/local/lib |
| // Caffe proto converter. | |
| // | |
| // Build | |
| // | |
| // mex -I/path/to/mexplus ... | |
| // -I/path/to/build/src/caffe/proto/ ... | |
| // caffe_proto_.cc ... | |
| // /path/to/build/src/caffe/proto/caffe.pb.o ... | |
| // -lprotobuf | |
| // |
| # | |
| # mexopts.sh Shell script for configuring MEX-file creation script, | |
| # mex. These options were tested with the specified compiler. | |
| # | |
| # usage: Do not call this file directly; it is sourced by the | |
| # mex shell script. Modify only if you don't like the | |
| # defaults after running mex. No spaces are allowed | |
| # around the '=' in the variable assignment. | |
| # | |
| # Note: For the version of system compiler supported with this release, |
| function check_grad(f, x0, varargin) | |
| % a simple function that checks the correctness of gradient. | |
| % INPUT | |
| % f - a function handle of f(x) that returns function values and gradients given parameter x | |
| % x0 - the location near which the gradient will be evaluted. | |
| % For a correct gradiet, the displayed ratio should be near 1.0 | |
| % | |
| % to check why the code works there is a useful link: | |
| % http://ufldl.stanford.edu/tutorial/supervised/DebuggingGradientChecking/ |
| """ Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym. """ | |
| import numpy as np | |
| import cPickle as pickle | |
| import gym | |
| # hyperparameters | |
| H = 200 # number of hidden layer neurons | |
| batch_size = 10 # every how many episodes to do a param update? | |
| learning_rate = 1e-4 | |
| gamma = 0.99 # discount factor for reward |
Bought TMobile Cellspot (TM-AC1900) and would like to flash Merlin firmware.
Purchased router equipped with TMobile firmware version: 3.0.0.4.376_2827 Gateway address: 192.168.27.1
Downgrade TMoble firmware to enable TELNET 1.1 Get into recovery mode (hold reset and power up, until ping TTL=100) 1.2 Downgrade to Tmobile firmware version: 3.0.0.4_376_1703 TRX use tftp binary transfer.