Skip to content

Instantly share code, notes, and snippets.

View ross-humphrey's full-sized avatar
🧨

Ross ross-humphrey

🧨
  • @SysGroupPLIC
  • Reading, United Kingdom
  • 20:53 (UTC +01:00)
  • LinkedIn in/rosshumphreyuk
View GitHub Profile
@ross-humphrey
ross-humphrey / link.txt
Created March 17, 2021 23:36
Netflix Blog Post on x.509 Certificate Orchestration
@ross-humphrey
ross-humphrey / create-secrets-in-secrets-manager.sh
Created March 3, 2021 11:25
Some commands to create secrets in secrets manager
#RDS Secret Creation
aws secretsmanager create-secret --name "name-of-secret" --description "description-of-secret" --secret-string "{\"username\":\"db-username\",\"password\":\"db-password\",\"engine\":\"db-engine\",\"host\":\"db-host\",\"port\":db-port-number,\"dbClusterIdentifier\":\"db-cluster-id\"}"
# Generic Secrets Creation
aws secretsmanager create-secret --name "name-of-secret" --description "description-of-secret" --secret-string "{\"username\":\"username”\",\"password\":\"password\"}"
@ross-humphrey
ross-humphrey / disable_time_machine_throttling.sh
Created January 14, 2021 11:15
Disable throttling for low priority applications on a Mac (Time Machine Throttling)
sudo sysctl debug.lowpri_throttle_enabled=0
@ross-humphrey
ross-humphrey / add-ena-support.sh
Created August 25, 2020 11:24
🔒 Add ENA (to EC2) command
aws ec2 modify-instance-attribute --instance-id i-0f405d23fd4e77d57 --ena-support --region eu-west-1
@ross-humphrey
ross-humphrey / remove-from-git-not-local.sh
Created August 19, 2020 22:05
Remove file from git - but not from local
git commit -a -m "Removing idea"
@ross-humphrey
ross-humphrey / ec2_memory_monitoring.md
Created August 6, 2020 15:54
💻 EC2 Memory Monitoring

Installing Memory Monitoring On EC2

Handy Commands

Find out what OS you are running (where this is not shown in AWS Console or via the AMI) Unix: cat /etc/os-release

Associate Permissions with EC2

Policy Created: EC2_Memory_Profiling_Policy Role created: EC2_Memory_Profiling_Role

@ross-humphrey
ross-humphrey / list-and-delete-mfa.sh
Created July 7, 2020 13:21
🔒 List MFA devices and Delete them
aws iam list-virtual-mfa-devices
aws iam delete-virtual-mfa-device --serial-number <arn_of_iam_mfa_from_previous_command>
@ross-humphrey
ross-humphrey / containerizing-a-software-application-with-docker-course.md
Created June 4, 2020 21:23
Notes taken during the 'Containerizing a Software Application with Docker' course

Containerizing a Software Application with Docker

Intro

  • Container driven delivery
  • The course covers
    • Anatomy of a Docker image
    • Techniques for building images
    • Authoring an image
    • Naming and sharing images
@ross-humphrey
ross-humphrey / fargate-vs-ec2.md
Last active March 2, 2020 06:38
👩‍🌾 Fargate Vs EC2

Fargate vs EC2

Adapted from this great article

  • Fargate runs docker containers serverless. Fargate utilizes Docker containers and runs them virtually.
  • Fargate allows you to run containers without having to manage servers or clusters.
  • No need to scale, provision or configure clusters of virtual machines to run containers.
  • No need to choose server types and how they communicate

Two modes

@ross-humphrey
ross-humphrey / django-on-docker.md
Created February 21, 2020 21:51
🐍Django on Docker 🐳

Django on Docker - From Scratch

Adapted from Youtube video

Project set up

Create a virtual environment

  • pipenv install django==3.0.3 gunicorn --python 3.8.1
  • Small note to self - look into gunicorn advantages over python manage.py runserver