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
This gist describes the process of setting up direct grant access (oauth2 resource owner password flow) with keycloak and spring boot. We'll follow the | |
below steps - | |
1. Install keycloak - there are plenty of examples out there (even a docker image) | |
2. Create a demo realm and create a client within the demo realm with the settings as - | |
client-protocol: openid-connect, access-type: confidential, (implicit-flow+direct-access-grant+service-accounts)=enabled | |
3. Create 2 roles - developer and admin within the demo realm | |
4. Create 2 users - one with developer role and other with admin (Ensure that user is enabled, there are no "Required User Actions" and that the password has been reset (in the credentials tab) | |
Kafka 0.11.0.0 (Confluent 3.3.0) added support to manipulate offsets for a consumer group via cli kafka-consumer-groups
command.
- List the topics to which the group is subscribed
kafka-consumer-groups --bootstrap-server <kafkahost:port> --group <group_id> --describe
Note the values under "CURRENT-OFFSET" and "LOG-END-OFFSET". "CURRENT-OFFSET" is the offset where this consumer group is currently at in each of the partitions.
- Reset the consumer offset for a topic (preview)
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
#!groovy | |
pipeline { | |
agent any | |
stages { | |
stage('Checkout') { | |
steps { | |
checkout scm | |
} |
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
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: kube-registry-v0 | |
namespace: kube-system | |
labels: | |
k8s-app: kube-registry | |
version: v0 | |
spec: | |
replicas: 1 |
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
{ "conferences": [ | |
{ | |
"name": "Sao Paulo Science meetup", | |
"month": "January", | |
"city": "Sao Paulo", | |
"country": "Brazil", | |
"role": ["Speaker"], | |
"slides": ["http://slides.com/hannelitavante-hannelita/geometria-analitica#/"], | |
"video": "https://www.youtube.com/watch?v=a9s2PQavqYk", | |
"website": ["https://www.meetup.com/SP-Math-Physics-Science-Meetup/events/227582851/"], |
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
#!/usr/bin/groovy | |
/* | |
* Copyright (c) 2016, Andrey Makeev <[email protected]> | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* 1. Redistributions of source code must retain the above copyright |
Follow instructions in Spring Cloud Data Flow Runtime - Deploying on YARN
by Murilo Gun
- Abundancia - O futuro é melhor do que você imagina | Steven Kotler e Peter H. Diamandis
- VLEF - Vai lá e faz
- A Startup Enxuta - Como Os Empreendedores Atuais Utilizam a Inovação
- Marketing e Comunicação da Era Pós-Digital - As Regras Mudaram | Walter Longo
- De Onde Vem as Boas Ideias | Steven Johnson
- Steve Jobs - A Biografia | Walter Isaacson
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
public class EncryptablePropertiesPropertySource extends MapPropertySource { | |
@SuppressWarnings({ "unchecked", "rawtypes" }) | |
public EncryptablePropertiesPropertySource(String name, Properties source) { | |
super(name, (Map) source); | |
} | |
protected EncryptablePropertiesPropertySource(String name, Map<String, Object> source) { | |
super(name, source); | |
} |
NewerOlder