Skip to content

Instantly share code, notes, and snippets.

View jankal's full-sized avatar
🌍
Discovering all the wonders.

Alexander Jank jankal

🌍
Discovering all the wonders.
View GitHub Profile
@jankal
jankal / openpgp.txt
Created March 17, 2016 16:16
Verknüpfte OpenKeychain-Identität
Dieses Gist bestätigt die Verknüpfte-Identität innerhalb meines OpenPGP-Schlüssels und verknüpft es mit diesem GitHub-Benutzerkonto.
Token des Nachweises:
[Verifying my OpenPGP key: openpgp4fpr:6aeb406d0e3dc6e8c2e466d92e12039a49e3d70b]

Keybase proof

I hereby claim:

  • I am jankal on github.
  • I am jankal (https://keybase.io/jankal) on keybase.
  • I have a public key ASB13WTOIo70Q4t36xcE0V-fvMl7kT5OO27LpS2mTFuuZQo

To claim this, I am signing this object:

@jankal
jankal / packAnonFunction.php
Last active May 22, 2016 17:02
pack a anonimous function into a string (for transmissen)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
<?php
class TestClass {
function getClosure() {
return function () {
var_dump($this);
};
}
@jankal
jankal / Process.php
Last active October 10, 2022 03:05
PHP Process class
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
<?php
/**
* @compability: Linux only. (Windows does not work).
* @author: Alexander Jank <[email protected]>
*/
class Process{
private $pid;
@jankal
jankal / Luhn.php
Last active May 22, 2016 16:59
A PHP class for checking numbers trough the popular Luhn algorithm. It's also able to get the digit which you'll have to add that then Lun-check gets true.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
<?php
class Luhn {
public static function getDigit($number) {
$number .= 0;
$result = self::calc($number);
return (10 - $result);
}