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
### Keybase proof | |
I hereby claim: | |
* I am aodhan-domhnaill on github. | |
* I am aidanmacdonald (https://keybase.io/aidanmacdonald) on keybase. | |
* I have a public key whose fingerprint is 739A 5537 F897 FB00 9DA3 728E 004E F856 B888 9568 | |
To claim this, I am signing this object: |
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
AWSTemplateFormatVersion: '2010-09-09' | |
Resources: | |
VPC: | |
Type: AWS::EC2::VPC | |
Properties: | |
CidrBlock: 10.0.0.0/16 | |
EnableDnsSupport: true | |
EnableDnsHostnames: true |
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 sympy as sp | |
import numpy as np | |
terms, max_pow = 2, 2 | |
q, p = sp.Indexed('q', i), sp.Indexed('p', i) | |
H = sp.Sum(q**2 + p**2, (i, 0, terms-1)).doit() | |
def pbrackets(f, g): | |
return sp.Sum(f.diff(q)*g.diff(p) - f.diff(p)*g.diff(q), (i, 0, terms-1)).doit().simplify() |
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 --root -ix "python -c 'exit(0 if \"A\" in open(\"A\").read() else 1)' && echo \$(git rev-parse --short HEAD) SUCCESS | |
|| echo \$(git rev-parse --short HEAD) FAILURE" | |
Executing: python -c 'exit(0 if "A" in open("A").read() else 1)' && echo $(git rev-parse --short HEAD) SUCCESS || echo $(git rev-parse --short HEAD) FAILURE | |
aa65917 SUCCESS | |
Executing: python -c 'exit(0 if "A" in open("A").read() else 1)' && echo $(git rev-parse --short HEAD) SUCCESS || echo $(git rev-parse --short HEAD) FAILURE | |
e9ab646 FAILURE | |
Executing: python -c 'exit(0 if "A" in open("A").read() else 1)' && echo $(git rev-parse --short HEAD) SUCCESS || echo $(git rev-parse --short HEAD) FAILURE | |
8d10833 FAILURE |
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 flask import Flask, jsonify | |
app = Flask(__name__) | |
@app.route("/") | |
def root(): | |
return """ | |
<html> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
<script> | |
function forward() { $.ajax({url: "/forward"}) } |
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
#!/bin/bash | |
sudo networksetup -setsocksfirewallproxy "Wi-Fi" localhost 9990 | |
echo "SOCKS ON" | |
ssh -N acsweb | |
sudo networksetup -setsocksfirewallproxy "Wi-Fi" "" "" | |
sudo networksetup -setsocksfirewallproxystate "Wi-Fi" off | |
echo "SOCKS OFF" |
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
[21:02:50] /tmp/mxnet/dmlc-core/include/dmlc/./logging.h:308: [21:02:50] src/core/pass.cc:43: Graph attr dependency shape is required by pass PlanMemory but is not available The attribute is provided by pass InferShape | |
Stack trace returned 10 entries: | |
[bt] (0) /usr/local/lib/python2.7/dist-packages/mxnet-0.12.1-py2.7.egg/mxnet/libmxnet.so(_ZN4nnvm11ApplyPassesENS_5GraphERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE+0x1003) [0x7fc2616fe653] | |
[bt] (1) /usr/local/lib/python2.7/dist-packages/mxnet-0.12.1-py2.7.egg/mxnet/libmxnet.so(_ZN4nnvm9ApplyPassENS_5GraphERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0xca) [0x7fc26109de0a] | |
[bt] (2) /usr/local/lib/python2.7/dist-packages/mxnet-0.12.1-py2.7.egg/mxnet/libmxnet.so(_ZN5mxnet10imperative10PlanMemoryEPN4nnvm5GraphEOSt6vectorIiSaIiEERKS4_IjSaIjEERKSt4pairIjjESF_+0x2a5) [0x7fc2610a5565] | |
[bt] (3) /usr/local/lib/python2.7/dist-packages/mxnet-0.12.1-py2.7.egg/mxnet/libmxnet.so(_ZN5mxnet10Imperative8CachedOp15GetForwardGraphEbRKSt6vect |
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
INFO:sagemaker:Creating model with name: sagemaker-mxnet-py2-cpu-2018-01-17-20-52-52-599 | |
--------------------------------------------------------------------------- | |
ClientError Traceback (most recent call last) | |
<ipython-input-11-40815f86459d> in <module>() | |
----> 1 predictor = m.deploy(initial_instance_count=1, instance_type='ml.m4.xlarge') | |
~/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/sagemaker/estimator.py in deploy(self, initial_instance_count, instance_type, endpoint_name, **kwargs) | |
183 instance_type=instance_type, | |
184 initial_instance_count=initial_instance_count, | |
--> 185 endpoint_name=endpoint_name) |
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 mxnet import nd | |
>>> a = nd.arange(20).reshape((10, 2)) | |
>>> b = nd.arange(10).reshape((10, 1)) | |
>>> nd.stack(a, b) | |
[12:09:05] /Users/travis/build/dmlc/mxnet-distro/mxnet-build/dmlc-core/include/dmlc/logging.h:308: [12:09:05] include/mxnet/./tensor_blob.h:276: Check failed: this->shape_.Size() == shape.Size() (10 vs. 20) TBlob.get_with_shape: new and old shape do not match total elements | |
Stack trace returned 10 entries: | |
[bt] (0) 0 libmxnet.so 0x000000010f0d1898 _ZN4dmlc15LogMessageFatalD2Ev + 40 | |
[bt] (1) 1 libmxnet.so 0x000000010f0f4797 _ZNK5mxnet5TBlob14get_with_shapeIN7mshadow3cpuELi3EfEENS2_6TensorIT_XT0_ET1_EERKNS2_5ShapeIXT0_EEEPNS2_6StreamIS5_EE + 807 | |
[bt] (2) 2 libmxnet.so 0x000000010ff0fd9f _ZN5mxnet2op14StackOpForwardIN7mshadow3cpuEEEvRKN4nnvm9NodeAttrsERKNS_9OpContextERKNSt3__16vectorINS_5TBlobENSB_9allocatorISD_EEEERKNSC_INS_9OpReqTypeENSE_ISJ_EEEESI_ + 5935 |
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
INFO:sagemaker:Creating training-job with name: sagemaker-mxnet-py2-cpu-{some date and time} | |
..................................................... | |
executing startup script (first run) | |
2017-12-05 18:42:47,306 INFO - root - running container entrypoint | |
2017-12-05 18:42:47,307 INFO - root - starting train task | |
2017-12-05 18:42:47,310 INFO - container_support.environment - starting metrics service | |
2017-12-05T18:42:47Z E! cloudwatch: Error in ListMetrics API call : AccessDenied: User: arn:aws:sts::338197679289:assumed-role/AmazonSageMaker-ExecutionRole-20171205T101659/SageMaker is not authorized to perform: cloudwatch:ListMetrics | |
#011status code: 403, request id: 16bf6256-d9ec-11e7-b9c8-2965f5af2d22 | |
2017-12-05T18:42:47Z E! Failed to connect to output cloudwatch, retrying in 15s, error was 'AccessDenied: User: arn:aws:sts::338197679289:assumed-role/AmazonSageMaker-ExecutionRole-20171205T101659/SageMaker is not authorized to perform: cloudwatch:ListMetrics | |
#011status code: 403, request id: 16bf6256-d9ec-11e |
NewerOlder