Skip to content

Instantly share code, notes, and snippets.

View janzell's full-sized avatar

Janzell Jurilla janzell

View GitHub Profile
@janzell
janzell / facebook-webhook.php
Created March 2, 2020 09:11
Facebook Webhook - Verification
<?php
class Hooks {
/**
* Facebook App Secret Key
*/
protected $secretKey;
/**
* Webhook token which needed for Verification
@janzell
janzell / force-drop-table-bypass-foreign-key.sql
Last active August 15, 2021 10:19
Force Drop Mysql Table - Bypassing foreign key constraint
SET foreign_key_checks = 0;
drop table TABLE_NAME
SET foreign_key_checks = 1;
@janzell
janzell / ApiWhiteList.php
Last active January 16, 2017 05:27
Laravel ApiWhiteList Middleware
<?php namespace App\Http\Middleware;
use Closure;
use Config;
use App;
class ApiWhiteList
{
//List of API path you want to restrict the use based on their IP Addresses
protected $apiPath = [
@janzell
janzell / Instagram.php
Last active March 2, 2020 09:09
Instagram Video Source Grabber
<?php
/**
* Instagram Class
*/
class Instagram
{
/**
* Clean Input
*
@janzell
janzell / Facebook.php
Last active August 29, 2015 14:09
PHP - Facebook Video Getter
<?php
class Facebook{
/**
* Video Codec
* @var string
*/
public $codec = 'h264';