Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
mvn test

Enes Usta enesusta

:octocat:
mvn test
View GitHub Profile
@enesusta
enesusta / Dockerfile
Created Apr 18, 2021
jdk11 dockerfile
View Dockerfile
FROM adoptopenjdk/openjdk11-openj9:x86_64-alpine-jdk11u-nightly-slim as build
ENV MAVEN_VERSION 3.5.4
ENV MAVEN_HOME /usr/lib/mvn
ENV PATH $MAVEN_HOME/bin:$PATH
COPY ./ ./
RUN apk add wget
@enesusta
enesusta / note.md
Created Dec 28, 2020
how to tag - docker custom registry
View note.md

registry'e login oluyorsun.

docker login registry.trendyol.com

herhangi bir image'i cekiyorsun hub.docker'dan

@enesusta
enesusta / install-rabbitmq-on-k8s.md
Last active Nov 19, 2020
Install RabbitMQ on k8s guide
View install-rabbitmq-on-k8s.md

Deploy RabbitMQ on Kubernetes

Helm, the Kubernetes application package manager, can streamline the installation process and deploy resources throughout the cluster very quickly. To successfully deploy RabbitMQ, we will have to install the Helm package manager.

Install Helm

curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
View rollup-plugins-install.sh
npm install @rollup/plugin-node-resolve --save-dev
npm install @rollup/plugin-commonjs --save-dev
npm install @rollup/plugin-babel --save-dev
npm install eslint@7.4.0 --save-dev
npm i -D babel-eslint@10.1.0
yarn add --dev babel-jest@26.1.0
npm install --save-dev @babel/core
npm install --save-dev @babel/preset-env
View logsqlite.h
#ifndef logsqlite
#define logsqlite
void insert(char *str);
#endif
View nativelogger.c
#include "com_github_enesusta_NativeLogger.h"
JNIEXPORT void JNICALL Java_com_github_enesusta_NativeLogger_log(JNIEnv *env, jobject obj, jstring str) {
}
View com_github_enesusta_NativeLogger.h
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_github_enesusta_NativeLogger */
#ifndef _Included_com_github_enesusta_NativeLogger
#define _Included_com_github_enesusta_NativeLogger
#ifdef __cplusplus
extern "C" {
#endif
/*
View NativeLogger.java
package com.github.enesusta;
public class NativeLogger {
public native void log(final String log);
}
@enesusta
enesusta / redis.sh
Last active Jun 6, 2020
Redis script
View redis.sh
#!/bin/bash
wget http://download.redis.io/releases/redis-6.0.4.tar.gz
tar xzf redis-6.0.4.tar.gz
cd redis-6.0.4/src
sudo make install
View docker-compose.yml
version: '3.1'
services:
redis:
container_name: redis_container
image: redis
restart: always
command: redis-server --requirepass secret
ports:
- '6379:6379'
volumes: