Skip to content

Instantly share code, notes, and snippets.

View erdemkeren's full-sized avatar

Hilmi Erdem KEREN erdemkeren

View GitHub Profile
@erdemkeren
erdemkeren / .aliases.bash
Last active October 24, 2019 17:16
Vagrant/Homestead - Git - Dotenv - Laravel aliases file.
# Edit this using atom.
alias edit-aliases="atom ~/.aliases.bash"
# Laravel & CodeCeption, PhpSpec.
alias art="php artisan"
alias spec="./vendor/bin/phpspec"
alias cept="./vendor/bin/codecept"
# PHPCS
alias phpcs="./vendor/bin/phpcs"
<scheme name="Pure" version="142" parent_scheme="Default">
<metaInfo>
<property name="created">2017-03-04T23:51:55</property>
<property name="ide">PhpStorm</property>
<property name="ideVersion">2016.3.2.0.0</property>
<property name="modified">2017-03-04T23:56:11</property>
<property name="originalScheme">Snappy</property>
</metaInfo>
<option name="LINE_SPACING" value="1.4" />
<option name="EDITOR_FONT_SIZE" value="13" />
<code_scheme name="PSR Erdem">
<PHPCodeStyleSettings>
<option name="ALIGN_KEY_VALUE_PAIRS" value="true" />
<option name="ALIGN_PHPDOC_PARAM_NAMES" value="true" />
<option name="ALIGN_PHPDOC_COMMENTS" value="true" />
<option name="COMMA_AFTER_LAST_ARRAY_ELEMENT" value="true" />
<option name="PHPDOC_BLANK_LINES_AROUND_PARAMETERS" value="true" />
<option name="PHPDOC_WRAP_LONG_LINES" value="true" />
<option name="LOWER_CASE_BOOLEAN_CONST" value="true" />
<option name="LOWER_CASE_NULL_CONST" value="true" />
@erdemkeren
erdemkeren / .php_cs
Created January 11, 2018 10:51
Laravel + Fab Cs Fixer Rules sync with StyleCI.
<?php
$header = <<<'EOF'
This file is part of GSS GoHub Software.
(c) Gözen Systems, 2018.
EOF;
$config = PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
@erdemkeren
erdemkeren / alfred_turen_tr_en.md
Last active December 10, 2018 10:14
Alfred Custom Search - Tureng - [TR-EN][EN-TR]

Just visit the following link using your browser from an alfred installed computer.

alfred://customsearch/Tureng/tureng/utf8/nospace/http%3A%2F%2Ftureng.com%2Ftr%2Fturkce-ingilizce%2F%7Bquery%7D
@erdemkeren
erdemkeren / output.txt
Created March 2, 2020 10:16
homestead output
homestead: Are you sure you want to destroy the 'homestead' VM? [y/N] ==> homestead: Forcing shutdown of VM...
==> homestead: Destroying VM and associated drives...
==> homestead: [vagrant-hostsupdater] Removing hosts
Bringing machine 'homestead' up with 'virtualbox' provider...
==> homestead: Importing base box 'laravel/homestead'...
Progress: 10%
Progress: 60%
Progress: 90%
==> homestead: Matching MAC address for NAT networking...

1- Provide your queue configuration using config.

$config = new Config([
'SampleQueue' => [
      'type' => 'Database',
      'class' => 'PostgresQueue',
      'attributes' => [],
      'actions' => [
          'consume' => 'SkipLockBasedConsumeAction',
@erdemkeren
erdemkeren / queue-usage.md
Last active March 18, 2020 11:05
Using queue

Creating a Job for the Queue Worker:

<?php

use Common\Queue\Interfaces\JobInterface;

class ExampleJob implements JobInterface
{
@erdemkeren
erdemkeren / Preliminary Information For the Presentation on Friday.md
Last active March 27, 2020 12:16
Preliminary Information For the Presentation on Friday

Context

We're planning to show a presentation about the coding standards on Friday at 13:00.

This document includes preliminary information about the coding style additions we're going to propose.

Current Standards

We're following PSR-2 at the moment.