http://testobsessed.com/wp-content/uploads/2011/04/testheuristicscheatsheetv1.pdf
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 com.paulbrodner.buddy; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import org.springframework.boot.context.properties.ConfigurationProperties; | |
| import org.springframework.context.annotation.Configuration; | |
| import javax.annotation.PostConstruct; | |
| import javax.mail.*; | |
| import javax.mail.internet.InternetAddress; |
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
| #!/usr/bin/env bash | |
| # change region here | |
| REGIONS=(eu-west-1 us-east-1) | |
| for region in "${REGIONS[@]}"; do | |
| echo "Resources with no tags in region: $region" | |
| export AWS_DEFAULT_REGION=$region | |
| aws resourcegroupstaggingapi get-resources | jq '.ResourceTagMappingList' | jq '.[] | select((.Tags|length) == 0) | {resource: .ResourceARN }' | |
| done |
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
| version: '2' | |
| services: | |
| prometheus: | |
| image: prom/prometheus:latest | |
| volumes: | |
| - ./prometheus.yml:/etc/prometheus/prometheus.yml | |
| command: | |
| - '--config.file=/etc/prometheus/prometheus.yml' | |
| ports: | |
| - '9090:9090' |
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
| //setup | |
| //hide | |
| [source,cypher] | |
| ---- | |
| CREATE (neo:Database {name:'Neo4j'}) | |
| CREATE (neo)-[:SUPPORTS]->(:Language {name:'Cypher'}) | |
| ---- |
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
| help: ## debian | |
| @fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | |
| help: ## output this help | |
| @awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?##|[a-zA-Z_-]\.?+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | |
| .DEFAULT_GOAL := help |
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
| # transform image.jpg into base64 | |
| openssl base64 -in image.jpg -out base64.txt | |
| <img src="data:image/jpeg;base64, base64.txt-content"/> |
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
| // https://paulbrodner.github.io/2019/tas | |
| public class CmisWorkshopDemo extends CmisTest | |
| { | |
| /** | |
| * As an engineer I want to create a new random test user | |
| * I want to use that user to defined a new random site | |
| * And using CMIS protocol, to create a folder | |
| * | |
| */ | |
| @Test(groups="techTalk") |
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
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-enforcer-plugin</artifactId> | |
| <version>3.0.0-M2</version> | |
| <executions> | |
| <execution> | |
| <id>enforce-maven</id> | |
| <goals> | |
| <goal>enforce</goal> |
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
| <profile> | |
| <id>acs-deployment</id> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>com.googlecode.maven-download-plugin</groupId> | |
| <artifactId>download-maven-plugin</artifactId> | |
| <version>1.3.0</version><!-- 1.4.0 gives class not found issues with "CachedFileEntry": https://github.com/maven-download-plugin/maven-download-plugin/issues/80 --> | |
| <executions> | |
| <execution> |