Skip to content

Instantly share code, notes, and snippets.

View yedincisenol's full-sized avatar
🎯
Focusing

İbrahim Ş. Örencik yedincisenol

🎯
Focusing
View GitHub Profile
@yedincisenol
yedincisenol / BooleanMiddleware.php
Created August 12, 2019 16:59
Laravel 5.8+ boolean string to boolean middleware
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
class BooleanMiddleware
{
/**
@yedincisenol
yedincisenol / server.sh
Created May 9, 2019 15:35
For ubuntu, nginx, supervisor, docker install scripts
#!/usr/bin/env bash
command=$1
if [ "$command" = "" ]; then
echo "Please enter a module in: nginx,supervisor,docker"
read command -f
fi
if [ "$command" = "nginx" ]; then
echo "Nginx installing"
apt -y install nginx
fi