Reference: kelseyhightower/kubernetes-the-hard-way
Reference: step 1
Verification:
| var OFF = 0, WARN = 1, ERROR = 2; | |
| module.exports = exports = { | |
| "env": { | |
| "es6": true | |
| }, | |
| "ecmaFeatures": { | |
| // env=es6 doesn't include modules, which we are using | |
| "modules": true |
| require 'optparse' | |
| require 'yaml' | |
| require 'base64' | |
| options = { | |
| config_path: File.join(ENV['HOME'], '.kube', 'config'), | |
| write_dir: File.join(ENV['HOME'], '.kube') | |
| } | |
| OptionParser.new do |opts| |
Reference: kelseyhightower/kubernetes-the-hard-way
Reference: step 1
Verification:
| 1) Github cheatsheet : https://education.github.com/git-cheat-sheet-education.pdf | |
| 2) ML performance improvement cheatsheet : https://s3.amazonaws.com/MLMastery/ml_performance_improvement_cheatsheet.pdf?__s=hspfz83o8wr7xwqyyxpp | |
| 3) William Chen probability cheatsheet : http://www.wzchen.com/probability-cheatsheet/ | |
| 4) MongoDb cheatsheet : https://blog.codecentric.de/files/2012/12/MongoDB-CheatSheet-v1_0.pdf | |
| 5) Machine Learning Algo's in python and R cheatsheet : https://www.analyticsvidhya.com/wp-content/uploads/2016/08/MLalgorithms-.pdf | |
| 6) Stastics cheatsheet: http://www.cheat-sheets.org/saved-copy/427513-Statistics-Reference-Cheatsheet.pdf | |
| 7) Machine learning another cheat sheet : http://devzum.com/2015/06/best-machine-learning-cheat-sheets/ | |
| 8) R basic cheatsheet: https://www.rstudio.com/wp-content/uploads/2016/10/r-cheat-sheet-3.pdf | |
| 9) R advance cheatsheet: https://www.rstudio.com/wp-content/uploads/2016/02/advancedR.pdf | |
| 10) R regular exp cheatsheet: https://www.rstudio.com/wp-content/uploads/2016/09/RegExChe |
| # Note – this is not a bash script (some of the steps require reboot) | |
| # I named it .sh just so Github does correct syntax highlighting. | |
| # | |
| # This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5 | |
| # | |
| # The CUDA part is mostly based on this excellent blog post: | |
| # http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/ | |
| # Install various packages | |
| sudo apt-get update |
| # first, get the iso from http://releases.ubuntu.com/ | |
| # make working dir hierarchy in /tmp (you'll need enough ram for this) | |
| sudo mkdir -p /tmp/custom/{_squash,_work,iso,newiso,newlive,project} | |
| sudo mount -o loop ~/Downloads/ubuntu-15.10-desktop-amd64.iso /tmp/custom/iso | |
| sudo mount -t squashfs /tmp/custom/iso/casper/filesystem.squashfs /tmp/custom/_squash | |
| sudo mount -t overlay overlay -onoatime,lowerdir=/tmp/custom/_squash,upperdir=/tmp/custom/project,workdir=/tmp/custom/_work /tmp/custom/newlive | |
| # customize the live fs with systemd-nspawn (a better chroot) | |
| sudo systemd-nspawn --bind-ro=/etc/resolv.conf:/run/resolvconf/resolv.conf --setenv=RUNLEVEL=1 -D /tmp/custom/newlive |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| // controllers/LoginController.js | |
| module.exports = { | |
| index: function(req, res) { | |
| var email = req.param('email'); | |
| var password = req.param('password'); | |
| // delay everthing to prevent bruteforce, dos and timing attacks | |
| setTimeout(function() { |
| import requests | |
| import sys | |
| import time | |
| from opentracing_instrumentation.request_context import get_current_span, span_in_context | |
| from opentracing.ext import tags | |
| from opentracing.propagation import Format | |
| from opentracing_instrumentation.client_hooks import install_all_patches | |
| from jaeger_client import Config | |