Skip to content

Instantly share code, notes, and snippets.

View ross-humphrey's full-sized avatar
🧨

Ross ross-humphrey

🧨
  • @SysGroupPLIC
  • Reading, United Kingdom
  • 01:11 (UTC +01:00)
  • LinkedIn in/rosshumphreyuk
View GitHub Profile
@ross-humphrey
ross-humphrey / kubernetes-vs-docker.md
Created February 21, 2020 21:26
∛ Kubernetes vs Docker 🐳

Kubernetes VS Docker

Notes From Youtube Video

  • Kubernetes allows you to use your existing Docker configurations and workloads, but tackle complexity issues at scale.

Pure docker approach to deployment for a simple deployment:

  • Take applications create containers
  • Push to a registry and push
  • Spin up containers on server stack
@ross-humphrey
ross-humphrey / k8-the-hard-way.txt
Last active February 21, 2020 15:17
Kubernetes The Hard Way Notes
=== Kubernetes - The Hard Way ===
== The labs are hosted on GCP ==
== Provisioning Compute Resource ==
Kubernetes requires a set of machines to host the K8 control plane
and the worker nodes where containers are run.
== Networking ==
Kubernetes assumes a flat network within its networking model in which
@ross-humphrey
ross-humphrey / github-pacakges-commands.sh
Last active February 12, 2020 20:47
😸 Github Packages - Commands
# Template for pushing to github packages
# authenticate on github
docker login docker.pkg.github.com --username <github_username>
# build image
docker build -t docker.pkg.github.com/<github_username>/<repository_name>/<image_name>:<version> <path_to_image_use_._if_in_current_directory>
# push image
docker push docker.pkg.github.com/<github_username>/<repository_name>/<image_name>:<version>
@ross-humphrey
ross-humphrey / install-maven-mac-osx.txt
Created February 11, 2020 22:38
🦜 Install Maven Mac OSX
# Download the Maven binary tar.gz file from the Maven website - for this gist I presume to downloads
# Add Maven to the Evnironment Path
# Fix permissions
cd /Users/<home_dir>
sudo chown -R root:wheel Downloads/apache-maven*
sudo mv Downloads/apache-maven* /opt/apache-maven
@ross-humphrey
ross-humphrey / copy-contents-folder-to-another.sh
Created February 11, 2020 22:02
📃 Copy contents of folder to another
cp -a /source/. /dest/
@ross-humphrey
ross-humphrey / install-nginx-mac-osx.txt
Last active February 11, 2020 22:17
Install Nginx in Mac OSX
# in terminal
brew install nginx
# running on default port you can run without sudo
nginx
# fancy running nginx evertime you start the machine?
# brew services start nginx
# check its running - http://localhost:8080
@ross-humphrey
ross-humphrey / node-gyp-issues-fix.sh
Created February 11, 2020 21:27
🛠 node-gyp issues fix
#!/bin/bash
# A simple script that will update packages that have node-gyp issues (where the package throws an error)
# FYI - node-gyp is a tool that compiles Node.js Addons.
npm install -g npm-check-updates
npm-check-updates -u
npm install
@ross-humphrey
ross-humphrey / quantum-computing-scratchpad.txt
Created February 11, 2020 20:09
⚛️ Quantum Computing - Scratchpad
A scratchpad for the fundamentals of Quantum Computing
Links - to review in order:
https://www.technologyreview.com/s/612844/what-is-quantum-computing/
https://www.youtube.com/watch?v=F_Riqjdh2oM&feature=youtu.be
https://www.youtube.com/watch?v=JRIPV0dPAd4&feature=youtu.be
Play with a Quantum Computer:
ibm.biz/qx-introduction
@ross-humphrey
ross-humphrey / create-read-replica.py
Last active February 11, 2020 12:19
Create Read Replica for Aurora Database with custom endpoint
import boto3
"""
Quick and dirty script - written as part of the AWS Data Lab Workshop
- More work required to formalize the below - untested code.
Move to CDK - when given a free moment
"""
class OnDemandReadReplica():
@ross-humphrey
ross-humphrey / k8-notes.txt
Last active February 17, 2020 14:14
∛ Kubernetes Notes
Collection of notes on Kubernetes
🔗 Links:
https://www.freecodecamp.org/news/learn-kubernetes-in-under-3-hours-a-detailed-guide-to-orchestrating-containers-114ff420e882/
https://github.com/kelseyhightower/kubernetes-the-hard-way
[IN PROGRESS]
Learn Kubernetes in Under 3 Hours: A Detailed Guide to Orchestrating Containers
https://www.freecodecamp.org/news/learn-kubernetes-in-under-3-hours-a-detailed-guide-to-orchestrating-containers-114ff420e882/