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
curl -sD- -H x-ec-debug:cache-verbose,x-ec-cache,x-ec-check-cacheable,x-ec-cache-key,x-ec-cache-state -H "Origin: https://www.google.com" https://www.google.com |
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
# Add a new tag | |
git tag -a "v1" -m "Rolled out new changes" | |
# Push tags to remote | |
git push --tags | |
# Remove tag | |
git tag -d v1 | |
# Remove tag from origin |
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
{ | |
"send-notification-if-less-than-5": { | |
"Comment": "A choice state to decide to send out notification for <5 or trigger power of three lambda for >5.", | |
"Type": "Choice", | |
"Choices": [ | |
{ | |
"Variable": "$", | |
"NumericGreaterThanEquals": 5, | |
"Next": "power-of-three-lambda" |
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
# Docker’s commit command allows users to take a running container and save its current state as an image | |
docker commit ${container-id} ${image-name} | |
# Export the image as tar | |
docker save ${image-name} > ./{image-tar-name}.tar | |
# Load a tar image | |
docker load < ${image-tar-name}.tar |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: kong-dashboard-admin | |
spec: | |
type: LoadBalancer | |
loadBalancerSourceRanges: | |
- 0.0.0.0/0 | |
ports: | |
- name: kong-dashboard-admin |
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
FROM python:2.7 | |
ENV AWS_DEFAULT_REGION='[your region]' | |
ENV AWS_ACCESS_KEY_ID='[your access key id]' | |
ENV AWS_SECRET_ACCESS_KEY='[your secret]' | |
RUN pip install awscli | |
CMD /bin/bash |
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
https://github.com/mroth/scmpuff |
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
@RunWith(SpringRunner.class) | |
@WebMvcTest(EntrySubmitRestController.class) | |
@ContextConfiguration(classes = EntrySubmitRestControllerTest.ContextConfiguration.class) | |
public class EntrySubmitRestControllerTest { | |
@TestConfiguration | |
static class ContextConfiguration { | |
@Bean | |
@Qualifier("entrySubmitDueDate") |
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
FROM openjdk:8-jdk | |
# For alpine | |
# RUN apk add --update openssl | |
# RUN apk add coreutils | |
# create a temp dir in which to work | |
RUN OLDDIR="$PWD" | |
RUN mkdir /tmp/rds-ca && cd /tmp/rds-ca |
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
@Slf4j | |
@SpringBootApplication | |
public class FtpDemoApplication implements CommandLineRunner { | |
public static void main(String[] args) { | |
SpringApplication springApplication = new SpringApplicationBuilder() | |
.sources(FtpDemoApplication.class).web(WebApplicationType.NONE).build(); | |
springApplication.run(args).close(); | |
} |