Skip to content

Instantly share code, notes, and snippets.

View oguzcandemircan's full-sized avatar

Oğuzcan Demircan oguzcandemircan

View GitHub Profile

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@oguzcandemircan
oguzcandemircan / deploy.sh
Created August 9, 2021 20:03 — forked from stancl/deploy.sh
Deploy using GitHub actions and SSH to a VPS
#!/bin/sh
set -e
vendor/bin/phpunit
npm run prod
git add .
(git commit -m "Build frontend assets for deployment to production") || true
(git push) || true
@oguzcandemircan
oguzcandemircan / Ubuntu-Xampp-Kurulumu.md
Last active June 21, 2019 09:02
Ubuntuya xampp kurulumu için gerekli terminal kodları

Ubuntu Xampp Kurulum Komutları

Kurulum Komutları

wget https://downloadsapachefriends.global.ssl.fastly.net/7.3.6/xampp-linux-x64-7.3.6-2-installer.run
sudo chmod 755 xampp-linux-x64-7.3.6-2-installer.run
sudo ./xampp-linux-x64-7.3.6-2-installer.run
sudo chown -R $USER:$USER /opt/lampp/htdocs

start / stop

@oguzcandemircan
oguzcandemircan / jekyll-ubuntu.md
Created June 14, 2019 11:22 — forked from yancyn/jekyll-ubuntu.md
Setup Jekyll on Ubuntu 16.04

Ubuntu 16.04

$ sudo apt-get update
$ sudo apt-get install ruby ruby-dev make gcc
$ sudo gem install jekyll bundler

see source

Ubuntu 14.04

@oguzcandemircan
oguzcandemircan / bashpath.sh
Created March 12, 2019 15:21 — forked from darrenderidder/bashpath.sh
Get path of running script in bash
#!/bin/bash
# A simple test script to demonstrate how to find the
# "absolute path" at which a script is running. Used
# to avoid some of the pitfals of using 'pwd' or hard-
# coded paths when running scripts from cron or another
# directory.
#
# Try it out:
# run the script from the current directory, then
@oguzcandemircan
oguzcandemircan / docker_mint_xenial_install.sh
Last active March 11, 2019 07:14 — forked from mykubicle/docker_mint_xenial_install.sh
Get Docker CE for Linux Mint based on Ubuntu Xenial
#!/bin/bash
# Uninstall old version
sudo apt-get remove docker docker-engine docker.io
# Update apt package index
sudo apt-get update
# Install packages to allow apt to use a repo over HTTPS
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
# Add Docker offical GPG Key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
@oguzcandemircan
oguzcandemircan / README-Template.md
Created December 31, 2018 13:20 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@oguzcandemircan
oguzcandemircan / CronRunCommand.php
Created September 21, 2017 07:26 — forked from sisou/CronRunCommand.php
Cron job command for Laravel 4.2
<?php
# Cron job command for Laravel 4.2
# Inspired by Laravel 5's new upcoming scheduler (https://laravel-news.com/2014/11/laravel-5-scheduler)
#
# Author: Soren Schwert (GitHub: sisou)
#
# Requirements:
# =============
# PHP 5.4