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
Port: 1080 | |
1. Create a file /YOUR PATH/gitproxy.sh with content: | |
#!/bin/sh | |
nc -X 5 -x 127.0.0.1:1080 "$@" | |
2. Edit your ~/.gitconfig | |
# For git:// |
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
location / { | |
try_files $uri /index.php$is_args$args; | |
} | |
location ~ ^/index\.php(/|$) { | |
fastcgi_pass php-fpm5:9000; | |
fastcgi_split_path_info ^(.+\.php)(/.*)$; | |
include fastcgi_params; | |
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; |
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 | |
namespace App\Service; | |
use DOMDocument; | |
use DOMElement; | |
use DOMNode; | |
use DOMXPath; | |
class ParseHTML |
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 | |
parse(); | |
function parse() | |
{ | |
$html = get_html('https://velsnab.ru/price/'); | |
$fn = __DIR__.'/velsnab.ru_'.time().'.csv'; | |
if ($html) { |
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
history.replaceState && history.replaceState( | |
null, '', location.pathname + location.search.replace(/[\?&]message=[^&]+/, '').replace(/^&/, '?') | |
); |
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 | |
namespace App\Service\TransportService; | |
use App\Service\CacheService; | |
use App\Service\Request; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; | |
final class CDEK extends TransportService |
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 | |
namespace App\Service; | |
use App\Entity\Page; | |
use Doctrine\DBAL\Exception; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Psr\Log\LoggerInterface; | |
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; |
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
require 'compass/import-once/activate' | |
# Require any additional compass plugins here. | |
# Set this to the root of your project when deployed: | |
http_path = "/" | |
css_dir = "templates" | |
sass_dir = "templates" | |
images_dir = "templates" | |
javascripts_dir = "templates" |
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
-- phpMyAdmin SQL Dump | |
-- version 5.1.1 | |
-- https://www.phpmyadmin.net/ | |
-- | |
-- Хост: mariadb | |
-- Время создания: Фев 25 2022 г., 09:38 | |
-- Версия сервера: 10.5.11-MariaDB-1:10.5.11+maria~focal | |
-- Версия PHP: 7.4.20 | |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
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
{"items":[{"category_id":434864420,"dimension_unit":"cm","depth":130,"width":60,"height":21,"weight_unit":"kg","weight":20,"vat":"0.2","price":"24750","offer_id":"9980070738014","name":"Aspect Champion (2022)","images":["https:\/\/pro-bike.loc\/data\/images\/catalog\/57\/34657\/1.jpg","https:\/\/pro-bike.loc\/data\/images\/catalog\/57\/34657\/2.jpg"],"complex_attributes":[],"attributes":[{"complex_id":0,"id":"85","values":[{"value":"Aspect"}]},{"complex_id":0,"id":"4180","values":[{"value":"Детский велосипед Aspect Champion (2022)"}]},{"complex_id":0,"id":"7710","values":[{"value":"Хардтейл"}]},{"complex_id":0,"id":"7712","values":[{"value":"20\""}]},{"complex_id":0,"id":"7715","values":[{"value":"Zoom 565"}]},{"complex_id":0,"id":"7723","values":[{"value":"Алюминий"}]},{"complex_id":0,"id":"7727","values":[{"value":"Один размер"}]},{"complex_id":0,"id":"7916","values":[{"value":"6"}]},{"complex_id":0,"id":"7917","values":[{"value":"80мм."}]},{"complex_id":0,"id":"9048","values":[{"value":"Champion"}]},{"comp |
OlderNewer