Skip to content

Instantly share code, notes, and snippets.

View agengdp's full-sized avatar
🌀
Rasengan

Ageng D. Prastyawan agengdp

🌀
Rasengan
  • Rexcarnation
  • Indonesia
View GitHub Profile
<?php
namespace App\Listeners;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use App\Events\InvoiceApprovalPosted;
use Carbon\Carbon;
use App\Models\Matdoc;
use Illuminate\Support\Facades\DB;
@agengdp
agengdp / gist:8495ef7f8605ec20467bbe4ffff2cf46
Created February 11, 2018 09:42
Kirim EMail Wordpress Caldera Form
<?php
/**
* Plugin Name: ADP Kirim email
* Description: Caldera Forms kirim email connector
* Version: 1.0.0
* Author: agengdp
*/
// Kirim Email creds
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteBase /
RewriteRule ^music/(.+)/(.+).html$ view.php?id=$1&permalink=$2
RewriteRule ^download/(.+)/(.+).html$ view.php?id=$1&permalink=$2
RewriteRule ^video/(.+)/(.+).html$ download.php?id=$1&ln=$2
RewriteRule ^download/(.+).mp3$ dl.php?id=$1