docker attach – Acessar dentro do container e trabalhar a partir dele. docker build – A partir de instruções de um arquivo Dockerfile eu possa criar uma imagem. docker commit – Cria uma imagem a partir de um container. docker cp – Copia arquivos ou diretórios do container para o host. docker create – Cria um novo container. docker diff – Exibe as alterações feitas no filesystem do container. docker events – Exibe os eventos do container em tempo real. docker exec – Executa uma instrução dentro do container que está rodando sem precisar atachar nele. docker export – Exporta um container para um arquivo .tar. docker history – Exibe o histórico de comandos que foram executados dentro do container.
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
| Number.prototype.pad = function(size) { | |
| var s = String(this); | |
| while (s.length < (size || 2)) {s = "0" + s;} | |
| return s; | |
| } | |
| (1).pad(3) // => "001" | |
| (10).pad(3) // => "010" | |
| (100).pad(3) // => "100" |
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
| version: '3.7' | |
| services: | |
| db: | |
| image: mysql:5.7 | |
| environment: | |
| MYSQL_DATABASE: 'my_db' | |
| MYSQL_USER: 'my_userapp' | |
| MYSQL_PASSWORD: 'my_userapp_password' | |
| MYSQL_ROOT_PASSWORD: 'root_password' |
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
| # Project Name | |
| | | | | |
| |-|-| | |
| | master | [](https://github.com/restsharp/RestSharp/actions?query=workflow%3A%22Build+and+deploy%22) | | |
| | docs | [](https://app.netlify.com/sites/restsharp/deploys) | | |
| ### Nuget, NPM, PIP, etc. | |
| | | | |
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
| public abstract class Entity | |
| { | |
| public long Id { get; set; } | |
| public Guid UUID { get; set; } | |
| public override bool Equals(object obj) | |
| { | |
| var compareTo = obj as Entity; | |
| if (ReferenceEquals(this, compareTo)) return true; | |
| if (ReferenceEquals(null, compareTo)) return false; |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| public class Blog | |
| { | |
| public int BlogId { get; set; } | |
| private string _url; |
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
| class DesignTimeDbContextFactory: IDesignTimeDbContextFactory<ApplicationDbContext> | |
| { | |
| public ApplicationDbContext CreateDbContext(string[] args) | |
| { | |
| string environment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT"); | |
| IConfiguration config = new ConfigurationBuilder() | |
| .SetBasePath(Path.Combine(Directory.GetCurrentDirectory(), "../Tomlinson.WEB")) | |
| .AddJsonFile("appsettings.json", optional: false, reloadOnChange: true) | |
| .AddJsonFile($"appsettings.{environment}.json", optional: true) | |
| .Build(); |
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
| git checkout main | |
| git fetch origin | |
| git reset --hard origin/main | |
| git checkout -b new-feature |
All these are already installed on epyc.
-
kafkacat(conda install -c conda-forge kafkacat) -
kt(grab it from https://github.com/fgeller/kt/releases) -
kafka-*(come with kafka, if youyum installif from Confluent's repo, or via Docker if you're so inclined). Warning -- JVM based and dreadfully slow. -
jq(conda install -c conda-forge jqor use your favorite package manager)
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
| #!/bin/bash | |
| # Start Browsersync server | |
| browser-sync start --server --files '**/*.css, **/*.html, **/*.js' --directory --port 7777 |
OlderNewer