This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| public static function paginate(int $totalItems, int $offset, int $size) | |
| { | |
| $pages = []; | |
| $i = 0; | |
| $pageNumber = 1; | |
| while ($i <= ($totalItems - $size)) { | |
| $page['number'] = $pageNumber; | |
| $page['offset'] = $i; | |
| $page['size'] = $size; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [2020-08-17T12:57:58,747][INFO ][o.e.n.Node ] [esnode3.example.org] version[7.8.0], pid[19625], build[default/deb/757314695644ea9a1dc2fecd26d1a43856725e65/2020-06-14T19:35:50.234439Z], OS[Linux/4.15.0-112-generic/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/14.0.1/14.0.1+7] | |
| [2020-08-17T12:57:58,751][INFO ][o.e.n.Node ] [esnode3.example.org] JVM home [/usr/share/elasticsearch/jdk] | |
| [2020-08-17T12:57:58,751][INFO ][o.e.n.Node ] [esnode3.example.org] JVM arguments [-Xshare:auto, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -XX:+ShowCodeDetailsInExceptionMessages, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.locale.providers=SPI,COMPAT, -Xms6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Aug 12 01:26:06 smtp raygun_postfix/smtpd[4229]: name_mask: all | |
| Aug 12 01:26:06 smtp raygun_postfix/smtpd[4229]: name_mask: host | |
| Aug 12 01:26:06 smtp raygun_postfix/smtpd[4229]: inet_addr_local: configured 3 IPv4 addresses | |
| Aug 12 01:26:06 smtp raygun_postfix/smtpd[4229]: inet_addr_local: configured 0 IPv6 addresses | |
| Aug 12 01:26:06 smtp raygun_postfix/smtpd[4229]: been_here: 127.0.0.1/32: 0 | |
| Aug 12 01:26:06 smtp raygun_postfix/smtpd[4229]: been_here: 192.168.112.4/32: 0 | |
| Aug 12 01:26:06 smtp raygun_postfix/smtpd[4229]: been_here: 192.168.111.11/32: 0 | |
| Aug 12 01:26:06 smtp raygun_postfix/smtpd[4229]: mynetworks_core: 127.0.0.1/32 192.168.112.4/32 192.168.111.11/32 | |
| Aug 12 01:26:06 smtp postfix/submission/smtpd[4229]: process generation: 76 (76) | |
| Aug 12 01:26:06 smtp postfix/submission/smtpd[4229]: match_string: parent_domain_matches_subdomains: smtpd_client_event_limit_exceptions ~? debug_peer_list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [mysqld] | |
| disabled_storage_engines="MyISAM,BLACKHOLE,FEDERATED,ARCHIVE,MEMORY" | |
| server_id=1 | |
| gtid_mode=ON | |
| enforce_gtid_consistency=ON | |
| binlog_checksum=NONE | |
| # | |
| log_bin=binlog | |
| log_slave_updates=ON |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| multisite_drupal | [Fri Mar 13 22:30:59.584102 2020] [php7:notice] [pid 24] [client 172.18.0.1:55790] Error: Cannot create references to/from string offsets in /var/www/html/web/core/lib/Drupal/Component/Utility/NestedArray.php on line 155 #0 /var/www/html/web/core/lib/Drupal/Core/Form/FormBuilder.php(1247): Drupal\\Component\\Utility\\NestedArray::setValue(Array, Array, NULL)\n#1 /var/www/html/web/core/lib/Drupal/Core/Form/FormBuilder.php(992): Drupal\\Core\\Form\\FormBuilder->handleInputElement('node_multisite_...', Array, Object(Drupal\\Core\\Form\\FormState))\n#2 /var/www/html/web/core/lib/Drupal/Core/Form/FormBuilder.php(1062): Drupal\\Core\\Form\\FormBuilder->doBuildForm('node_multisite_...', Array, Object(Drupal\\Core\\Form\\FormState))\n#3 /var/www/html/web/core/lib/Drupal/Core/Form/FormBuilder.php(1062): Drupal\\Core\\Form\\FormBuilder->doBuildForm('node_multisite_...', Array, Object(Drupal\\Core\\Form\\FormState))\n#4 /var/www/html/web/core/lib/Drupal/Core/Form/FormBuilder.php(1062): Drupal\\Core\\F |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM php:7.2.13-zts | |
| RUN apt-get update \ | |
| && apt-get -y install git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN cd /opt \ | |
| && git clone https://github.com/krakjoe/pthreads.git \ | |
| && cd pthreads \ | |
| && phpize && ./configure && make && make install \ | |
| && docker-php-ext-enable pthreads |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM debian:stretch | |
| RUN apt-get update \ | |
| && apt-get -y --no-install-recommends install \ | |
| libmono-system-net4.0-cil \ | |
| libmono-system-net-http4.0-cil \ | |
| libmono-system-net-http-webrequest4.0-cil \ | |
| libmono-system-servicemodel4.0a-cil \ | |
| libmono-system-servicemodel-discovery4.0-cil \ | |
| libmono-system-serviceprocess4.0-cil \ | |
| libmono-microsoft-csharp4.0-cil \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [root@reagan-office-3 icinga2x]# vagrant up | |
| Bringing machine 'icinga2' up with 'virtualbox' provider... | |
| ==> icinga2: Box 'bento/centos-7.3' could not be found. Attempting to find and install... | |
| icinga2: Box Provider: virtualbox | |
| icinga2: Box Version: >= 0 | |
| ==> icinga2: Loading metadata for box 'bento/centos-7.3' | |
| icinga2: URL: https://vagrantcloud.com/bento/centos-7.3 | |
| ==> icinga2: Adding box 'bento/centos-7.3' (v201708.22.0) for provider: virtualbox | |
| icinga2: Downloading: https://vagrantcloud.com/bento/boxes/centos-7.3/versions/201708.22.0/providers/virtualbox.box | |
| ==> icinga2: Successfully added box 'bento/centos-7.3' (v201708.22.0) for 'virtualbox'! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $view = new view(); | |
| $view->name = 'multifield_sql_error_test'; | |
| $view->description = ''; | |
| $view->tag = 'default'; | |
| $view->base_table = 'node'; | |
| $view->human_name = 'multifield sql error test'; | |
| $view->core = 7; | |
| $view->api_version = '3.0'; | |
| $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "template" : "logstash-*", | |
| "settings" : { | |
| "index.refresh_interval" : "5s" | |
| }, | |
| "mappings" : { | |
| "_default_" : { | |
| "_all" : {"enabled" : true, "omit_norms" : true}, | |
| "dynamic_templates" : [ { | |
| "message_field" : { |
NewerOlder