Skip to content

Instantly share code, notes, and snippets.

View veysiertekin's full-sized avatar

Veysi Ertekin veysiertekin

View GitHub Profile
@veysiertekin
veysiertekin / Dockerfile
Created February 7, 2023 20:25
cdk cli dockerfile
ARG JDK_IMAGE="amazoncorretto:17.0.6"
ARG AWS_CDK_VERSION=2.63.2
ARG SBT_VERSION=1.8.2
ARG NODE_VERSION=16
FROM $JDK_IMAGE
ARG AWS_CDK_VERSION
ARG SBT_VERSION
ARG NODE_VERSION
@veysiertekin
veysiertekin / .wslconfig
Created November 25, 2022 10:58
WSL2 WSL Windows Subsystem Linux
[wsl2]
memory=5GB
swap=30GB
// Add this script into `Tests` section in the request
pm.collectionVariables.set("my_great_variable", pm.response.json().inner_field_name);
// Use in the other requests as {{my_great_variable}}
ARG GRAALVM_VERSION="ol8-java17-22.2.0"
FROM ghcr.io/graalvm/graalvm-ce:$GRAALVM_VERSION
ARG TARGETARCH
ARG UPX_VERSION="3.96"
ARG UPX_FILE="upx-$UPX_VERSION-${TARGETARCH}_linux"
ARG UPX_PKG="https://github.com/upx/upx/releases/download/v$UPX_VERSION/${UPX_FILE}.tar.xz"
RUN microdnf --enablerepo ol8_codeready_builder install xz \
&& microdnf clean all \
name: 'Commit Message Checker'
on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
jobs:
check-commit-message:
@veysiertekin
veysiertekin / 000-init.md
Last active May 23, 2021 23:28
GCP google gloud gcloud

Installation

Install with Homebrew

brew install --cask google-cloud-sdk

Set up terminal support

Gitlab Ansible integration ( sample git checkout deployment on a machine )

Define Ansible base template & deployment playbook

1- Create a common repo for example dataops

2- Create toolset/deploy_repo.yml file within that repository with following contents:

.default-ansible-job:
agent1.channels = raw-channel
agent1.sinks = raw-sink1 raw-sink2
agent1.sinkgroups = g1
agent1.channels.raw-channel.type = org.apache.flume.channel.kafka.KafkaChannel
agent1.channels.raw-channel.brokerList = localhost:9092
agent1.channels.raw-channel.kafka.topic = <topic>
agent1.channels.raw-channel.kafka.consumer.group.id = <group id>
agent1.channels.raw-channel.kafka.consumer.fetch.min.bytes = 1000000
agent1.channels.raw-channel.kafka.consumer.fetch.max.wait.ms = 1000
{
"open_files_in_new_window": false,
"draw_white_space": "all",
"font_size": 17
}

Reverse Proxy Setup

  • Install nginx
yum install nginx -y
  • Setup the reverse proxy