First of all install update and upgrade your system:
$ sudo apt-get update
$ sudo apt-get upgrade
Then, install required libraries:
General Nanodegree Information | |
Nanodegrees Programs: https://www.udacity.com/nanodegree | |
Nanodegree Plus (job guarantee): https://www.udacity.com/nanodegree/plus | |
UConnect (weekly in-person study sessions): https://www.udacity.com/uconnect | |
Courses on Udacity | |
Machine Learning Engineer Nanodegree by Google (Currently Available): https://www.udacity.com/course/machine-learning-engineer-nanodegree-by-google--nd009 | |
Artificial Intelligence for Robots (Free Course) https://www.udacity.com/course/artificial-intelligence-for-robotics--cs373 | |
Intro to Statistics (Free Course) https://www.udacity.com/course/intro-to-statistics--st101 | |
Deep Learning (Free Course) https://www.udacity.com/course/deep-learning--ud730 |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
// Fix Vendor Prefixes | |
var IS_CHROME = !!window.webkitRTCPeerConnection, | |
RTCPeerConnection, | |
RTCIceCandidate, | |
RTCSessionDescription; | |
if (IS_CHROME) { | |
RTCPeerConnection = webkitRTCPeerConnection; | |
RTCIceCandidate = window.RTCIceCandidate; | |
RTCSessionDescription = window.RTCSessionDescription; |
# Licensed under MIT. | |
# Copyright (2016) by Kevin van Zonneveld https://twitter.com/kvz | |
# | |
# This Makefile offers convience shortcuts into any Node.js project that utilizes npm scripts. | |
# It functions as a wrapper around the actual listed in `package.json` | |
# So instead of typing: | |
# | |
# $ npm script build:assets | |
# | |
# you could just as well type: |
Presigned URLs are useful for fine-grained access control to resources on s3.
For example, if storing larger text blocks than DynamoDB might allow with its 400KB size limits s3 is a useful option.
Ignoring various ACL methods and using presigned URLs, it's possible to create lambda functions that can generate the required upload and download URLs.
Using the default IAM roles and lambda proxy configuration of serverless, lambdas are assigned an IAM role for the application (so that a logical group of functions can share resources - e.g. for a CRUD REST API). Each function then assumes the IAM role via its own function name.
#!/bin/bash | |
# Upload pic_file to Google photos/Picasa with curl; returns source image URL | |
# | |
# Usage: picasa.sh -s SCALE -a ALBUMID -t PIC_NAME -u -r pic_file | |
# -s SCALE -- scale pic_file to SCALE% (with imagemagic's convert) | |
# -a ALBUMID -- if not given upload to default album | |
# -t PIC_NAME -- picture name, if not given the same as pic_file | |
# -u -- print HTML fragment with URL to pic_file | |
# -r -- remove scaled pic_file | |
# |
A lot of GitHub projects need to have pretty math formulas in READMEs, wikis or other markdown pages. The desired approach would be to just write inline LaTeX-style formulas like this:
$e^{i \pi} = -1$
Unfortunately, GitHub does not support inline formulas. The issue is tracked here.
Hi:
perl -e 'print "hello world!\n"'
A simple filter:
perl -ne 'print if /REGEX/'
Filter out blank lines (in place):
If you would like to persist data from your ECS containers, i.e. hosting databases like MySQL or MongoDB with Docker, you need to ensure that you can mount the data directory of the database in the container to volume that's not going to dissappear when your container or worse yet, the EC2 instance that hosts your containers, is restarted or scaled up or down for any reason.
Don't know how to create your own AWS ECS Cluster? Go here!
Sadly the EC2 provisioning process doesn't allow you to configure EFS during the initial config. After your create your cluster, follow the guide below.
If you're using an Alpine-based Node server like duluca/minimal-node-web-server follow this guide: