sudo a2dismod php?.?
sudo a2enmod php?.?
sudo update-alternatives --config php
<?php | |
class MyDataObjectAdmin extends ModelAdmin { | |
private static $managed_models = array('MyDataObject'); // Can manage multiple models | |
private static $url_segment = 'my-data-object'; // Linked as /admin/my-data-object/ | |
private static $menu_title = 'My DataObjects'; | |
public function getSearchContext() { |
Example: 'images/0-31604-01079-9_label_small.jpg'
In this case we're looking for the string 'label' between the underscore delimiters (not including the delimiters).
This would be our regex /(?<=_)+[A-Za-z]+(?=_)/
Note: Because this is my personal cheat sheet, I'm installing a few PHP modules that you may not need if you're not running SilverStripe 4.x.x. Otherwise this is a pretty standard and secure LAMP installation.
Log into the remote machine as root: ssh root@123.45.67.890
First, add the admin user.
#Git Help#
##Git Remotes##
VIEW all remotes
git remote -v
ADD remote