<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Harry Patel</title>
    <description>The latest articles on DEV Community by Harry Patel (@harryhazza77).</description>
    <link>https://dev.to/harryhazza77</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F437064%2F7540ef9e-0d2e-4a0b-b4ae-60cb140f9987.jpeg</url>
      <title>DEV Community: Harry Patel</title>
      <link>https://dev.to/harryhazza77</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/harryhazza77"/>
    <language>en</language>
    <item>
      <title>Simple CORS checker</title>
      <dc:creator>Harry Patel</dc:creator>
      <pubDate>Wed, 26 Aug 2020 08:18:35 +0000</pubDate>
      <link>https://dev.to/harryhazza77/simple-cors-checker-50fg</link>
      <guid>https://dev.to/harryhazza77/simple-cors-checker-50fg</guid>
      <description>&lt;p&gt;Simple way to check if your API has CORS configured for any origin (i.e *). Note CORS only applies for browsers or apps, not curl.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;browse to &lt;a href="https://www.google.com/"&gt;https://www.google.com/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;open dev tools and the console tab where you can run javascript&lt;/li&gt;
&lt;li&gt;copy and paste this:
&lt;code&gt;fetch("https://yahoo.com").then(res =&amp;gt; res.json()).then(console.log)&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;hit enter to execute it and you should errors (as yahoo is not open to CORS from google)
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--OxHlQDK2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/6oqqaqyzh4pft4z36g9z.png" alt="Alt Text"&gt;
&lt;/li&gt;
&lt;li&gt;change the url to your API end point and try again. If CORS is setup to allow any origin there will not be any errors
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mjfjIpMQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/fd7h7xqgipi740zj3vcd.png" alt="Alt Text"&gt;
&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>javascript</category>
    </item>
    <item>
      <title>Iterm2 nuggets</title>
      <dc:creator>Harry Patel</dc:creator>
      <pubDate>Wed, 12 Aug 2020 09:24:07 +0000</pubDate>
      <link>https://dev.to/harryhazza77/iterm2-nuggets-c4d</link>
      <guid>https://dev.to/harryhazza77/iterm2-nuggets-c4d</guid>
      <description>&lt;p&gt;If you're using Iterm2 as you terminal and have Zsh installed, here are some nuggets i've recently discovered:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Instead of the cd (change directory) command, navigate directories with just: &lt;br&gt;
&lt;code&gt;.. (parent dir)&lt;/code&gt;&lt;br&gt;
&lt;code&gt;... (parent from parent dir)&lt;/code&gt;&lt;br&gt;
&lt;code&gt;/ (root)&lt;/code&gt;&lt;br&gt;
&lt;code&gt;~ (home)&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Instead of the mkdir and cd commands, use &lt;code&gt;take&lt;/code&gt; command to create a directory and change the path to it&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Switch between the last and current path with a hyphen &lt;code&gt;-&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;List all alias commands with alias or filter them with grep &lt;code&gt;alias | grep git&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>iterm</category>
      <category>bash</category>
      <category>mac</category>
    </item>
    <item>
      <title>AWS CodeCommit - setting up SSH</title>
      <dc:creator>Harry Patel</dc:creator>
      <pubDate>Sun, 09 Aug 2020 09:52:22 +0000</pubDate>
      <link>https://dev.to/harryhazza77/aws-codecommit-setting-up-ssh-16mi</link>
      <guid>https://dev.to/harryhazza77/aws-codecommit-setting-up-ssh-16mi</guid>
      <description>&lt;p&gt;AWS CodeCommit is basically Github on AWS but it's private, and for sole devs is &lt;a href="https://aws.amazon.com/codecommit/pricing/"&gt;essentially free&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;To set up your identity, just as with Github, you can use HTTPS or SSH. In order to use SSH, I'd recommend setting up a new key pair and so this is what I did on my mac.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open a terminal on your machine and navigate to the ssh folder e.g. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;cd ~/.ssh&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create a new RSA key pair into a dedicated file. Note this format was known to work with Github, CircleCI, Digital Ocean and AWS.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;ssh-keygen -f ./codecommit -m PEM -t rsa -C 'your-email-for@commit-messages'&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Copy it to your clipboard&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;pbcopy &amp;lt; ./codecommit.pub&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Login to your AWS account and visit the &lt;a href="https://console.aws.amazon.com/iam/home?#/security_credentials?credentials=codecommit"&gt;code commit security credentials page&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Click "Upload SSH public key" and paste &lt;/li&gt;
&lt;li&gt;It will save it and display a "SSH Key ID". Copy this - this is Your-IAM-SSH-Key-ID&lt;/li&gt;
&lt;li&gt;Back to your terminal, see if you have a &lt;code&gt;~/.ssh/config&lt;/code&gt; file&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;ls -la&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If you do, edit it, if not create and edit it and enter the following:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;Host git-codecommit.*.amazonaws.com&lt;br&gt;
User Your-IAM-SSH-Key-ID&lt;br&gt;
IdentityFile ~/.ssh/codecommit&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You should now be able to use your ssh credentials to work with CodeCommit&lt;/p&gt;

</description>
      <category>aws</category>
      <category>git</category>
      <category>ssh</category>
    </item>
    <item>
      <title>MongoDB have built a CI System</title>
      <dc:creator>Harry Patel</dc:creator>
      <pubDate>Sat, 01 Aug 2020 09:02:11 +0000</pubDate>
      <link>https://dev.to/harryhazza77/mongodb-have-built-a-ci-system-31j3</link>
      <guid>https://dev.to/harryhazza77/mongodb-have-built-a-ci-system-31j3</guid>
      <description>&lt;p&gt;MongoDB have built a continuous integration system which they appear to use in-house to test mongo against hundreds of operating systems. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/evergreen-ci/evergreen/wiki"&gt;https://github.com/evergreen-ci/evergreen/wiki&lt;/a&gt;&lt;/p&gt;

</description>
      <category>mongodb</category>
      <category>ci</category>
    </item>
    <item>
      <title>AWS Certified Cloud Practitioner Practice (CLF-P01)</title>
      <dc:creator>Harry Patel</dc:creator>
      <pubDate>Wed, 22 Jul 2020 11:04:41 +0000</pubDate>
      <link>https://dev.to/harryhazza77/aws-certified-cloud-practitioner-practice-clf-p01-6h6</link>
      <guid>https://dev.to/harryhazza77/aws-certified-cloud-practitioner-practice-clf-p01-6h6</guid>
      <description>&lt;p&gt;I've just passed my AWS Certified Cloud Practitioner Practice (CLF-P01) exam and thought I'd share some findings.&lt;/p&gt;

&lt;h2&gt;
  
  
  Free resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.freecodecamp.org/news/aws-certified-cloud-practitioner-training-2019-free-video-course/"&gt;freecodecamp course&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.aws.training/"&gt;AWS own content&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Paid resources
&lt;/h2&gt;

&lt;p&gt;There was an offer such that &lt;a href="https://www.udemy.com/share/103a09AkIfc1dbRXg=/"&gt;Stephane Maarek's Udemy Course&lt;/a&gt; was free and that's good too but you'll probably need to pay for it but try the free resources first and see how you feel.&lt;/p&gt;

&lt;p&gt;There are practice exams for $20 (excl tax) from AWS but that's pretty much the cost of Stephane's course.&lt;/p&gt;

&lt;h2&gt;
  
  
  The exam
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Due to Covid-19 and the convenience of it, i did my exam using Pearson Vue's online system which you register for by using &lt;a href="https://www.aws.training/"&gt;this&lt;/a&gt;. &lt;/li&gt;
&lt;li&gt;It was $100 (excl tax) and you can choose from lots of time slots. &lt;/li&gt;
&lt;li&gt;You get 100 minutes for the exam.&lt;/li&gt;
&lt;li&gt;You have to install something on your machine which is where you do the exam and your machine must have a webcam and microphone&lt;/li&gt;
&lt;li&gt;You can start the check-in process 30 minutes before the exam start and this is where you provide pictures of your room and government id (e.g. passport). After you have checked in, if there is more than 5 minutes before the exam, do not hit the next button (you'll know what i mean) as you will have effectively started the exam conditions.&lt;/li&gt;
&lt;li&gt;Eventually, a few minutes before your exam start time, an invigilator/proctor will use online chat, having access to your webcam to check a few things around your desk. You will need to clear all sorts of things such as stationary, drinks, food so they are all out of reach. &lt;/li&gt;
&lt;li&gt;Yes you cannot eat or drink during the exam and cannot leave your chair. &lt;/li&gt;
&lt;li&gt;They watch you during the entire exam. I was picked up (by a second invigilator) that I was looking away from the screen - but I was trying to think about an answer. I understand where they are coming from though.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Good Luck. &lt;/p&gt;

</description>
      <category>aws</category>
      <category>certification</category>
    </item>
  </channel>
</rss>
