Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
const ulke = { | |
adalet: () => undefined, | |
ekonomi: () => undefined, | |
insanHaklari: () => undefined, | |
basinOzgurlugu: () => undefined, | |
kadinCinayetleri: () => Number .MAX_SAFE_INTEGER, | |
sanat: () => undefined, bilim: () => undefined, | |
komsularlaSorunSayisi: () => Number.MAX_SAFE_INTEGER, | |
dolardanEndiselenenVarsa: () => "Birincisi sunu soriyim size. Dolarla mi maas altyorsunuz. Dolar borcunuz mu var? Dolarla bir isiniz mi var?" | |
cinsiyetAyrimi: () => true, |
<?php | |
$dates = ['2023-03', '2023-04', '2023-05']; | |
$binds = implode(',', array_fill(0, count($dates), '?')); | |
$users = Illuminate\Support\Facades\DB::select( | |
"SELECT * FROM users WHERE DATE_FORMAT(created_date, '%Y-%m') IN ({$binds})", | |
$dates | |
); |
<?php | |
// http://forums.laravel.io/viewtopic.php?pid=45912#p45912 | |
First of all, thank you for asking this question, looking into it made me understand things a lot better. As it turns out, you can also use parameters for prefixes in route groups. Using a filter, you can then obtain the value of all parameters (so including the prefix of the route group). What you'll want to do is create a filter (best put in filters.php): | |
[code] | |
Route::filter('select_lang', function($route) | |
{ | |
// do check that the lang parameter is valid! | |
App:setLocale($route->getParameter('lang')); | |
}); | |
[/code] |
<?php | |
// app/start/global.php | |
/* | |
|-------------------------------------------------------------------------- | |
| Application Error Logger | |
|-------------------------------------------------------------------------- | |
| | |
| Here we will configure the error logger setup for the application which |
A list of amazingly awesome PHP libraries that you should be using:
{"lastUpload":"2022-01-22T18:11:17.053Z","extensionVersion":"v3.4.3"} |
sudo nano /etc/network/interfaces | |
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
# The loopback network interface | |
auto lo eth0 | |
iface lo inet loopback | |
# The primary network interface |
#!/bin/bash | |
# This script resizes all the images it finds in a folder (and its subfolders) and resizes them | |
# The resized image is placed in the /resized folder which will reside in the same directory as the image | |
# | |
# chmod +x batch_resize.sh | |
# Usage: > ./batch_resize.sh | |
# or run: | |
# sips -Z 600 *.jpg | |
initial_folder="/your/images/folder" # You can use "." to target the folder in which you are running the script for example |
A list of amazingly awesome PHP libraries, resources and shiny things.