A blog series for PHP developers working on larger-than-average Laravel projects
Written for projects with a development lifespan of six to twelve months, with a team of three to six developers working on them simultaneously.
<?php | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Database\Events\QueryExecuted; | |
DB::listen(function (QueryExecuted $query) use (&$count) { | |
$count++; | |
$bindings = collect($query->bindings) | |
->map(function ($param) { | |
if (is_numeric($param)) { |
// If the script does not work, you may need to allow same site scripting https://stackoverflow.com/a/50902950 | |
Linkedin = { | |
config: { | |
scrollDelay: 3000, | |
actionDelay: 5000, | |
nextPageDelay: 5000, | |
// set to -1 for no limit | |
maxRequests: -1, | |
totalRequestsSent: 0, |
const https = require('https'); | |
/* | |
* Complete the function below. | |
* Use console.log to print the result, you should not return from the function. | |
*/ | |
function getMovieTitles(substr) { | |
if (substr === '') | |
return '' |
https://github.com/AhmedHelalAhmed/urlhub | |
https://github.com/AhmedHelalAhmed/academico | |
https://github.com/AhmedHelalAhmed/DaybydayCRM | |
https://github.com/AhmedHelalAhmed/laerx | |
https://github.com/AhmedHelalAhmed/larastreamers | |
https://github.com/AhmedHelalAhmed/freek.dev | |
https://github.com/AhmedHelalAhmed/crater | |
https://github.com/AhmedHelalAhmed/koel | |
https://github.com/AhmedHelalAhmed/akaunting | |
https://github.com/AhmedHelalAhmed/portal |
#!/bin/bash | |
file="result.txt" | |
while read -r line; do | |
#echo -e "$line\n" | |
iconv -fwindows-1256 -tutf8 "$line" > "$line"'_fixed' | |
done <$file |
function createUser(email, password) { | |
validateInput(email, password); | |
saveUser(email, password); | |
} | |
function isNotValid(email, password) { | |
return emailNotValid(email) || passwordNotValid(password); | |
} |
// ==UserScript== | |
// @name Unlike Facebook Pages | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Unlike all Facebook pages | |
// @author Ahmed Helal Ahmed | |
// @match https://duckduckgo.com/?q=new+script+unlike+pages+facebook&ia=web | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=duckduckgo.com | |
// @grant none | |
// ==/UserScript== |
namespace App\Http\Middleware; | |
use Illuminate\Support\Facades\Log; | |
class LogAfterRequest { | |
public function handle($request, \Closure $next) | |
{ | |
return $next($request); | |
} |