https://surveyfunnel.io/api/v1/payplan/register
post
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
VER=3.0.5 | |
sudo apt-get update | |
# Install the required tools to build the source | |
sudo apt-get install build-essential | |
# Download and extract the files | |
wget http://download.redis.io/releases/redis-$VER.tar.gz | |
tar -xzf redis-$VER.tar.gz | |
cd redis-$VER | |
# Compile |
# stop script on error signal | |
set -e | |
# delete deployment folder if script exit before end last time | |
if [ -d "/home/forge/deployment" ]; then | |
rm -R /home/forge/deployment | |
fi | |
# set up your env variables if your app using them | |
export DB_HOST=localhost |
<?php | |
namespace Codeception\Module; | |
use Codeception\Util\Framework; | |
use Codeception\TestCase; | |
use Codeception\Util\Connector\Universal; | |
use Codeception\Configuration; | |
use Symfony\Component\BrowserKit\Response; | |
use Laravel\Routing\Router; |
This task is created for apprentices who want to learn about OOP
Create PHP library which will resize the images.
For cropping images we will use library "image-workshop" - https://packagist.org/packages/sybio/image-workshop
Library need to support several types of resizing
Our company has private packages which are shared between projects. We use composer to install our private packages.
Our static composer repository is located on this URL:http://45.33.79.118/satis/web/
To add our composer packages repository to composer.json add this lines:
# Connect to Codeception server | |
ssh [email protected] | |
# go into the crucible bin folder | |
cd crucible/fecru-3.10.1/bin | |
# start crucible | |
sudo sh start.sh | |
# wait few minutes until cricible start |
function grmm () { | |
COLOR='\033[1;37m' | |
echo "${COLOR} Lets merge branch: ${1}"; | |
git fetch origin | |
git checkout master | |
git pull origin master | |
git checkout $1 |
<?php | |
$img = new Imagick($img); | |
// code by Max Eremin http://php.net/manual/en/imagick.stripimage.php#120380 | |
// we need to keep the ICC profiles | |
$profiles = $img->getImageProfiles('icc', true); | |
// but remove everything else |