Users\spham\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\startup.bat
@echo off
subst i: C:\Users\spham\Documents\dev\handmadeHreo\master| # install dependencies | |
| apt install default-jdk | |
| apt install maven | |
| apt install nodejs | |
| apt install npm | |
| # python | |
| # pip | |
| # don't use the --ser flag | |
| pip install --no-cache --upgrade localstack |
| # https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly | |
| apt update -y | |
| apt install -y \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| software-properties-common | |
| type %1 |
| Method 2: Reset Windows update components | |
| Manually reset the Windows Updates Components and then reinitiate the Windows Update process. | |
| Resetting Windows Update Components will fix corrupt Windows Update Components and help you to install the Windows Updates quickly. | |
| Please follow the below steps to reset the Windows Updates Components: | |
| Press Windows Key + X on the keyboard and then select “Command Prompt (Admin)” from the menu. |
Code repo https://github.com/PacktPublishing/Hands-on-Serverless-Architecture-with-AWS-Lambda
NOTE" original video was done using Node.js 6.10 runtime for Lambda - I'll be using the latest at the time of writing which s 8.10
| sudo apt install docker.io | |
| sudo systemctl status docker | |
| sudo usermod -aG docker ${USER} | |
| su - ${USER} | |
| id -nG |
| function Palindrome(str) { | |
| return str.split("").reverse().join("").replace(/ /g,'') === str.replace(/ /g,''); | |
| } | |
| // keep this function call here | |
| Palindrome(readline()); |
| import java.util.*; | |
| import java.io.*; | |
| class Main { | |
| public static int WordCount(String str) { | |
| return str.split(" ").length; | |
| } | |
| public static void main (String[] args) { | |
| // keep this function call here |
| import java.util.*; | |
| import java.io.*; | |
| class Main { | |
| public static int VowelCount(String str) { | |
| int cnt = 0; | |
| for (char ch : str.toLowerCase().toCharArray()) { | |
| switch (ch) { | |
| case 'a': | |
| case 'e': |