for x in $(yarn application -list -appStates ACCEPTED | awk 'NR > 2 { print $1 }'); do yarn application -kill $x; donefor x in $(yarn application -list -appStates RUNNING | awk 'NR > 2 { print $1 }'); do yarn application -kill $x; done| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
for x in $(yarn application -list -appStates ACCEPTED | awk 'NR > 2 { print $1 }'); do yarn application -kill $x; donefor x in $(yarn application -list -appStates RUNNING | awk 'NR > 2 { print $1 }'); do yarn application -kill $x; done| import seaborn as sns | |
| import matplotlib.pyplot as plt | |
| from sklearn.metrics import confusion_matrix | |
| import numpy as np | |
| def plot_confusion_matrix(cf_matrix, target_names=None): | |
| """Plot annotated confusion matrix with absolute values and percentages | |
| Args: | |
| cf_matrix: ndarray of shape (2, 2) Confusion Matrix | |
| """ |
| Tags: | |
| - Key: Name | |
| Value: | |
| !Join ['_', [ ec2, "Fn::ImportValue" : {"Fn::Sub":'${BaseStackName}-Environment'}, test2]] | |
| #This will create a name tag with value: ec2_<yourValueFromOtherStack>_test2 |
git clone https://github.com/coursera-dl/coursera-dl
cd coursera-dl
mkvirtualenv venv --python=`which python3`
pip3 install -r requirements.txt
./coursera-dl -u <Email-id> -p <Password> --subtitle-language en <course-title>The coursera title is taken from the course url https://www.coursera.org/learn/
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed
| # show existing tab with 4 spaces width | |
| set tabstop=4 | |
| # when indenting with '>', use 4 spaces width | |
| set shiftwidth=4 | |
| # On pressing tab, insert 4 spaces | |
| set expandtab |