Skip to content

Instantly share code, notes, and snippets.

View mrpehlivan's full-sized avatar
:octocat:
Coding

Arif PEHLİVAN mrpehlivan

:octocat:
Coding
View GitHub Profile
@mrpehlivan
mrpehlivan / Dockerfile.react
Created January 17, 2021 13:23
Dockerfile.react
# Run app with specific docker version
FROM node:12-slim
# Add description
LABEL description="This is the base docker image for the Basic react application."
# Add maintainer information
LABEL maintainer = ["m.arifpehlivan@gmail.com"]
# Create app directory
@mrpehlivan
mrpehlivan / useful-links
Created December 16, 2019 10:05
Useful links
@mrpehlivan
mrpehlivan / vscode
Created September 17, 2019 12:58
vscode
vscode
@mrpehlivan
mrpehlivan / OSX Setup
Last active September 14, 2021 11:46
OSX Setup
1. Change host / computer / localhost names
sudo scutil --set ComputerName arifpehlivan
sudo scutil --set HostName arifpehlivan
sudo scutil --set LocalHostName arifpehlivan
2. Install Homebrew & Cask
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew tap caskroom/cask
@mrpehlivan
mrpehlivan / Computer Needs
Last active July 15, 2019 06:44
Computer Needs
Google Chrome
React Devtools
Intellij
Sublime
Source Tree
Slack
Postico
Spotify
FortiClient
Postman
@mrpehlivan
mrpehlivan / application-elasticsearch.yml
Created May 14, 2018 20:57
application-elasticsearch.yml
#elastic
spring:
data:
elasticsearch:
cluster-name: clusterName
properties:
http:
host: host
port: 9200
enable: true
@mrpehlivan
mrpehlivan / application-mongo.yml
Last active May 14, 2018 20:56
application-mongo.yml
#mongodb
spring:
data:
mongodb:
host: localhost
port: 27017
database: databaseName
@mrpehlivan
mrpehlivan / DatabaseConfiguration.java
Last active April 21, 2018 10:35
DatabaseConfiguration.java
package com.arif.crud.configuration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import javax.sql.DataSource;
@mrpehlivan
mrpehlivan / application.yml
Last active April 21, 2018 10:58
application.yml
server:
port: 8090
spring:
datasource:
url: jdbc:postgresql://localhost:5432/postgres
username: postgres
password: postgres
driver-class-name: org.postgresql.Driver
@mrpehlivan
mrpehlivan / postgresql-compose.yml
Created April 21, 2018 10:21
postgresql-compose.yml
version: '3'
services:
postgresql:
image: postgres:9.6-alpine
container_name: 'postgresql-db'
environment:
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432