Skip to content

Instantly share code, notes, and snippets.

# How can I determine if Apache is installed on a system?
dpkg --get-selections | grep apache
# echo -----------------------
# apache2 install
# apache2-doc install
# apache2-mpm-prefork install
# apache2-utils install
# apache2.2-bin install
# apache2.2-common install
# libapache2-mod-php5 install
BEGIN:VCALENDAR
VERSION:2.0
METHOD:PUBLISH
X-WR-CALNAME: Administrator (SugarCRM)
PRODID:-//SugarCRM//SugarCRM Calendar//EN
BEGIN:VTIMEZONE
TZID:Europe/Kiev
X-LIC-LOCATION:Europe/Kiev
BEGIN:DAYLIGHT
TZOFFSETFROM:+0000
@dimaqw
dimaqw / temp.php
Last active December 27, 2015 08:59
<?php
// modules / PX_Orders / metadata / SearchFields . php
'range_date_start' => array( //range_<field_name>
'query_type' => 'default',
'enable_range_search' => true,
'is_date_field' => true
)
, 'start_range_date_start' => array( //start_range_<field_name>
'query_type' => 'default',
'enable_range_search' => true,
<?php
$dictionary["px_books_users_1"] = array(
'true_relationship_type' => 'many-to-many',
'from_studio' => true,
'relationships' =>
array(
'px_books_users_1' =>
array(
'lhs_module' => 'PX_Books',
'lhs_table' => 'px_books',
@dimaqw
dimaqw / canvas.js
Last active December 22, 2015 08:39
alert(12);
var d = document;
var ih=50;
var iw=60;
var ds=2; //diagonal step if 1 deny
var dj=8; //diagonal jamp if 4 deny
var it =0; //count for tmp_ch array each step
var ch = new Array();
var tmp_ch = new Array();
tmp_ch['x']=''; tmp_ch['y']='';