Skip to content

Instantly share code, notes, and snippets.

View mgp25's full-sized avatar
🔒
GPG: 0xDA570C7A

mgp25 mgp25

🔒
GPG: 0xDA570C7A
View GitHub Profile
@mgp25
mgp25 / uploadPhoto.php
Created November 26, 2015 23:29
Example: Upload photo to Instagram using https://github.com/mgp25/Instagram-API
<?php
require '../src/Instagram.php';
/////// CONFIG ///////
$username = '';
$password = '';
$debug = false;
$photo = ''; // path to the photo
$caption = null; // caption
//////////////////////
$i = new Instagram($username, $password, $debug);
@mgp25
mgp25 / aes256.php
Last active October 28, 2015 21:50
AES256
<?php
class TelegramEncryption
{
public $key;
public $iv;
public $cipherText;
public $plainText;
public $debug;
public function __construct($key, $iv, $cipherText = null, $plainText = null, $debug = false)
### Keybase proof
I hereby claim:
* I am mgp25 on github.
* I am mgp25 (https://keybase.io/mgp25) on keybase.
* I have a public key whose fingerprint is 9A9E DE89 6500 A764 A662 D174 F1B2 6C9F DB35 D73F
To claim this, I am signing this object:
@mgp25
mgp25 / keybase.md
Last active September 1, 2021 10:48

Keybase proof

I hereby claim:

  • I am mgp25 on github.
  • I am mgp25 (https://keybase.io/mgp25) on keybase.
  • I have a public key whose fingerprint is F19A FCB6 5F8A 90A6 620B C846 1689 959A 8E4D 7212

To claim this, I am signing this object: