docker run <image_name | container_id,container_name>
docker run image:version
docker run python:3.6 cat /etc/*release*
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from turtle import Screen, Turtle, colormode | |
| import random | |
| def random_color(): | |
| '''returns a Random rgb color tuple''' | |
| return (random.randint(1,255),random.randint(1,255),random.randint(1,255)) | |
| turtle = Turtle() | |
| colors = ('cornflower blue', 'lime green', 'red', 'dark magenta','light blue','gold','medium blue','dark orange') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Reactive Search Component Angular | |
| https://psivakrishnareddy.medium.com/reactive-search-component-using-rxjs-angular-app-explained-d9a10daab8e0 | |
| import { Component, ElementRef, EventEmitter, OnInit, Output } from '@angular/core'; | |
| import { Observable, fromEvent } from 'rxjs'; | |
| import { debounceTime, distinctUntilChanged, filter, map } from 'rxjs/operators'; | |
| import { SearchResults } from 'src/app/shared/models/search-result.model'; | |
| import { anyService } from 'any.service'; | |
| @Component({ |
This sheet goes along with this SSH YouTube tutorial
$ ssh brad@192.168.1.29
$ mkdir test
$ cd test
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user