Skip to content

Instantly share code, notes, and snippets.

View Konafets's full-sized avatar

Stefano Kowalke Konafets

View GitHub Profile
<php phpinfo();
@Konafets
Konafets / 4a0572aa-727e-49ff-a1ab-93aeef0ad54b.php
Created August 18, 2023 09:53
Ein besserer Platz für die Validierungs-Regeln in Laravel
<php phpinfo();
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Stefano Kowalke",
"label": "Developer",
"image": "https://avatars0.githubusercontent.com/u/363363?s=460&u=38f220a2c9c658141804f881c334c594eb1642ac&v=4",
"email": "info@arroba-it.de",
"phone": "",
"url": "https://arroba-it.de",
"summary": "I am freelance PHP developer with over 15 years experience. I started my carreer with TYPO3 and extension developing but shifted my focus towards Laravel and Statamic over the last 8 years. I specialized in refactoring legacy PHP codebases and from time to time I implement a webshop in Shopify. Certified experience in the application of the GDPR completes my profile.",
' ---------------------------------------------------------------------------------
' Importdefinition für DKB-Umsatzdateien
' Importeinstellungen:
' Quelle : Textdatei (*)
' Trennzeichen für Felder : Semikolon
' Trennzeichen für Datensätze: LF
' Zeichensatz für : UTF8
' Text in Anführungszeichen : "
' ---------------------------------------------------------------------------------
@Konafets
Konafets / mo-connect-php-middleware.php
Created June 20, 2021 13:57
Überarbeitete Monkey Office Connect PHP Middleware
<?php
/**
* Basisklasse für alle API-Handler
* Version: 18.1.0
* API-Schema: 91
* erstellt: 28.05.21
*/
/**
@Konafets
Konafets / prepare-commit-msg.sh
Created August 21, 2020 16:56
This GIT hook populates the commit message with a prefix like [TASK] and suffix which contains the ticket number. It takes this information from the branch name. A branch name task/1234 will create a message: [TASK] (1234))
#!/bin/bash
COMMIT_MSG_FILE=$1
COMMIT_SOURCE=$2
SHA1=$3
# Only do something when we ARE NOT amending a commit!
if [ ! ${SHA1} ]; then
# We are only interesed in feature branches like feature/foo
@Konafets
Konafets / .gitlab-ci.yml
Last active October 5, 2019 19:08
Sylius GitLab CI
stages:
- test
variables:
MYSQL_DATABASE: sylius_test_cached
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: root
# This is normally provided by the .env file. But since we have to use "mysql" as host name, its defined
# here. We not using any .env file!
# The pattern is: mysql://user:password@host/database
@Konafets
Konafets / README.md
Created September 26, 2019 15:10 — forked from tomasnorre/README.md

What does it do?

This littel script fetches all packages, listed on packagist with type typo3-cms-extension, and iterates over them and collect download data for every single packages.

It will echo it as csv, so it can easily be parsed into a .csv file for better sorting etc.

How to generate csv file

$ php fetchExtensionDownloadDataFromPackagist.php &gt; downloadData.csv
@Konafets
Konafets / DataTable.vue
Last active July 23, 2019 15:17
Watching child component computed properties
<template>
<table-component
:data="[
{ firstName: 'John', birthday: '04/10/1940'},
{ firstName: 'Paul', birthday: '18/06/1942'},
{ firstName: 'George', birthday: '25/02/1943'},
{ firstName: 'Ringo', birthday: '07/07/1940'},
]"
sort-by="firstName"
sort-order="asc"
@Konafets
Konafets / BlogPost.php
Last active February 9, 2019 19:03
Validate inside an action.
<?php namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class BlogPost extends Model
{
public static $createRules = [
'title' => 'required|unique:posts|max:255',
'body' => 'required',
];