Skip to content

Instantly share code, notes, and snippets.

Igor Sazonov tigusigalpa

Block or report user

Report or block tigusigalpa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
tigusigalpa / database.php
Last active Jul 16, 2019
Laravel PostgreSQL SSL encryption connection config
View database.php
* 1. You have to store your client SSL certificates on your Laravel server, in my case this is /var/certs/
* 2. You have to right select SSL mode for PostgreSQL (see, verify-full means your server CA is signed for real domain name for the PostgreSQL server (recommended)
* 3. Go to Laravel config/database.php to the section 'pgsql' and extend it to the following:
return [
'connections' => [
/*'mysql' etc*/
tigusigalpa / check_moodle_version.php
Last active Jan 11, 2020
Check the current Moodle version function by given params
View check_moodle_version.php
* Function to check the current Moodle version pass your params
* @param $version Number of version or release (depends on @param $checkfor)
* @param string $checkfor ['all' or 'release' ($version like '3.1.3')] or 'version' ($version like '2016052303')
* @param string $compare
* @author Igor Sazonov <>
* @return bool
function checkMoodleVersion($version, $checkfor = 'all', $compare = '>=') {
You can’t perform that action at this time.