Skip to content

Instantly share code, notes, and snippets.

View ozaydinb's full-sized avatar
📷

Barış Özaydın ozaydinb

📷
View GitHub Profile
apiVersion: apps/v1
kind: Deployment
metadata:
name: ${CI_PROJECT_NAME}-deployment
namespace: ${NAMESPACE}
spec:
replicas: 1
revisionHistoryLimit: 2
selector:
matchLabels:
@ozaydinb
ozaydinb / service.yml
Created July 3, 2021 05:27
sample gitlab service.yml
apiVersion: v1
kind: Service
metadata:
name: ${CI_PROJECT_NAME}-service
namespace: tim
spec:
type: NodePort
ports:
- port: 8080
targetPort: 8080
#!/bin/sh
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep '\.go$')
[ -z "$gofiles" ] && exit 0
unformatted=$(gofmt -l $gofiles)
[ -z "$unformatted" ] || echo "needs formatting: $unformatted"
# tests
echo "running tests before commiting go files"
go test -v -race $(go list ./... | grep -v /vendor/)
RESULT=$?
0x50fcfA338C061Ed28263CBa49Cf9692C09b1De5B
0x672f94852D2F3D789F0e201d1F15Be0f2db32dec
@ozaydinb
ozaydinb / index.html
Last active December 26, 2015 20:59
Angular.js Todo Sample
<!DOCTYPE html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js"></script>
<script src="todoController.js"></script>
<script src="todo.js"></script>
<style type="text/css">
.todoCompleted {
text-decoration: line-through;
}
@ozaydinb
ozaydinb / WelcomeAngular.html
Last active November 8, 2016 16:07
Angular.js helloworld
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js"></script>
</head>
<body>
<input type="text" ng-model="isminiz" placeholder="Adınızı Giriniz"> <br/>
Merhaba {{isminiz}}
</body>
</html>