A few notes:
- All commands should be run as root unless specified otherwise.
- Commands that sould be run locally have a
local$
prefix.
#!/usr/bin/perl | |
# | |
# @file | |
# Converter tool, from Apache Common Log file to CSV. | |
# | |
# All code is released under the GNU General Public License. | |
# See COPYRIGHT.txt and LICENSE.txt. | |
# | |
OS version is in system_profiler_SPSoftwareDataType.txt
;
Utilities in /bin
are listed in bin.txt
;
Utilities in /sbin
are listed in sbin.txt
;
Utilities in /usr/bin
are listed in usr_bin.txt
;
Utilities in /usr/sbin
are listed in usr_sbin.txt
;
Utilities in /usr/libexec
are listed in usr_libexec.txt
;
Default paths are
/usr/local/bin
Source:
The steps for installing mongodb server, the PECL mongodb PHP extension (which is called mongodb
, not the legacy mongo
), xhprof need to be peformed on the docker container runnning php-fpm.
<?php | |
CJSCore::Init(['ui']); | |
$items = [ | |
['NAME' => 'Первый вариант', 'VALUE' => '1'], | |
['NAME' => 'Второй вариант', 'VALUE' => '2'], | |
]; | |
?> | |
<div style="padding: 100px" id="filter"> | |
<div data-name="SELECT_SINGLE" class="main-ui-filter-wield-with-label main-ui-filter-date-group main-ui-control-field-group"> |
function BinarySearch(t,A) // t - искомый элемент, | |
{ // A - упорядоченный массив, в котором ищем. | |
var i = 0, j = A.length, k; | |
while (i < j) | |
{ k = Math.floor((i+j)/2); | |
if (t <= A[k]) j = k; | |
else i = k+1; | |
} | |
BOPTI=`du -L -s ${SITEDIR} | awk '{print $1}'` | |
find -L ${SITEDIR} -type f -iname '*.jpg' \ | |
-exec jpegoptim -q --strip-all {} \; \ | |
-exec chown ${SITEUSER}:www-data {} \; \ | |
-exec chmod 664 {} \; | |
find -L ${SITEDIR} -type f -iname '*.png' \ | |
-exec optipng -quiet -clobber -fix -strip all {} \; \ | |
-exec chown ${SITEUSER}:www-data {} \; \ |
Общие упрощенные понятия. Возможно существуют способы задать другое поведение нежели данное упощенное.