Skip to content

Instantly share code, notes, and snippets.

View deepydee's full-sized avatar
🧐
I may be slow to respond.

Vitalii Semenov deepydee

🧐
I may be slow to respond.
  • Kazakhstan, Karaganda
  • 13:35 (UTC +05:00)
View GitHub Profile
@deepydee
deepydee / .php-cs-fixer.php
Created December 27, 2023 04:21 — forked from laravel-shift/.php-cs-fixer.php
PHP CS Fixer - Laravel Coding Style Ruleset
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'default' => 'single_space',
@deepydee
deepydee / commit-msg
Created March 10, 2023 06:25 — forked from gorbatova/commit-msg
Add timestamp and branch name to GIT commit message
# Step 1: Go to .git/hooks/ directory
# Step 2: Rename "commit-msg.sample" to "commit-msg" (CLI: mv commit-msg.sample commit-msg)
# Step 3: Replace the existing code in a "commit-msg" file with the following code
NAME=$(git branch | grep '*' | sed 's/* //')
TIMESTAMP=$(date +"%D %T")
DESCRIPTION=$(git config branch."$NAME".description)
echo "$TIMESTAMP — $NAME"': '$(cat "$1") > "$1"
if [ -n "$DESCRIPTION" ]
then
echo "" >> "$1"