Skip to content

Instantly share code, notes, and snippets.

@victorvassilev
victorvassilev / axios-catch-error.js
Created October 5, 2018 09:38 — forked from fgilio/axios-catch-error.js
Catch request errors with Axios
axios.put(this.apiBaseEndpoint + '/' + id, input)
.then((response) => {
// Success
})
.catch((error) => {
// Error
if (error.response) {
// The request was made and the server responded with a status code
// that falls out of the range of 2xx
// console.log(error.response.data);
#!/bin/bash
cd /tmp && wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
cd /tmp && tar -xzf ioncube_loaders_lin_x86-64.tar.gz
phpver=`php -v | awk '{print $2}' | grep 7 | cut -c1-3`
extdir=`php -i | grep extension_dir | awk '{print $3}' | grep php`
mv /tmp/ioncube/ioncube_loader_lin_$phpver.so $extdir/
echo zend_extension = $extdir/ioncube_loader_lin_$phpver.so >> `php -i | grep ini | awk '{print $5}' | grep php.ini`
systemctl restart php72-php-fpm
systemctl restart httpd
php -v
@victorvassilev
victorvassilev / README.md
Created May 14, 2018 10:20 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet