Skip to content

Instantly share code, notes, and snippets.

View sizovs's full-sized avatar
🌴
Mentoring software developers @ principal.dev

Eduards Sizovs sizovs

🌴
Mentoring software developers @ principal.dev
View GitHub Profile
variable "public_key_path" {
default = "~/.ssh/terraform.pub"
}
resource "aws_key_pair" "auth" {
key_name = "terraform-key"
public_key = "${file(var.public_key_path)}"
}
resource "aws_security_group" "default" {
"If you have the right attitude, interesting problems will find you" - Eric Raymond
package lv.craftsmans;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TestRule;
import org.junit.runner.Description;
import org.junit.runner.RunWith;
import org.junit.runners.model.Statement;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
package lv.craftsmans;
import org.junit.Rule;
import org.springframework.beans.factory.config.AutowireCapableBeanFactory;
import org.springframework.test.context.TestContext;
import org.springframework.test.context.support.DependencyInjectionTestExecutionListener;
import org.springframework.util.ReflectionUtils;
import java.lang.reflect.Field;
def "repeatedly resolves correct client in getClientForToken"() {
...
}
ensure 'zzk_skip_avatar_cache_for_finish_avatar_upload', 'any', 'any' {
is '0'
}
ensure 'zzk_email_configuration_graceful_degradation' {
is 'yoman'
}
ensure 'zzk_json' {
ensure 'zzk_skip_avatar_cache_for_finish_avatar_upload', 'any', 'any' {
is '0'
}
ensure 'zzk_email_configuration_graceful_degradation' {
is 'yoman'
}
ensure 'zzk_json' {
is json(
set 'zzk_skip_avatar_cache_for_finish_avatar_upload' hostGroup 'any' appGroup 'any' to '0'
set 'zzk_email_configuration_graceful_degradation' to 'yoman'
set 'zzk_json' to json(
[
'socket-timeout' : 10000,
'connection-timeout': 5000
])
@Override
public void onFloatingActionTrigger() {
getRandomQuestion();
}
private void getRandomQuestion() {
setRefreshing(true);
NetworkActionMaker.MKE.networkRequest(mActivity, RequestDefinition.MY_QUESTIONS_GET_RANDOM, new NetworkActionCallback<QuestionWrapper>() {
// this is a non-abstract TEMPLATE METHOD. Empty by default.
interface Validator
validate(Q)
@Qualifier
@Inherited
@interface V1Annotation {
}
@Component