Skip to content

Instantly share code, notes, and snippets.

View Phainix's full-sized avatar

Adekogbe Faith Phainix

View GitHub Profile
@oseme-techguy
oseme-techguy / How-to-use-the-Coralpay-JAVA-PGP-library.md
Last active February 25, 2021 13:02
How to use the JAVA PGP library - These are the steps required to use the CoralPay JAVA PGP Library.

These are the steps required to use the CoralPay JAVA PGP Library.
The library's binaries can be downloaded from here: CoralPay JAVA PGP Library Link .

Build the Library:

To build the library, run .\gradlew.bat build --refresh-dependencies
This should build the library file into a .jar in the \build\libs directory.
Copy the library out of the directory to the target project that needs to use the libary
and follow the steps below to add the required dependecies to use with the library for that target project.

@kana
kana / tomodachi.php
Created August 17, 2017 12:28
Don't confuse PHP & reference with other languages' reference.
<?php
function test_copy_on_write()
{
print "test_copy_on_write\n";
$a = 100;
xdebug_debug_zval('a');
//==> a: (refcount=1, is_ref=0)=100
@ygotthilf
ygotthilf / jwtRS256.sh
Last active February 10, 2026 20:17
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
@funkatron
funkatron / slim_catchall_route.php
Created December 8, 2011 14:48
Making a "catchall" route in Slim
<?php
/**
* by setting the regex condition for the :method param to '.+', it matches
* everything, including "/" chars. this lets us match any URL of the format.
*
* /api/foo outputs "foo"
* /api/foo/bar/baz outputs "foo/bar/baz"
*/
$app->get('/api/:method', function($method) use ($app) {
echo $method;
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//