Skip to content

Instantly share code, notes, and snippets.

💭
daydreaming

Lemi Orhan Ergin lemiorhan

💭
daydreaming
Block or report user

Report or block lemiorhan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lemiorhan
lemiorhan / .bash_aliases
Created May 17, 2019 — forked from vratiu/.bash_aliases
Git shell coloring
View .bash_aliases
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
View video_merge_and_minimize.sh
#!/bin/bash
VIDEO_PATH=$1
cd $VIDEO_PATH
echo "Video edit script is ready to run at $VIDEO_PATH"
for folder in `find . -mindepth 1 -type d`
do
cd $folder
if [[ -z $(ls -al | grep min.mp4) ]]; then
@lemiorhan
lemiorhan / ReleaseViaJGitFlow.md
Last active Oct 19, 2019
How to make a release with Git and Maven via JGitFlow
View ReleaseViaJGitFlow.md

How to make a release with Git and Maven via JGitFlow

Imagine that you are versioning your sourcecode in git and building your code via maven. You need to make releases before deploying to production regularly. What should be the strategy we need to follow for releasing?

I've used maven-release-plugin for years to make releases. It worked perfectly with maven and svn, but we started to face problems when we migrated our code to git and to make releases on git.

After checking the literature, we decided to use JGit-Flow which is a maven plugin based on and is a replacement for the maven-release-plugin enabling support for git-flow style releases via maven.

I do not want to explain the details much because there are many great posts explaining all.

@lemiorhan
lemiorhan / gist:eb0a636013c4cb9dd9db
Last active Aug 29, 2015
SOA Manifesto in Turkish
We couldn’t find that file to show.
@lemiorhan
lemiorhan / post-receive
Last active Feb 11, 2020
Post-receive hook to deploy the code being pushed to production branch to a specific folder
View post-receive
#!/bin/bash
target_branch="production"
working_tree="PATH_TO_DEPLOY"
while read oldrev newrev refname
do
branch=$(git rev-parse --symbolic --abbrev-ref $refname)
if [ -n "$branch" ] && [ "$target_branch" == "$branch" ]; then
You can’t perform that action at this time.