Skip to content

Instantly share code, notes, and snippets.

View jaydestro's full-sized avatar

Jay Gordon jaydestro

View GitHub Profile
require 'mongo' # requires mongoid to be installed
Mongo::Logger.logger.level = ::Logger::FATAL # provides logging output for fails
client = Mongo::Client.new([ '127.0.0.1:27017' ], :database => 'hackathon') # establishes database connection to localhost, database name hackathon
cursor = client[:products].find
cursor.each do |doc|
puts doc
end
require 'mongo' # requires mongoid to be installed
Mongo::Logger.logger.level = ::Logger::FATAL # provides logging output for fails
client = Mongo::Client.new( 'mongodb+srv://admin:[email protected]/hackathon?retryWrites=true' )
#client.collections.each { |coll| puts coll.name } # does a loop on listing each collection in database and then prints them to standard out
cursor = client[:products].find
cursor.each do |doc|
@jaydestro
jaydestro / gist:d0cbfb891a8a1381c8e84dd132904f33
Created April 30, 2020 15:20
AKS Docs - Microsoft Azure
Kubernetes Learning Path v2.0
- https://azure.microsoft.com/en-us/resources/kubernetes-learning-path/?WT.mc_id=code-github-jagord
Administer containers in Azure - https://docs.microsoft.com/en-us/learn/paths/administer-containers-in-azure/?WT.mc_id=code-github-jagord
Supported Kubernetes versions in Azure Kubernetes Service (AKS) - https://docs.microsoft.com/en-us/azure/aks/supported-kubernetes-versions?WT.mc_id=code-github-jagord
Azure Kubernetes Service (AKS)
- https://docs.microsoft.com/en-us/azure/aks/?WT.mc_id=code-github-jagord
Demo – get the code here
https://cda.ms/1gR
Sign up for 12 months free Azure
https://cda.ms/1dc
Welcome back to another episode of AzureFunBytes. Every week we dive into different Azure Fundamentals in an easy to understand Twitch show.
This week, all the way from Scotland, @TechieLass will help me solve three problems on twitch!
How do we start a new Win VM?
How do we prep this VM for prod?
How do we handle cost management?
Sarah and I will discuss her tenure in technology with me and even answer some questions.