Script

Composer tips and tricks

Submitted by Greg Nowak on 2019-05-30

Composer without root

Run this in ~/composer: curl -sS https://getcomposer.org/installer | php

Put this in .bashrc: alias composer="php ~/composer/composer.phar"

Install Drupal 8 With Composer In Custom Web Folder

composer create-project drupal-composer/drupal-project:8.x-dev my_site_name_dir --no-interaction --no-install
Adjust web folder in composer.json file and then run "composer install".

Check available versions of a package

composer show package_name --available

Upgrading PHP 5 to PHP 7

Submitted by Greg Nowak on 2017-11-20

A couple of notes on upgrading from PHP 5 to PHP 7.

Firstly you can try to copy your site or code to a server with PHP 7 and see how your PHP 5 application runs and then move forward. You can also try to use a tool to help you with finding code that needs to be upgraded and reading the documentation. See the links below.

Tags

Fix mailR java issues

Submitted by Greg Nowak on 2017-11-09

You might have a couple of issues with mailR when running on a server.

When installing or after installing the r package: rJava you might encounter the following: libjvm.so: cannot open shared object file: No such file or directory

I fixed this on a ubuntu server with this command: sudo R CMD javareconf
 

Append Multiple MOV Files and Edit Video

Submitted by Greg Nowak on 2015-08-17

Appending MOV files efficiently can be a challenge. The only "safe" and easy way without destroying the video or the sound is done by using Avidemux which is a free video editing tool for Linux.

Here is my modified image-convert bash script used for the appending all .MOV files in a folder and have the full video ready for editing in the Avidemux graphical user interface (GUI).