Skip to content

Instantly share code, notes, and snippets.

View mrqaidi's full-sized avatar

Ayman Qaidi mrqaidi

  • Sharzee LLC
  • Cologne - Germnay
View GitHub Profile
@mrqaidi
mrqaidi / openload.js
Created August 2, 2017 13:34 — forked from Mello-Yello/openload.js
Openload: extract download URL using PhantomJS
// Usage: phantomjs openload.js <video_url>
var separator = ' | ';
var page = require('webpage').create(),
system = require('system'),
id, match;
if(system.args.length < 2) {
console.error('No URL provided');
phantom.exit(1);
@mrqaidi
mrqaidi / class.php
Created December 16, 2017 02:49 — forked from hlashbrooke/class.php
A complete, versatile options page class for any WordPress plugin
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
class WordPress_Plugin_Template_Settings {
private $dir;
private $file;
private $assets_dir;
private $assets_url;
private $settings_base;