This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Jobs\Debounce; | |
use Illuminate\Support\Facades\Redis; | |
use App\Jobs\Debounce\EnsureToRunLastJob; | |
use Illuminate\Support\Str; | |
class DebounceService | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Eloquent\Concerns; | |
use Illuminate\Database\Eloquent\Model; | |
trait HasRandomFields | |
{ | |
public static function bootHasRandomFields() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Services; | |
use DOMDocument; | |
use DOMElement; | |
use DOMXPath; | |
use Illuminate\Mail\Markdown; | |
use Illuminate\Support\HtmlString; | |
use League\HTMLToMarkdown\HtmlConverter; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BACKUP_DATABASES=(YOUR_DATABASE1 YOUR_DATABASE2 YOUR_DATABASE3) | |
BASE="/root/mysql_backups" | |
RECENT_BACKUPS=($BASE/*/) | |
NOW=`date +%Y-%m-%d-%H` | |
ONE_HOUR_AGO=`date -d "1 hour ago" +%Y-%m-%d-%H` | |
TWO_HOURS_AGO=`date -d "2 hours ago" +%Y-%m-%d-%H` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html:html> | |
<html:head> | |
<html:title>HTML6 Hakkında</html:title> | |
</html:head> | |
<html:body> | |
<html:a href="http://siteurl">Go to siteurl.com!</html:a> | |
</html:body> | |
</html:html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dateLocale($f, $zt = 'now'){ | |
$z = date($f, strtotime($zt)); | |
$donustur = array( | |
'Monday' => 'Pazartesi', | |
'Tuesday' => 'Salı', | |
'Wednesday' => 'Çarşamba', | |
'Thursday' => 'Perşembe', | |
'Friday' => 'Cuma', | |
'Saturday' => 'Cumartesi', |