Skip to content

Instantly share code, notes, and snippets.

View alkhachatryan's full-sized avatar
🇦🇲

Alexey alkhachatryan

🇦🇲
View GitHub Profile
@kirilkirkov
kirilkirkov / gist:9a6ac60c2e35caca1e5eb75dfe33a153
Created April 13, 2016 13:41
Cannot connect to Mail: Can not authenticate to IMAP server: [ALERT] Please log in via your web browser: https://support.google.com/mail/acco
Error when try access gmail from php imap solution:
Login to your gmail account, enable imap.
Let the access here first: https://www.google.com/settings/security/lesssecureapps
Go to: https://accounts.google.com/b/0/DisplayUnlockCaptcha and enable access.
@jcefoli
jcefoli / allkeys.php
Last active November 21, 2022 11:11
List All Key/Value Pairs in Redis using the Predis Library. Assumes that Redis is running locally on default port 6379 with no password auth
<?
//Include Predis library. See https://github.com/nrk/predis for more info
require "Predis/Autoloader.php";
//Connect to Redis
Predis\Autoloader::register();
try {
$redis = new Predis\Client();
$redis = new Predis\Client(array(
"scheme" => "tcp",