Skip to content

Instantly share code, notes, and snippets.

View KostasKostogloy's full-sized avatar
🏠
Working from home

Kostas Kostoglou KostasKostogloy

🏠
Working from home
  • Thessaloniki, Greece
View GitHub Profile
@KostasKostogloy
KostasKostogloy / .php-cs-fixer.php
Created April 11, 2022 13:57 — 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',
@KostasKostogloy
KostasKostogloy / forge.sh
Created September 24, 2021 12:57 — forked from pLavrenov/forge.sh
Laravel Forge Setup Script (July 2020) - NGINX + MySQL
# Replace!
# [!server!] (the forge server instance)
# [!sudo_password!] (random password for sudo)
# [!db_password!] (random password for database user)
# [!user.name!] (git user name)
# [!user.email!] (git user email)
# [!server_ip!] (git user email)
#
# REQUIRES:
@KostasKostogloy
KostasKostogloy / deploy.sh
Created January 12, 2021 17:22 — forked from BenSampo/deploy.sh
Laravel deploy script
# Change to the project directory
cd /home/forge/domain.com
# Turn on maintenance mode
php artisan down || true
# Pull the latest changes from the git repository
# git reset --hard
# git clean -df
git pull origin master
@KostasKostogloy
KostasKostogloy / Foo.php
Created October 21, 2017 20:45 — forked from h-collector/Foo.php
Standalone Laravel Queue + Redis example
<?php
namespace Jobs;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Redis\Database as Redis;
class Foo extends Job
{
use InteractsWithQueue;
@KostasKostogloy
KostasKostogloy / Export-Chocolatey.ps1
Created December 13, 2016 18:05 — forked from alimbada/Export-Chocolatey.ps1
Export installed Chocolatey packages as chocolatey script
choco list -lo -r -y | % { $_.Split('|') | select -First 1 } | % { "choco install " + $_ + " -y" }