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
set -Ux LSCOLORS gxfxcxdxbxegedabagacad
# gst
function gst --description 'Do a git status'
command git status
end
# dev
function dev
cd /Users/pehlivan.arif/development
http://patorjk.com/software/taag/#p=display&f=Ogre&t=MrPehlivan
@mrpehlivan
mrpehlivan / application.properties
Last active April 21, 2018 10:57
application.properties
server.port= 8090
spring.datasource.url = jdbc:postgresql://localhost:5432/postgres
spring.datasource.username = postgres
spring.datasource.password = postgres
spring.datasource.driver-class-name = org.postgresql.Driver
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults = false
spring.jpa.generate-ddl=true
@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
@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 / 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-mongo.yml
Last active May 14, 2018 20:56
application-mongo.yml
#mongodb
spring:
data:
mongodb:
host: localhost
port: 27017
database: databaseName
@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 / 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 / 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