<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Gcp-Setup on Nyghtowl</title>
    <link>https://nyghtowl.com/series/gcp-setup/</link>
    <description>Recent content in Gcp-Setup on Nyghtowl</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>&lt;a href=&#34;https://creativecommons.org/licenses/by-nc-sa/4.0/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;CC BY-NC-SA 4.0&lt;/a&gt;</copyright>
    <lastBuildDate>Fri, 17 Jul 2020 22:05:26 +0000</lastBuildDate>
    <atom:link href="https://nyghtowl.com/series/gcp-setup/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to End User OAuth for GCP</title>
      <link>https://nyghtowl.com/posts/2020/07/how-to-end-user-oauth-for-gcp/</link>
      <pubDate>Fri, 17 Jul 2020 22:05:26 +0000</pubDate>
      <guid>https://nyghtowl.com/posts/2020/07/how-to-end-user-oauth-for-gcp/</guid>
      <description>&lt;h3 id=&#34;how-to-end-user-oauth-forgcp&#34;&gt;How to End User OAuth for GCP&lt;/h3&gt;&#xA;&lt;p&gt;Let’s talk about end user authentication. I’ve been digging into the authentication space a bit and have some takeaways to share.&lt;/p&gt;&#xA;&lt;p&gt;When you access a GCP service, there is authentication to determine who you are, authorization to determine what you can do and auditing that logs what you did. IAM is where you setup roles for authorization in regards what you can do in a project.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Docker with Cloud SDK &amp; Environment Variables</title>
      <link>https://nyghtowl.com/posts/2020/07/docker-with-cloud-sdk-environment-variables/</link>
      <pubDate>Wed, 08 Jul 2020 18:33:39 +0000</pubDate>
      <guid>https://nyghtowl.com/posts/2020/07/docker-with-cloud-sdk-environment-variables/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://nyghtowl.com/posts/2020/07/docker-with-cloud-sdk-environment-variables/img-01.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Hello again. I am sharing a couple things I learned when working with Docker recently. Main points are how to pass in environment variables, setup Google Cloud SDK in Docker and turn on debugging.&lt;/p&gt;&#xA;&lt;p&gt;Since I haven’t written about Docker before, I’ve provided a brief overview of Docker to give context and a grounding on my pointers. I recommend doing more digging to learn more elsewhere especially considering there are many other resources out there like this &lt;a href=&#34;https://docs.docker.com/get-started/overview/&#34;&gt;Docker overview&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Setup and Invoke Cloud Functions using Python</title>
      <link>https://nyghtowl.com/posts/2020/06/setup-and-invoke-cloud-functions-using-python/</link>
      <pubDate>Tue, 23 Jun 2020 17:21:13 +0000</pubDate>
      <guid>https://nyghtowl.com/posts/2020/06/setup-and-invoke-cloud-functions-using-python/</guid>
      <description>&lt;h3 id=&#34;setup-and-invoke-cloud-functions-usingpython&#34;&gt;Setup and Invoke Cloud Functions using Python&lt;/h3&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://nyghtowl.com/posts/2020/06/setup-and-invoke-cloud-functions-using-python/img-01.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Oh the fun I’ve had learning Cloud Functions. It has actually be fun while also frustrating and definitely enlightening to explore serverless services that are supposed to make things easy. Granted I’ve been around long enough to know there is always ramp up, even when it is simple.&lt;/p&gt;&#xA;&lt;p&gt;Cloud Functions is a service that allows you to run code on Google Cloud servers without needing to deal with server configuration or scaling. It is a pay as you go approach that means you pay for what you use and that can help optimize costs. I’ve started using it for a couple functions that I need to run multiple times and that is where it can be very valuable. There was a learning curve especially when connecting different services and this post covers key learnings on these subjects.&lt;/p&gt;</description>
    </item>
    <item>
      <title>BigQuery Dataset Metadata Queries</title>
      <link>https://nyghtowl.com/posts/2020/06/bigquery-dataset-metadata-queries/</link>
      <pubDate>Mon, 08 Jun 2020 17:49:33 +0000</pubDate>
      <guid>https://nyghtowl.com/posts/2020/06/bigquery-dataset-metadata-queries/</guid>
      <description>&lt;h3 id=&#34;bigquery-dataset-metadataqueries&#34;&gt;BigQuery Dataset Metadata Queries&lt;/h3&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://nyghtowl.com/posts/2020/06/bigquery-dataset-metadata-queries/img-01.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;When working with tables in BigQuery, you need an understanding of a dataset structure whether it is public or you set it up and you want to review. This is a quick bit to share queries you can use to pull metadata on your datasets and tables.&lt;/p&gt;&#xA;&lt;p&gt;In the following examples, I’m using the BigQuery public &lt;a href=&#34;http://console.cloud.google.com/marketplace/details/stack-exchange/stack-overflow&#34;&gt;Stack Overflow&lt;/a&gt; database to demonstrate these commands. Change out the names as needed for the dataset and tables you are working with.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Setup and Switch Between Google Cloud Projects in the SDK</title>
      <link>https://nyghtowl.com/posts/2020/05/setup-and-switch-between-google-cloud-projects-in-the-sdk/</link>
      <pubDate>Wed, 27 May 2020 17:21:16 +0000</pubDate>
      <guid>https://nyghtowl.com/posts/2020/05/setup-and-switch-between-google-cloud-projects-in-the-sdk/</guid>
      <description>&lt;h3 id=&#34;setup-and-switch-between-google-cloud-projects-in-thesdk&#34;&gt;Setup and Switch Between Google Cloud Projects in the SDK&lt;/h3&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://nyghtowl.com/posts/2020/05/setup-and-switch-between-google-cloud-projects-in-the-sdk/img-01.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Providing a quick overview on how to setup and switch between Google Cloud projects with the SDK on a single machine. This is helpful when working with multiple projects (especially when collaborating) and you are using Cloud SDK.&lt;/p&gt;&#xA;&lt;h3 id=&#34;setup--authenticate&#34;&gt;Setup &amp;amp; Authenticate&lt;/h3&gt;&#xA;&lt;p&gt;The following steps are needed whether creating a project for the first time or a project already exists and you are logging into it off a computer where you will do local development. This assumes you will run all commands from a terminal.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Cloud Storage with Gsutils &amp; Python Client Library</title>
      <link>https://nyghtowl.com/posts/2020/02/cloud-storage-with-gsutils-python-client-library/</link>
      <pubDate>Sat, 29 Feb 2020 01:05:19 +0000</pubDate>
      <guid>https://nyghtowl.com/posts/2020/02/cloud-storage-with-gsutils-python-client-library/</guid>
      <description>&lt;h3 id=&#34;cloud-storage-with-gsutils--python-clientlibrary&#34;&gt;Cloud Storage with Gsutils &amp;amp; Python Client Library&lt;/h3&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://nyghtowl.com/posts/2020/02/cloud-storage-with-gsutils-python-client-library/img-01.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;BLOB (binary large object) storage is aptly named. Google Cloud Storage is a BLOB storage solution that stores unstructured data. It’s like the closet you can shove a bunch of stuff into and don’t have to organize the information before putting it inside. It’s insanely flexible in size meaning it can hold anything and doesn’t need any special processing to store it.&lt;/p&gt;</description>
    </item>
    <item>
      <title>SSH Agent Forwarding &amp; Remote Upstream with GitHub &amp; GCE</title>
      <link>https://nyghtowl.com/posts/2020/02/ssh-agent-forwarding-remote-upstream-github-gce/</link>
      <pubDate>Thu, 20 Feb 2020 23:13:05 +0000</pubDate>
      <guid>https://nyghtowl.com/posts/2020/02/ssh-agent-forwarding-remote-upstream-github-gce/</guid>
      <description>&lt;h3 id=&#34;ssh-agent-forwarding--remote-upstream-with-github-gce&#34;&gt;SSH Agent Forwarding &amp;amp; Remote Upstream with GitHub &amp;amp; GCE&lt;/h3&gt;&#xA;&lt;p&gt;When working with a cloud-based distributed version-control system during software development like GitHub, there are a couple key configurations that will enable you to collaborate on a project and work on a remote server like GCE (Google Compute Engine). You need to provide credentials to push and pull content from GitHub which SSH agent forwarding will help you accomplish. If you are working on a forked GitHub repo (repository) then you will want to setup remote upstream to keep it up to date.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Jupyter Notebook on Compute Engine with HTTPS</title>
      <link>https://nyghtowl.com/posts/2020/02/jupyter-notebook-on-compute-engine-with-https/</link>
      <pubDate>Wed, 19 Feb 2020 05:51:23 +0000</pubDate>
      <guid>https://nyghtowl.com/posts/2020/02/jupyter-notebook-on-compute-engine-with-https/</guid>
      <description>&lt;h3 id=&#34;jupyter-notebook-on-compute-engine-withhttps&#34;&gt;Jupyter Notebook on Compute Engine with HTTPS&lt;/h3&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://nyghtowl.com/posts/2020/02/jupyter-notebook-on-compute-engine-with-https/img-01.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;I wanted to run/serve Jupyter Notebook from my remote GCE instance and access it through my laptop’s browser to test and visualize Python code snippets. I’ve done this before in a previous post I wrote a few years ago but a few things have changed in the setup. For this setup, I wanted to use https to access the notebook URL which required SSL certificate setup. As stated in the title, this post steps through how I setup Jupyter Notebook to run on my GCE using HTTPS.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Setup Compute Engine with Python ML Libraries</title>
      <link>https://nyghtowl.com/posts/2020/02/setup-compute-engine-with-python-ml-libraries/</link>
      <pubDate>Sat, 15 Feb 2020 01:43:42 +0000</pubDate>
      <guid>https://nyghtowl.com/posts/2020/02/setup-compute-engine-with-python-ml-libraries/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://nyghtowl.com/posts/2020/02/setup-compute-engine-with-python-ml-libraries/img-01.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Below I will step through how I setup a Virtual Machine on Google Compute Engine with standard requirements as well as Python and related packages. In a previous post, I went through how to setup a VM and access to it from my laptop CLI.&lt;/p&gt;&#xA;&lt;p&gt;As mentioned, I like accessing the remote server through the CLI and below I walk through commands to setup the remote instance with basic packages for Linux instance and common Python machine learning packages. Also, the instance I worked with was based on the Debian/GNU Linux 9 image. If you use a different instance, the commands may change but the general steps are similar.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Setup Local Terminal Access to Compute Engine</title>
      <link>https://nyghtowl.com/posts/2020/02/setup-local-terminal-access-to-compute-engine/</link>
      <pubDate>Mon, 10 Feb 2020 18:53:32 +0000</pubDate>
      <guid>https://nyghtowl.com/posts/2020/02/setup-local-terminal-access-to-compute-engine/</guid>
      <description>&lt;h3 id=&#34;setup-local-terminal-access-to-computeengine&#34;&gt;Setup Local Terminal Access to Compute Engine&lt;/h3&gt;&#xA;&lt;p&gt;I’ve been playing around with the Google Cloud Platform again in a way I haven’t done for a while. It is a strange sense of deja vu and scratches that addictive learning itch. Below are the steps I took on this latest project to setup a VM (virtual machine) on GCP and login to it from my laptop terminal (CLI).&lt;/p&gt;&#xA;&lt;p&gt;This assumes an existing GCP account. If not then sign up to follow along.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
