Skip to content

Instantly share code, notes, and snippets.

View enesusta's full-sized avatar
:octocat:
mvn test

Enes Usta enesusta

:octocat:
mvn test
View GitHub Profile
@enesusta
enesusta / docker-compose.yml
Last active April 23, 2020 12:54
easy-bookmarks
version: '3.1'
services:
easy-bookmarks:
container_name: easy-bookmarks
image: enesusta/easy-bookmarks:0.2
ports:
- '8000:80'
networks:
bookmarks-net:
@enesusta
enesusta / mvn.sh
Created May 3, 2020 19:19
mvn generate
#!/bin/bash
create() {
mvn archetype:generate \
-DgroupId=$1 \
-DartifactId=$2 \
-DpackageName=$3 \
-Dversion=1.0.0
}
@enesusta
enesusta / mvn.sh
Created May 3, 2020 19:19
mvn generate
#!/bin/bash
create() {
mvn archetype:generate \
-DgroupId=$1 \
-DartifactId=$2 \
-DpackageName=$3 \
-Dversion=1.0.0
}
@enesusta
enesusta / oracle-docker-compose.yml
Created May 11, 2020 14:38
Docker Oracle 12c Container
version: "3"
services:
oracle_db:
container_name: oracle_db
image: store/oracle/database-enterprise:12.2.0.1
ports:
- 1521:1521
- 5500:5500
environment:
@enesusta
enesusta / docker-compose.yml
Created May 31, 2020 13:32
Redis compose file
version: '3.1'
services:
redis:
container_name: redis_container
image: redis
restart: always
command: redis-server --requirepass secret
ports:
- '6379:6379'
volumes:
@enesusta
enesusta / redis.sh
Last active June 6, 2020 13:30
Redis script
#!/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
package com.github.enesusta;
public class NativeLogger {
public native void log(final String log);
}
/* 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
/*
@enesusta
enesusta / nativelogger.c
Created June 9, 2020 15:20
medium-jvm-3
#include "com_github_enesusta_NativeLogger.h"
JNIEXPORT void JNICALL Java_com_github_enesusta_NativeLogger_log(JNIEnv *env, jobject obj, jstring str) {
}
@enesusta
enesusta / logsqlite.h
Created June 9, 2020 15:24
medium-jvm-4
#ifndef logsqlite
#define logsqlite
void insert(char *str);
#endif