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
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" { |
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
"If you have the right attitude, interesting problems will find you" - Eric Raymond |
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
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; |
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
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; |
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
def "repeatedly resolves correct client in getClientForToken"() { | |
... | |
} |
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
ensure 'zzk_skip_avatar_cache_for_finish_avatar_upload', 'any', 'any' { | |
is '0' | |
} | |
ensure 'zzk_email_configuration_graceful_degradation' { | |
is 'yoman' | |
} | |
ensure 'zzk_json' { |
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
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( |
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
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 | |
]) |
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
@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. |
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
interface Validator | |
validate(Q) | |
@Qualifier | |
@Inherited | |
@interface V1Annotation { | |
} | |
@Component |