Skip to content

Instantly share code, notes, and snippets.

Amos Folarin afolarin

  • Kings College London / SLaM NHS Trust
  • London, UK
Block or report user

Report or block afolarin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:326bc4429c7c28d07a703d075189f8de
#DESC: Providing a overview of all the Instances running across the individual regions, something not readily available in AWS web UI :-/
# Install AWS CLI https://aws.amazon.com/cli/
#--------------------------------------------------------------------------------------
# List all aws instances in all regions, parse out response JSON
# Props to: https://github.com/aws/aws-cli/issues/1777
#--------------------------------------------------------------------------------------
function aws-ls-ec2-vm
{
@afolarin
afolarin / resource_alloc_docker.md
Last active Jul 6, 2019
Resource Allocation in Docker
View resource_alloc_docker.md

#Container Resource Allocation Options in docker-run

now see: https://docs.docker.com/engine/reference/run/#runtime-constraints-on-resources

You have various options for controlling resources (cpu, memory, disk) in docker. These are principally via the docker-run command options.

##Dynamic CPU Allocation -c, --cpu-shares=0
CPU shares (relative weight, specify some numeric value which is used to allocate relative cpu share)

@afolarin
afolarin / docker-on-GCE.md
Last active Aug 29, 2015
Docker on Google Compute Engine
View docker-on-GCE.md
View docker-log-gist.md
You can’t perform that action at this time.