Skip to content

Instantly share code, notes, and snippets.

Valentine Velikiy hugeval

Block or report user

Report or block hugeval

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View example.html
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
th:first-child, td:first-child {
position:sticky;
left:0px;
background-color:grey;
}
</style>
View la.xml
<referenceContainer name="content">
<block class="Cuborubo\Catalog\Block\Product\DoFilterProductsByAttributes" name="cuborubo.product.list.filter"
as="product_listy_filter" before="category.cms">
<action method="setAttributesToFilter">
<argument name="attributes" xsi:type="array">
<item name="stretch" xsi:type="string">1</item>
</argument>
</action>
</block>
</referenceContainer>
View array_copy_and_modification.php
<?php
//$pattern = '/^(.*)\[(p|m|v)_(.*)\]/i';
//preg_match($pattern, '331-60905/5106[p_0].JPG', $matches);
//
//var_dump($matches);
$orig = [2.2, 2, 0.7];
$sQty = 4.2;
$new = array_fill(0, count($orig), 0);
@hugeval
hugeval / 1404547528
Created Jun 6, 2019
430-34898/33081gf
View 1404547528
[2019-04-29 14:43:54] main.INFO: data_to_proces {"token":"ui19vpl74tgdk5elcgfo3ol3h9sgfmic","product":[{"1c_id":"1404547528","product_related":["1404020029"],"model":"430-34898/33081gf","short_model":"430
-34898","sku":"1404547528","ean":"4303489833081","minimum":"0","subtract":"1","stock_status_id":"7","date_available":"2019-04-29","price":"340","status":"1","width":"dl.0,80","pantone":"","product_color":
"","product_description":[{"name":"430-34898/33081gf ?.о?.?.е dl.0,80 Ши?.он \"маки,?.ома?.,?.?.л?.пан?.\" 1,45"}],"product_attribute":"","uom":"1","qty_increments":"0","min_sale_qty":"0"
}]} []
[2019-04-30 08:02:22] main.INFO: data_to_proces {"token":"ui19vpl74tgdk5elcgfo3ol3h9sgfmic","product":[{"1c_id":"1404547528","product_category":["1404012282"],"product_related":["1404020029"],"model":"430
-34898/33081gf","short_model":"430-34898","sku":"1404547528","ean":"4303489833081","minimum":"0","subtract":"1","stock_status_id":"7","date_available":"2019-04-30","price":"340","status":"1","width":"dl.0
,80","pa
View work_pc
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKfTbU331F3tzNbxML54wfZwL8EzyEG+/LBQpx9UI2pectarsbnaEQGuTgtlcUY7ZYRA1S4MEkDJQhfJPXf6xl/v/8wkuD7r1po//8xbpVlOOGlw4t1kbgAoVGvG2OufsosUVxx3moQBlcECmAVWSSZzGAsU8ob+Qeuoo2jWa8YyqjzJi5XPTFGfWb+lZrJpZD3b2MCcjqqlnWu7yFeCb4hsvSSLDaJ76UDUQQYY0awrfYrMdD/+EgTwJhJwUun3ClFXT2kIAXgqru3/MA/Mm3dESoqZgxHfQo/RlahqEVo3RQtGE2WaxVRB9KgkjllHrfs1At3Rg+JCL5si/EsZ11 cuborubo-user@cuborubo-All-Series
View work_laptop
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDIi0rkWxYQKz3vGxfTzhix+jZVYKcNRT1AclcVK0CtjnJnNqUb32xmRY17mJXqsTQmtO8MhWpVKVN+12666ZxRHP7VxtPuapQmdQ3Ad0UEoy4MucI+HZrX2KmkJ+eYGKCGvBOTJ7/mxyUMEYiW6lZa7vvpdBiwF6fJWaaNqg+DEFuwo0R4LZ5ZaPrLaj8V22qUfhHYF8GVlkW0tL3fXajA2hQ2vVCHdvPkEBkOeLZgsGW5mEKyUJKN/20jpxc1WS/o4m7fYmGoPGBZ9o+KJ9dNGBG1lq8NSSOMH41JthUS/rEyMBuHhdnSwaHJBhUZzVb/Kj6QTB4uQmEatMHyIGAB2jouTkSaOzpWJ3CxDHoecemqII+Xtttlip3MsKZbNewym7+c12J9lfIFqzO4kphSGL79+xjntm6M2KQCqyugZToChlaApPKO1YKG+y6czHY6ZXl9Oj2kkgSbqqqjF3y64lpLbdS3b79qJx7EaXShPY+NZBMpmsR8TxkKGDAEszYBolCG8T2JQ3HGYdJCYvxFYenj6WezyRV1o6F1tOGhY4OjThvHUhJ4dUpbuWDnagPv18dxLKfjCuaAiMUAhTBhS6NCUIOi5HFxKUwf95N0QTyg7z0xMbdVYRAcdjc8VuiizH+vWcp8iJSgcBMPWfEKjtea16+frctjPXuvrg1YaQ== valhuge@gmail.com
View creds
{
"type": "service_account",
"project_id": "quickstart-1553692896850",
"private_key_id": "b93368a76695c328203ca7006bab9538e90f138f",
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQDTLxvVCU/jOLco\npX7DzZlUiAhgttmrXFR43ejMiOdrOWvb/Xm1TXslq14MIUTmLC5089bYdEXdq2P3\n2NwMjxnRTBJgYsxwPivE4WgBdROBiVjnz+5uqZw7bbrBZcpeoJLixZQN+0U65dlM\nV6GRQ8b8suagTZbNbvX6CCI7+xA+zyrqK69Oni+QyJcukLXLkcIdwmqnHSDWxt6T\nKY7xCfXtDqKpIbpmTNsttEVQ9LoYs3jResGCdxXyaaZw6SEQ/E8tcrhiwfY7U4ca\nUp2L+MON3E/WF88obzjaJ810aN81uV8t3cyvWa8u8i3lXiPwK6d0lT1Sy92bh4xu\n85SKA7c9AgMBAAECggEALZDaC/7M3mWD24DN17iaT0tkp118nMU4srWKv+sAJ7oF\nhDtuUcisfAW8LpjVEWbSBUkBf8Wit3/9+2GupQURWH/17RcULlmzvvC1rK7SrR3x\n8V6DfxwYihgUdhsc7Yru9oAUAGpJVzp1xsuXoEzD+A0vxsHG+n9pEnBD1rZGnI5Z\nQwdxQ+azKL21dZp4w+GGw4wsM3W0P57G+vpbSmuBZXqBrG7ZyqKdgf97exyuq3AO\nZOJ0bHMoeBHUej5nB6udt39KjmqbG3sEYpL9awKsCzUgwfqoNgYpvvMxs2zaarbz\n8RPccoBye6FD8k3CUDwgFUrF5dmmz2lVzmwx1UJYoQKBgQDtngdsupcDnqrnKOsc\npUrgkV08SaVDDZxl2277Nvti4AR0+tfT+UjebpWiSWGclF
@hugeval
hugeval / tuning.txg
Last active Nov 21, 2018
tuning.txt
View tuning.txg
php-fpm:
memory_limit=4G
mysql
innodb_buffer_pool_size=1G
table_open_cache=4096
table_definition_cache=4096
thread_cache_size=256
query_cache_size=64M
query_cache_type=1
sort_buffer_size=16M
View mods.txt
access_compat.load -> ../mods-available/access_compat.load
lrwxrwxrwx 1 root root 28 сен 27 10:17 alias.conf -> ../mods-available/alias.conf
lrwxrwxrwx 1 root root 28 сен 27 10:17 alias.load -> ../mods-available/alias.load
lrwxrwxrwx 1 root root 33 сен 27 10:17 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root 33 сен 27 10:17 authn_core.load -> ../mods-available/authn_core.load
lrwxrwxrwx 1 root root 33 сен 27 10:17 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root 33 сен 27 10:17 authz_core.load -> ../mods-available/authz_core.load
lrwxrwxrwx 1 root root 33 сен 27 10:17 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root 33 сен 27 10:17 authz_user.load -> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root 32 сен 27 10:17 autoindex.conf -> ../mods-available/autoindex.conf
View site.conf
<Directory "/var/www/html/web-mainapp-taxichat/app/web">
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
</Directory>
You can’t perform that action at this time.