ConfigSets

Config Sets are groups of configuration file that can be used when creating new solr cores. Apache solr 5.X comes with a set of three preconfigured Config Sets. The Config Sets are located in the configsets directory located in SOLR_HOME(server/solr by default). The full default path is server/solr/config.

  • basic_configs - minimum configurations that are required for creating a solr core.
  • data_driven_schema_configs - configured to create schemaless cores. It supports managed schema via field guessing.
  • sample_techproducts_configs: this is a more advanced configuration with many off the optional features enabled.all
Create Solr Core Using Config Set

Syntax:

./bin/solr create -c <corename> -d <configdir_or_set> -p <port>

Example:

./bin/solr create -c mybasiccore -d basic_configs -p 8983

 

SDK Common Objects

Php SDK

Authorize.net provides a php sdk for working with their payment gateway.


There are a few classes that we'll need to get familiar with when working with their sdk.

  • MerchantAuthenticationType
  • CreditCardType
  • PaymentType
  • OrderType
  • TransactionRequestType
  • CreateTransactionRequest
  • AnetController\CreateTransactionController

MerchantAuthenticationType

Add Custom Formatter To Dropdown Format

The Format plugin provides the ability to add block-level text formatting to your document. This module is already included in the standard build. When enabled, it introduces the Paragraph Format toolbar button that applies these text formats. The formats work on block level which means that you do not need to select any text in order to apply them and entire blocks will be affected by your choice.

Create CKeditor Plugin

Folder Structure

Before we can create a plugin, we must first understand the folder structure of a plugin.

  • mypluginname/ - this folder name is also the name of your plugin
    • icons/
      • mypluginname.png - (16x16 png image)
      • hidpi/    - higher resolution for hi-density displays
        • mypluginname.png - (32x32 png image)
    • plugin.js  - ckeditor expects to find a plugin.js file

 

Register Your Plugin

In order to make CKEditor aware of your plugin the add method of CKeditor.plugin is used to register your plugin.
The plugin definition is configuration object who's properties and methods can be seen here.

plugin.js Source Code
plugin.js is the heart of your plugin. It contains the javascript code for the plugin.
 

CKEDITOR.plugins.add( 'mypluginname', {
    icons: 'mypluginname',
    init: function( editor ) {
        //Plugin logic goes here.
    }
});

Setting Up A Git Server

CREATE A USER FOR GIT

sudo adduser git

ADD KEY TO ALLOW PASSWORDLESS AUTHENTICATION

sudo su - git
mkdir .ssh
#assuming the public key was uploaded to /temp/ryan_key.pub
cat /tmp/ryan_key.pub >> ~/.ssh/authorized_keys

SET UP AN EMPTY REPO

sudo mkdir /opt/git
sudo chown git:git /opt/git 
mkdir /opt/git/project.git
sudo chown git:git /opt/git/project.git
cd /opt/git/project.git
git --bare init

Pages