Skip to content

Instantly share code, notes, and snippets.

View DreadfulCode's full-sized avatar
💭
Making It Happen

ƊŗęДdϝul Ȼʘɗɇ DreadfulCode

💭
Making It Happen
View GitHub Profile
@DreadfulCode
DreadfulCode / ubuntu-20042-lts-install-php-82-with-curl-mbstring-intl-xml-psqsl-extensions-and-composer.sh
Last active March 17, 2024 16:40
Ubuntu 20.04.2 LTS: Install PHP 8.2 with curl, mbstring, intl, xml, psqsl extensions and Composer
#install PHP with extensions for redis and postgres
sudo dpkg -l | grep php | tee packages.txt &&
sudo add-apt-repository ppa:ondrej/php &&
sudo apt update &&
sudo apt install -y php8.2 php8.2-cli php8.2-fpm php-bz2 php-curl php-mbstring php-intl php8.2-xml php-pgsql redis-tools &&
sudo service apache2 restart &&
sudo service apache2 status
#Install Composer
cd ~ &&
@DreadfulCode
DreadfulCode / authorizenet_signature
Created October 2, 2017 17:07
Authorize.net signature timestamp
<?php
namespace app\controllers\api;
use app\models\api\campaign\view\AuthorizePostbackRequest;
use yii\helpers\Url;
use app\components\ApiController;
use yii\helpers\Json;
use yii\web\ServerErrorHttpException;
use yii\db\Exception;
use yii\web\UnauthorizedHttpException;