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 HttpException extends \Exception | |
{ | |
/** | |
* List of additional headers | |
* | |
* @var array | |
*/ | |
private $headers = array(); |
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
/** | |
* A java 1.6 ccompatible class that provides RSA encryption using a | |
* base64 encoded public key string. | |
* | |
* To encrypt, do | |
* Crypto.encrypt("Text to encrypt"); // returns base64 encoded string for encrypted data | |
* | |
* @author Ibrahim Lawal ([email protected]) | |
* @version 2016/02/29 | |
*/ |
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
// | |
// HibeeRSA.h | |
// | |
// Created by Ibrahim Lawal ([email protected]) on Feb/27/2016. | |
// | |
#import <Foundation/Foundation.h> | |
@interface HibeeRSA : NSObject | |
+ (nullable NSString *)encryptRSA:(nonnull NSString *)plainTextString; |
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
package co.paystack.android.api.utils; | |
/** | |
* Created by ibrahimlawal on Mar/14/2016. | |
* | |
* @author fkrauthan | |
* @see http://blog.dev-area.net/2015/08/13/android-4-1-enable-tls-1-1-and-tls-1-2/ | |
* @since 1.2.0 | |
* | |
* Modified to work with okHttp3.1.2 |
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
0815.ru | |
0wnd.net | |
0wnd.org | |
10minutemail.co.za | |
10minutemail.com | |
123-m.com | |
126.com | |
139.com | |
163.com | |
1fsdfdsfsdf.tk |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Custom Laravel 404.blade.php that includes default error details</title> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" > | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style type="text/css"> | |
body { | |
background-color: #eee; | |
} |
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 | |
if ((strtoupper($_SERVER['REQUEST_METHOD']) != 'POST' ) || !array_key_exists('HTTP_X_PAYSTACK_SIGNATURE', $_SERVER) ) { | |
// only a post with paystack signature header gets our attention | |
exit(); | |
} | |
// Retrieve the request's body | |
$input = @file_get_contents("php://input"); | |
define('PAYSTACK_SECRET_KEY','sk_xxxx_xxxxxx'); |
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 | |
// plain text | |
$headers = "MIME-Version: 1.0\r\n"; | |
$headers.= "From: =?utf-8?Q?" . quoted_printable_encode("Remaayo Int'l Guest House Limited") . "?= <[email protected]>\r\n"; | |
$headers.= "Content-Type: text/plain;charset=utf-8\r\n"; | |
$headers.= "X-Mailer: PHP/" . phpversion(); | |
// html | |
$headers = "MIME-Version: 1.0\r\n"; |
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 | |
// Get this from https://github.com/yabacon/paystack-class | |
require 'Paystack.php'; | |
$paystack = new Paystack('sk_test_xxx'); | |
// the code below throws an exception if there was a problem completing the request, | |
// else returns an object created from the json response | |
$trx = $paystack->transaction->initialize( |
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 | |
// Get this from https://github.com/yabacon/paystack-class | |
require 'Paystack.php'; | |
$paystack = new Paystack('sk_test_xxx'); | |
// ... some code previously to obtain $token and $code for this subscription | |
// (both can be obtained by capturing `subscription.create` event) | |
// the code below throws an exception if there was a problem completing the request, | |
// else returns an object created from the json response |
OlderNewer