Skip to content

Instantly share code, notes, and snippets.

package sample;
import com.amazonaws.AmazonClientException;
import com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.retry.PredefinedRetryPolicies;
import com.amazonaws.retry.RetryPolicy;
import com.amazonaws.services.dynamodbv2.model.InternalServerErrorException;
import com.amazonaws.services.dynamodbv2.model.ProvisionedThroughputExceededException;
@tq-jappy
tq-jappy / MappersSpec.groovy
Created January 29, 2017 13:38
MyBatis mappers automated test with Spock/Spring
package sample.domain.mapper
import org.apache.ibatis.annotations.Delete
import org.apache.ibatis.annotations.Insert
import org.apache.ibatis.annotations.Select
import org.apache.ibatis.annotations.Update
import org.springframework.beans.factory.annotation.AnnotatedBeanDefinition
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.context.ApplicationContext
@tq-jappy
tq-jappy / chef_api_sample.rb
Created June 6, 2014 16:46
sample to print hostname list of chef nodes
require 'rubygems'
require 'chef/config'
require 'chef/log'
require 'chef/node'
require 'chef/rest'
chef_server_url = "https://chefserver/"
client_name = "admin"
signing_key_filename = "/root/.chef/admin.pem"