- Hypernetes: Bringing Security and Multi-tenancy to Kubernetes
- Docker Compose Environment Variable Binding Examples – Java, Node.Js, PHP, Python, & Ruby On Rails
- Introducing Blue Ocean: a new user experience for Jenkins
- When seconds really do matter
- LVE: an alternative container technology to Docker and Virtuozzo/LXC
- Containers: Just Because Everyone Else is Doing Them Wrong, Doesn’t Mean You Have To
- Fun with DNS
- Putting the Dev in Devops: Bringing Software Engineering to Operations Infrastructure Tooling
- Immutable Infrastructure with AWS and Ansible – Part 1 – Setup
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 RestTemplate notificationCenterRestClient(Environment environment) { | |
CloseableHttpClient httpClient = HttpClients.custom().setSSLHostnameVerifier(new NoopHostnameVerifier()).build(); | |
HttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactory(); | |
requestFactory.setHttpClient(httpClient); | |
return new RestTemplateBuilder() | |
.interceptors(new RestTemplateCorrelationIdInterceptor(), new RestTemplateExecutorInterceptor(environment)) | |
.requestFactory(requestFactory) | |
.build(); | |
} |
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
COPY orig-hosts /tmp/orig-hosts | |
RUN cp /etc/hosts /tmp/hosts && \ | |
mkdir -p -- /lib-override && cp /lib64/libnss_files.so.2 /lib-override && \ | |
sed -i 's:/etc/hosts:/tmp/hosts:g' /lib-override/libnss_files.so.2 && \ | |
chmod 755 /tmp/hosts && \ | |
chown java:java /tmp/hosts | |
ENV LD_LIBRARY_PATH /lib-override |
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
COPY orig-hosts /tmp/orig-hosts | |
RUN cp /etc/hosts /tmp/hosts && \ | |
mkdir -p -- /lib-override && cp /lib64/libnss_files.so.2 /lib-override && \ | |
sed -i 's:/etc/hosts:/tmp/hosts:g' /lib-override/libnss_files.so.2 && \ | |
chmod 755 /tmp/hosts && \ | |
chown java:java /tmp/hosts | |
ENV LD_LIBRARY_PATH /lib-override |
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
var _caq = _caq || {}; | |
var _gcol = _gcol || {unUsedParameters: ['rootUrl'], rootUrl: _caq["rootUrl"], channel: _caq["channel"]}; | |
_gcol.AppendPixel = function (data) { | |
var instance = this; | |
var url = instance.rootUrl + "__gc.gif?_=" + Math.random().toString().slice(12) + "&p=" + instance.RemoveAndEncodeParameters(data); | |
var _pixel = document.createElement("img"); | |
_pixel.src = url; | |
_pixel.id = Math.random() + "_pixel"; | |
_pixel.style.display = "none"; |
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 TaskExecutor taskExecutor() { | |
ThreadPoolTaskExecutor taskExecutor = new ThreadPoolTaskExecutor(); | |
taskExecutor.setCorePoolSize(10); | |
taskExecutor.setMaxPoolSize(25); | |
taskExecutor.setQueueCapacity(100); | |
taskExecutor.setTaskDecorator(runnable -> { | |
Map<String, String> contextMap = MDC.getCopyOfContextMap(); | |
return () -> { | |
try { | |
MDC.setContextMap(contextMap); |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
Index:
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
Index:
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
// $ scala-2.11.5 -Xexperimental | |
// Original Java 8 version: http://winterbe.com/posts/2014/07/31/java8-stream-tutorial-examples/ | |
scala> import java.util.{Arrays, List, ArrayList} | |
scala> import java.util.stream.{Stream, IntStream} | |
// List<String> myList = Arrays.asList("a1", "a2", "b1", "c2", "c1"); | |
scala> val myList = Arrays.asList("a1", "a2", "b1", "c2", "c1") |
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
{ | |
"AWSEBDockerrunVersion": "1", | |
"Authentication": { | |
"Bucket": "yourbucketname", | |
"Key": ".dockercfg.json" | |
}, | |
"Image": { | |
"Name": "umitunal/spring-boot-docker", | |
"Update": "true" |