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
| SELECT member_id | |
| FROM | |
| (SELECT * FROM member ORDER BY member_parent, member_id ASC) as a, | |
| (SELECT @pv := 2) initialisation | |
| WHERE find_in_set(member_parent, @pv) > 0 AND @pv := CONCAT(@pv, ',', member_id) |
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
| $(document).ready(function () { | |
| const data = new FormData(); | |
| data.append("image", image.files.length ? image.files[0] : ""); | |
| data.append('_token', document.querySelector('meta[name="csrf-token"]').getAttribute('content')); | |
| $.ajax({ | |
| type: "POST", | |
| url: HOST_MODULE, | |
| data, | |
| dataType: "json", |
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 | |
| defined('BASEPATH') OR exit('No direct script access allowed'); | |
| class Send extends CI_Controller { | |
| public function __construct() | |
| { | |
| parent::__construct(); | |
| // set library |
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
| mysqldump -u username_database -p 'password_database' your_database | bzip2 -c > ~/directory/filename-$(date +%Y-%m-%d-%H.%M.%S).sql.bz2 |
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\Rules; | |
| use Closure; | |
| use Illuminate\Contracts\Validation\ValidationRule; | |
| class CoordinateRule implements ValidationRule | |
| { | |
| /** |
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 | |
| IP_SERVER="192.168.1.1" | |
| TELEGRAM_BOT_TOKEN="123:abc" | |
| TELEGRAM_CHAT_ID="-100" | |
| TELEGRAM_TOPIC_ID="1419" | |
| DOWN_PEERS=$(/usr/sbin/asterisk -rx "sip show peers" | grep -E "UNREACHABLE|UNKNOWN") | |
| if [[ -n "$DOWN_PEERS" ]]; then |
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 App\Helpers\Formatter; | |
| use App\Models\XenditPaymentlink; | |
| use App\Models\XenditQrcode; | |
| use App\Models\XenditRetail; | |
| use App\Models\XenditVirtualaccount; | |
| use Illuminate\Support\Facades\Http; |
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 | |
| class CustomerController extends Controller | |
| { | |
| // | |
| public function index(Request $request) | |
| { | |
| $request->validate([ | |
| 'period' => 'required|string|date_format:Y-m', | |
| 'status' => 'nullable|numeric', |
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 | |
| class WebhookController extends Controller | |
| { | |
| /** | |
| * Paymentlink: https://developers.xendit.co/api-reference/#invoice-callback | |
| * Virtual Account: https://developers.xendit.co/api-reference/#virtual-account-callback | |
| * Retail: https://developers.xendit.co/api-reference/#fixed-payment-code-callback | |
| * QRCode: https://developers.xendit.co/api-reference/id/#callback-pembayaran-qr | |
| */ |
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\Console\Commands; | |
| use App\Models\ActivityLog; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Support\Collection; | |
| use Illuminate\Support\Facades\DB; | |
| class MigrateDataCommand extends Command |
OlderNewer