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
image: node:6-alpine | |
cache: | |
key: "$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME" | |
paths: | |
- node_modules/ | |
- yarn_cache/ | |
stages: | |
- 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
stages: | |
- build | |
- publish | |
.build: &build_template | |
stage: build | |
image: microsoft/dotnet:2.1-sdk-alpine | |
cache: | |
key: "$CI_PROJECT_NAMESPACE-$CI_PROJECT_NAME" | |
paths: |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fiddler2] | |
"BlockUpdateCheck"="True" |
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
// nuget package reference with: | |
// - System.IdentityModel.Tokens.Jwt | |
using System; | |
using System.Security.Cryptography; | |
using Newtonsoft.Json; | |
using Microsoft.IdentityModel.Tokens; | |
static void Main(string[] args) { | |
var provider = new RSACryptoServiceProvider(2048); | |
var key = new RsaSecurityKey(provider.ExportParameters(true)); |
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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: elasticsearch-logging | |
namespace: kube-system | |
labels: | |
k8s-app: elasticsearch-logging | |
spec: | |
replicas: 1 | |
template: |
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
#!/bin/bash | |
# This script cleans up your EC2 instance before baking a new AMI. | |
# Run the following command in a root shell: | |
# | |
# wget -qO- https://gist.github.com/zerda/677b279f2b8888ed92c4c614790fe232/raw/ami-clean.sh | bash | |
function print_green { | |
echo -e "\e[32m${1}\e[0m" | |
} |
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 nginx:alpine | |
EXPOSE 80 | |
RUN apk add --update --no-cache jq | |
ADD ./docker-entrypoint.sh / | |
ADD ./config.json ./index.html /usr/share/nginx/html/ | |
ENV CONFIG_PATH=/usr/share/nginx/html/config.json | |
ENTRYPOINT ["/docker-entrypoint.sh"] | |
CMD ["nginx", "-g", "daemon off;"] |
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
image: maven:3.3-jdk-8-alpine | |
cache: | |
key: "$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME" | |
paths: | |
- .m2/ | |
variables: | |
MAVEN_OPTS: "-Dmaven.repo.local=.m2" |
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
# Copied from https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml | |
--- | |
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
name: flannel | |
rules: | |
- apiGroups: | |
- "" |
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: batch/v1beta1 | |
kind: CronJob | |
metadata: | |
name: backup | |
namespace: kube-system | |
spec: | |
# activeDeadlineSeconds: 100 | |
schedule: "0 */1 * * *" | |
jobTemplate: | |
spec: |
NewerOlder