Skip to content

Instantly share code, notes, and snippets.

View vnagara's full-sized avatar

Vitalii Nagara vnagara

  • Internet Guru
  • Romania
View GitHub Profile
Debug: Loading modules from directory: /usr/lib/dovecot/modules/doveadm
Debug: Skipping module doveadm_acl_plugin, because dlopen() failed: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_acl_plugin.so: undefined symbol: acl_user_module (this is usually intentional, so just ignore this message)
Debug: Skipping module doveadm_expire_plugin, because dlopen() failed: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_expire_plugin.so: undefined symbol: expire_set_deinit (this is usually intentional, so just ignore this message)
Debug: Skipping module doveadm_quota_plugin, because dlopen() failed: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_quota_plugin.so: undefined symbol: quota_user_module (this is usually intentional, so just ignore this message)
Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_sieve_plugin.so
Debug: Skipping module doveadm_fts_lucene_plugin, because dlopen() failed: /usr/lib/dovecot/modules/doveadm/lib20_doveadm_fts_lucene_plugin.so: undefined symbol: lucene_index_iter_dein
@vnagara
vnagara / composer.lock
Created May 4, 2020 10:06
composer update packages on remove package
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "1881ce546eb439811dfe75df5ad63090",
"packages": [
{
"name": "psr/cache",
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="author" content="Bootstrap-ecommerce by Vosidiy">
<title>Contesy</title>
<link rel="shortcut icon" type="image/x-icon" href="images/icons8-jewel-48.png">
<!-- jQuery -->
#!/bin/bash
## Git keeper of document files by inotify prossor
usage() {
echo "Usage: `basename $0` [--exclude additinal_exclude_pattern] directory" >&2
}
add_ex=
while true
Module Size Used by
ctr 12927 1
ccm 17577 1
cpufreq_stats 12782 0
cpufreq_conservative 14184 0
bnep 17431 2
cpufreq_powersave 12454 0
cpufreq_userspace 12525 0
binfmt_misc 16949 1
nls_utf8 12456 1
@vnagara
vnagara / dmesg.log
Created October 29, 2015 09:21
dmesg
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt7-1 (2015-03-01)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64 root=UUID=67081140-3e30-4fa4-9e48-815c6d404e3a ro quiet splash
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x0000000000057fff] usable
[ 0.000000] BIOS-e820: [mem 0x0000000000058000-0x0000000000058fff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000059000-0x000000000009dfff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009e000-0x000000000009ffff] reserved
@vnagara
vnagara / engine-sizes.sql
Last active August 29, 2015 14:25
See InnoDB vs MyISAM size
SELECT IFNULL( B.engine, 'Total' ) "Storage Engine",
CONCAT( LPAD( REPLACE( FORMAT( B.DSize / POWER( 1024, pw ) , 3 ) , ',', '' ) , 17, ' ' ) , ' ', SUBSTR( ' KMGTP', pw +1, 1 ) , 'B' ) "Data Size",
CONCAT( LPAD( REPLACE( FORMAT( B.ISize / POWER( 1024, pw ) , 3 ) , ',', '' ) , 17, ' ' ) , ' ', SUBSTR( ' KMGTP', pw +1, 1 ) , 'B' ) "Index Size",
CONCAT( LPAD( REPLACE( FORMAT( B.TSize / POWER( 1024, pw ) , 3 ) , ',', '' ) , 17, ' ' ) , ' ', SUBSTR( ' KMGTP', pw +1, 1 ) , 'B' ) "Table Size"
FROM (
SELECT ENGINE , SUM( data_length ) DSize, SUM( index_length ) ISize, SUM( data_length + index_length ) TSize
FROM information_schema.tables
WHERE table_schema NOT IN ('mysql', 'information_schema', 'performance_schema')
AND ENGINE IS NOT NULL
GROUP BY ENGINE WITH ROLLUP
<?php
/* Setup page vars for display. */
if ($page == 0) $page = 1; //if no page var is given, default to 1.
$prev = $page - 1; //previous page is page - 1
$next = $page + 1; //next page is page + 1
$lastpage = ceil($total_pages/$limit); //lastpage is = total pages / items per page, rounded up.
$lpm1 = $lastpage - 1; //last page minus 1
/*
Now we apply our rules and draw the pagination object.
We're actually saving the code to a variable in case we want to draw it more than once.
{"myAdEntries":[{"id":"1034716359","date":1416747378000,"url":"/v-view-details.html?adId=1034716359","active":true,"title":"POST RENOVATION, POST CONSTRUCTION CLEANING : 289-644-9139","price":"","locationName":"Toronto (GTA) > Oakville / Halton Region","expired":false,"promoting":false,"expirationDate":1421931378000,"pageNumber":"1","viewCounter":0,"delayed":false,"teaserUrl":"//secureimg.ebayimg.com/00/s/MTgzWDE0MA==/z/I28AAOSwd4tTuuut/$_2.JPG","canEditPrice":false,"showExpirationDate":false,"showViewCounter":true,"showPageNumber":true,"canConfirm":false,"canEdit":true,"canRepost":false,"canDelete":true,"expiring":false,"repostSurveyReasons":[{"messageKey":"my.ads.survey.notEnoughResponses","name":"NOT_ENOUGH_RESPONSES","other":false,"preferNotToSay":false},{"messageKey":"my.ads.survey.simlarActivityOrEventToPromote","name":"SIMLAR_ACTIVITY_OR_EVENT_TO_PROMOTE","other":false,"preferNotToSay":false},{"messageKey":"my.ads.survey.preferNotToSay","name":"PREFER_NOT_TO_SAY","other":false,"preferNotToSay":true}],"
return array(
'di' => array(
'instance' => array(
'Zend\View\Resolver\AggregateResolver' => array(
'injections' => array(
'Zend\View\Resolver\TemplateMapResolver',
'Zend\View\Resolver\TemplatePathStack',
'Zend\View\Resolver\RelativeFallbackResolver',
'Zend\View\Resolver\RelativeFallbackResolver2',
),