Skip to content

Instantly share code, notes, and snippets.

View ismailyenigul's full-sized avatar

ismail yenigul ismailyenigul

View GitHub Profile
@ismailyenigul
ismailyenigul / cloudwatch-metrics-for-cloudtrail-logs.md
Last active September 2, 2020 08:15
Cloudtwatch Metrics for AWS Cloudtrail

Cloudtrail Changes

{ ($.eventName = CreateTrail) || ($.eventName = UpdateTrail) || ($.eventName = DeleteTrail) || ($.eventName = StartLogging) || ($.eventName = StopLogging) }

AWS Config Change

@ismailyenigul
ismailyenigul / jenkinspipeline-ecr.yml
Created August 13, 2020 07:13
Jenkins pipeline to build docker image and push to ecr
pipeline {
environment {
imagename = "ismailtest"
ecrurl = "https://828556645578.dkr.ecr.us-east-2.amazonaws.com"
ecrcredentials = "ecr:us-east-2:ecr-ismail"
dockerImage = ''
}
agent any
stages {
stage('Cloning Git') {
@ismailyenigul
ismailyenigul / docker.Jenkinsfile
Created August 6, 2020 20:18
sample Jenkinsfile declarative pipeline to build/push docker image
pipeline {
environment {
imagename = "yenigul/hacicenkins"
registryCredential = 'yenigul-dockerhub'
dockerImage = ''
}
agent any
stages {
stage('Cloning Git') {
steps {

Keybase proof

I hereby claim:

  • I am ismailyenigul on github.
  • I am ismailyenigul (https://keybase.io/ismailyenigul) on keybase.
  • I have a public key ASCZFkmkSBZ0ztbsZgwq4zcLxuWFQRxi5bKRiKBXzVsTxQo

To claim this, I am signing this object:

@ismailyenigul
ismailyenigul / traefikv2-custom-container-port.yml
Last active July 17, 2020 18:39
traefikv2 container with custom http port
traefik2 label for the container running service different than port 80 (ie 8080)
container_name: webserver
restart: always
labels:
- traefik.http.routers.websrv.rule=Host(`cloud.mydomain.com`)
- traefik.http.services.websrv.loadbalancer.server.port=8080
@ismailyenigul
ismailyenigul / swaks-aws-ses.md
Created July 8, 2020 15:47
swaks AWS SES Test email

install swaks

apt install -y swaks

send test message

swaks  --from [email protected] --to [email protected] --auth-user myuser --auth-password "mypass"  --server  email-smtp.eu-west-1.amazonaws.com  --tlsc

Options

@ismailyenigul
ismailyenigul / kubectl-bash-auto-completion-on-MacOS.md
Created July 2, 2020 06:04
kubectl bash auto completion on MacOS

on Bash

$ brew install bash-completion
$ kubectl completion ~/.kubectl-bash
$ echo ". /usr/local/etc/profile.d/bash_completion.sh" >> ~/.bash_profile
$ echo ". ~/.kubectl-bash"  >> ~/.bash_profile
$ source  ~/.bash_profile

@ismailyenigul
ismailyenigul / nextcloud-traefik2-multi-network-deployment.yml
Last active September 15, 2021 07:55
nextcloud-traefik2-multi-network-deployment
## Trafik Multi Network Deployment
1. Create Traefik network
` # docker network create --driver=bridge --attachable --internal=false traefik `
2. Edit `traefik2/docker-compose.yml`
- Change ACME email
- Change --providers.docker.network=traefik value if you created different network then `traefik`
@ismailyenigul
ismailyenigul / nextcloud-pgsql-redis-traefikv2-docker-compose.yml
Last active October 11, 2023 13:11
Docker-compose file for nextcloud with pgsql,redis and traefik deployment
# docker network create nextcloud
NOTES:
1. [email protected]
2. TRUSTED_PROXIES values based on your 'nexcloud network'
3. remove traefik.http.middlewares.nextcloud.headers.contentSecurityPolicy and
traefik.http.middlewares.nextcloud.headers.customFrameOptionsValue if you don't want to allow iframe your domain
3
# cat docker-compose.yml