$ uname -r
This file contains 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
// Package main | |
// Copyright 2017 Kranz. All rights reserved. | |
// Use of this source code is governed by a MIT-style | |
// license that can be found in the LICENSE file. | |
/** | |
Test read file by chunks | |
➜ read ll | |
total 13241936 | |
drwxr-xr-x 5 rlopes staff 170B 16 Jan 01:19 ./ |
This file contains 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
upstream @prometheus { | |
server MY_IP:9090; | |
} | |
upstream @alertmanager { | |
server MY_IP:9093; | |
} | |
server { | |
listen 80; |
This file contains 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
import org.apache.mina.filter.ssl.SslFilter; | |
import org.apache.mina.transport.socket.nio.NioSocketConnector; | |
public class TunnelClient{ | |
....... | |
NioSocketConnector nioConnector = new NioSocketConnector(1); | |
nioConnector.setDefaultRemoteAddress(tunnelServerAddress); | |
nioConnector.setHandler(handler); | |
SslFilter sslFilter = new SslFilter(getSSLContext()); |
bin/kafka-topics.sh --zookeeper localhost:2181 --list
bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic mytopic
bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000
... wait a minute ...
This file contains 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
{ | |
"users":[ | |
{ | |
"username": "user1", | |
"role": "master" | |
}, | |
{ | |
"username": "user2", | |
"role": "master" | |
}, |
This file contains 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
upstream @admin { | |
server my-ip1:8081; | |
server my-ip2:8081; | |
} | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name www.cliente2.com.br; | |
return 301 https://$server_name$request_uri; |
This file contains 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 | |
path=${1} | |
glob_filename=${2} | |
if [ ! ${path} ] || [ ! ${glob_filename} ] | |
then | |
echo "This script will compress files using zip. | |
To use this script you need to inform the directory path and the file |
I hereby claim:
- I am albertogviana on github.
- I am albertogviana (https://keybase.io/albertogviana) on keybase.
- I have a public key whose fingerprint is 08AC 8008 90C1 4B39 DF0B 89B6 A3F2 A295 6907 EE69
To claim this, I am signing this object:
This file contains 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
<?php | |
namespace User\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use ZfcUser\Entity\UserInterface; | |
use Rbac\Identity\IdentityInterface; | |
use Doctrine\Common\Collections\ArrayCollection; | |
/** |