Skip to content

Instantly share code, notes, and snippets.

View lucaslago's full-sized avatar

Lucas Lago lucaslago

  • Atlassian
  • Sydney, Australia
View GitHub Profile
@lucaslago
lucaslago / cheatsheet.md
Created January 13, 2018 22:16
Docker cheat sheet

docker build -t friendlyhello . # Create image using this directory's Dockerfile docker run -p 4000:80 friendlyhello # Run "friendlyname" mapping port 4000 to 80 docker run -d -p 4000:80 friendlyhello # Same thing, but in detached mode docker container ls # List all running containers docker container ls -a # List all containers, even those not running docker container stop # Gracefully stop the specified container docker container kill # Force shutdown of the specified container docker container rm # Remove specified container from this machine docker container rm $(docker container ls -a -q) # Remove all containers docker image ls -a # List all images on this machine

@lucaslago
lucaslago / docker_cheat_sheet.md
Last active January 13, 2018 22:38
Docker cheat sheet

Cheat sheet

  • $ docker build -t friendlyhello . Create image using this directory's Dockerfile
  • $ docker run -p 4000:80 friendlyhello # Run "friendlyname" mapping port 4000 to 80
  • $ docker run -d -p 4000:80 friendlyhello         # Same thing, but in detached mode
  • $ docker container ls                               # List all running containers-
  • $ docker container ls -a             # List all containers, even those not running
  • $ docker container stop <hash>           # Gracefully stop the specified container
  • $ docker container kill <hash>         # Force shutdown of the specified container
  • $ docker container rm       # Remove specified container from this machine
@lucaslago
lucaslago / genesis_public_key
Created February 28, 2018 14:11
genesis_public_key
0479033f2b224b12e7f5aea83ecc4b5646e3cccbe13018b6dd78a9ddbb489fb1f5945f24d6d2d22e60ae1cda98b09015c6c9132225ff55fe9e02cdf4345f087e42;fnando

Keybase proof

I hereby claim:

  • I am lucaslago on github.
  • I am bndr (https://keybase.io/bndr) on keybase.
  • I have a public key whose fingerprint is 60E4 A1C8 B889 F0B2 54B0 B30C B18E EA3B 38F6 B405

To claim this, I am signing this object:

// 1. Asserting on mocked class instance
const mockedSentryInstance = jest.mocked(Toucan).mock.instances[0];