Skip to content

Instantly share code, notes, and snippets.

---
apiVersion: 1.0.0
metadata:
name: web-java-spring-boot
attributes:
persistVolumes: 'false'
projects:
-
name: web-java-spring-boot
source:
---
apiVersion: 1.0.0
metadata:
name: web-java-spring-boot
attributes:
persistVolumes: 'false'
projects:
-
name: web-java-spring-boot
source:
@objectiser
objectiser / prometheus-nginx.yml
Created May 11, 2018 11:23
NGINX proxy for Prometheus to add scrape request header for disabling tracing
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: prometheus-nginx
spec:
replicas: 1
template:
metadata:
labels:
@objectiser
objectiser / changeHeader.sh
Created October 10, 2017 08:36
Change a MIT license header to Apache
perl -i -p0e 's/\/\/ Permission.*?SOFTWARE\./\/\/ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except\n\/\/ in compliance with the License. You may obtain a copy of the License at\n\/\/\n\/\/ http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n\/\/\n\/\/ Unless required by applicable law or agreed to in writing, software distributed under the License\n\/\/ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n\/\/ or implied. See the License for the specific language governing permissions and limitations under\n\/\/ the License.\n/s' $1