- 1 Instalação
- 2 Testando o Docker
- 3 Containers
- 3.2 [Verificando containers em execução e quais já foram executados](https://gist.github.com/ifasanelli/4bf6d03a589539f1daba0b203072b5e
I have created a local Kubernetes cluster with kind. Following are changes you need to get metric-server running on Kind.
Deploy latest metric-server release.
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.5.0/components.yaml
Within existing arguments to metric-server container, you need to add argument --kubelet-insecure-tls
.
/** | |
* Hash table with open addressing. | |
* | |
* <p>This contains some common methods of Map interface, including size, isEmpty, put, get, remove, | |
* containsKey | |
* | |
* <p>For open addressing hash table, we use 100% of the inner array space, and it is a close | |
* hashing. When collision occurs, it has to find an empty position to store the element. Pedro | |
* provided few methods to probe a new index. I am not quite familiar with quadratic probing, so the | |
* default probing method is linear probing, which means if the index is occupied, it automatically |
<?php | |
namespace App\Listeners; | |
use App\Media; | |
use FFMpeg\FFMpeg; | |
use FFMpeg\Format\Video\X264; | |
use Illuminate\Queue\InteractsWithQueue; | |
use Illuminate\Contracts\Queue\ShouldQueue; | |
use Illuminate\Queue\SerializesModels; |
<?php namespace App\Providers; | |
use Elastica\Client; | |
use Illuminate\Support\ServiceProvider; | |
use Monolog\Formatter\LogstashFormatter; | |
use Monolog\Handler\ElasticSearchHandler; | |
class ElasticLoggingProvider extends ServiceProvider | |
{ |
<?php | |
namespace App\Models; | |
use Auth; | |
use Illuminate\Database\Eloquent\Model as BaseModel; | |
class Model extends BaseModel | |
{ | |
protected $userAttributes = []; |
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
package main | |
import ( | |
"net/http" | |
) | |
func main() { | |
finish := make(chan bool) | |
server8001 := http.NewServeMux() |
Escolhi tratar sobre esse assunto hoje simplesmente porque foi uma das primeiras coisas que me perguntei "como eu faço isso?" no mundo ruby. Acredito que muita gente se pergunte a mesma coisa e espero que eu possa ajudar em algo para elas. 😀
Bem, se você é um programador java, você chama sua gem de jar, se você é um programador C#, você chama de dll. Resumindo, é uma lib, uma biblioteca contendo códigos que você pode reaproveitar importando em outros projetos.
E usar gems no ruby é muito fácil, se você já deu uma brincada com rails por exemplo, é só você adicionar o código gem 'nome_da_gem'
no arquivo Gemfile
que está no root, depois executar o comando bundle install
para baixar sua gem do repositório e pronto, só sair usando a biblioteca!