This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This is a script to create a video from series of JPEG images | |
# Call it in a folder full of JPEGs that you want to turn into a video. | |
# Written on 2013-01-08 by Philipp Klaus <philipp.l.klaus →AT→ web.de>. | |
# Check <https://gist.github.com/4572552> for newer versions. | |
# Resources | |
# * http://www.itforeveryone.co.uk/image-to-video.html | |
# * http://spielwiese.la-evento.com/hokuspokus/index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Returns the index of the first occurrence of the | |
* specified substring. If it's not found return -1. | |
* | |
* @param string | |
* @param string | |
* @return int | |
*/ |