Skip to content

Instantly share code, notes, and snippets.

View aldhinya's full-sized avatar
😂
I may be slow to respond.

Fadhilatur Rochman aldhinya

😂
I may be slow to respond.
View GitHub Profile
<?php
namespace App\Jobs;
use App\Mail\NotifikasiMail;
use App\Services\WhatsAppService;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
@aldhinya
aldhinya / .env
Last active October 16, 2025 04:37
WAGW_TOKEN="ini_token"
{
"success": true,
"message": "Success get Shopee sticker list.",
"data": [
{
"pack": "sticker_id_choki",
"list": [
{
"sid": "0001",
"image": "https://deo.shopeemobile.com/shopee/shopee-sticker-live-id/packs/sticker_id_choki/0001@1x.png"
#!/bin/sh
# List of available PHP versions
php_versions="lsphp72 lsphp73 lsphp74 lsphp80 lsphp81 lsphp82 lsphp83"
# Display menu of PHP versions
echo "Select the PHP version you want to set as default:"
i=0
for php_version in $php_versions; do
echo "$i. $php_version"
/tool fetch url="URL_API&text=[UP] PING ke 122.56" keep-result=no
<script>
$(() => {
const pivotGridChart = $('#pivotgrid-chart').dxChart({
commonSeriesSettings: {
type: 'bar',
},
tooltip: {
enabled: true,
customizeTooltip(args) {
return {
use Imagick;
$pdf = PDF::loadView('mitra.plotkunjungan.pdf', compact('surat'))->setPaper('a4', 'potrait');;
$path = public_path('docs/');
$fileName = time() . '.' . 'pdf';
$path_pdf = $path . $fileName;
$pdf->save($path_pdf);
$path_img = str_replace('pdf', 'jpg', $path_pdf);
$imgExt = new Imagick();
$tanggal = $this->transformDate($i[2])->toDateString();
public function transformDate($value, $format = 'Y-m-d')
{
try {
return \Carbon\Carbon::instance(\PhpOffice\PhpSpreadsheet\Shared\Date::excelToDateTimeObject($value));
} catch (\ErrorException $e) {
return \Carbon\Carbon::createFromFormat($format, $value);
}
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Reminder Kuota</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
@media screen {
@font-face {
// Controller
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use App\Models\Buku;
use App\Models\Member;
use Illuminate\Http\Request;