This file contains 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\Http\Middleware; | |
use Closure; | |
use Illuminate\Http\Request; | |
use Symfony\Component\HttpFoundation\Response; | |
use Illuminate\Support\Facades\Cache; | |
class CacheResponse |
This file contains 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 loadLatestContent() { | |
// Define the target element where the content will be rendered | |
const $targetElement = $('.desktopSectionListMedia.listItemLastBB0'); | |
// Fetch the latest content from the server | |
$.ajax({ | |
url: '/ajax/latest', | |
method: 'GET', | |
dataType: 'json', // Expecting a JSON response | |
success: function(data) { |
This file contains 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 | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/openresty.gpg] http://openresty.org/package/ubuntu $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/openresty.list > /dev/null | |
sudo apt-get update | |
sudo apt-get -y install openresty | |
rm /usr/local/openresty/nginx/modules/ngx_http_geoip2_module.so | |
openresty=$(openresty -v 2>&1|cut -d "/" -f2) | |
# Download the OpenResty source code | |
wget https://openresty.org/download/openresty-$openresty.tar.gz |
This file contains 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
use Illuminate\Support\Facades\Mail; | |
use Swift_SmtpTransport; | |
function sendEmailWithCustomSMTP($to, $emailClass, $smtpConfig) | |
{ | |
// Create the transport | |
$transport = new Swift_SmtpTransport($smtpConfig['host'], $smtpConfig['port']); | |
$transport->setUsername($smtpConfig['username']); | |
$transport->setPassword($smtpConfig['password']); | |
$transport->setEncryption($smtpConfig['encryption']); |
This file contains 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
({ | |
milliseconds: new Date(), | |
interval: 10, | |
checking: true, | |
ik: null, | |
at: null, | |
amaposition: 0, | |
globals: null, | |
account: null, | |
request: { |
This file contains 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 | |
// All Validation Blocks are For One Method | |
if ($request->quick) { | |
$request->validate([ | |
'quick' => 'required', | |
'pickup_id' => 'required', | |
]); | |
... |
This file contains 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
a45.in | |
cachedot.net | |
manifestgenerator.com | |
mvrht.com | |
nonspam.eu | |
nonspammer.de | |
spamstack.net | |
anon.leemail.me | |
anonymize.com | |
1usemail.com |
This file contains 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; | |
use Illuminate\Http\Request; | |
/** | |
* Depth 1 SearchBuilder for DataTable | |
* Supports Query Builder and Eloquent ORM | |
* To prevent unauthorized access to the database, the code uses two security measures. |
This file contains 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
// ==UserScript== | |
// @name Fast.com (spped chart in graph) | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description spped chart in graph | |
// @author Saiful Islam | |
// @match https://fast.com/ | |
// @icon https://www.google.com/s2/favicons?domain=fast.com | |
// @require http://code.jquery.com/jquery-3.4.1.min.js | |
// @grant none |
This file contains 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
var red_list = [{ | |
"id": 1, | |
"text": "Mohammadpur(Dhaka)", | |
"text_BN": "\u09ae\u09cb\u09b9\u09be\u09ae\u09cd\u09ae\u09a6\u09aa\u09c1\u09b0", | |
"ZONE_id": 1, | |
"IS_COD_AVAILABLE": 1, | |
"IS_HOME_DELIVERY": 1, | |
"IS_PICKUP_AVAILABLE": 1, | |
"IS_LOCKED_DOWN": 0, | |
"ZONE_text": "Inside Dhaka" |
NewerOlder