Preparation of test image. Boot from Centos 7 CD into troubleshoot mode and skip to shell. Prepare disks of guest machine. Make partitions and filesystems.
Sda2 - boot - ext2
Preparation of test image. Boot from Centos 7 CD into troubleshoot mode and skip to shell. Prepare disks of guest machine. Make partitions and filesystems.
Sda2 - boot - ext2
| // Demonstration video can be found at: https://youtu.be/roAerKVfq-Y | |
| // StopEC2Instance | |
| const AWS = require('aws-sdk'); | |
| exports.handler = (event, context, callback) => { | |
| const ec2 = new AWS.EC2({ region: event.instanceRegion }); | |
| ec2.stopInstances({ InstanceIds: [event.instanceId] }).promise() |
| #! /bin/bash | |
| # | |
| # Diffusion youtube avec ffmpeg | |
| # Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée. | |
| VBR="2500k" # Bitrate de la vidéo en sortie | |
| FPS="30" # FPS de la vidéo en sortie | |
| QUAL="medium" # Preset de qualité FFMPEG | |
| YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube |
| # This is The best Solution I found. forked from original code writer | |
| # Udacity's Intro to Programming Nanodegree. | |
| # Original problem statement: | |
| # Given your birthday and the current date, calculate your age | |
| # in days. Compensate for leap days. Assume that the birthday | |
| # and current date are correct dates. | |
| # Simply put, if you were born 1 Jan 2012 and todays date is | |
| # 2 Jan 2012 you are 1 day old. |