Skip to content

Instantly share code, notes, and snippets.

<?php
parse();
function parse()
{
$html = get_html('https://velsnab.ru/price/');
$fn = __DIR__.'/velsnab.ru_'.time().'.csv';
if ($html) {
@andreypaa
andreypaa / ParseHTML.php
Created February 14, 2020 07:57
table2params
<?php
namespace App\Service;
use DOMDocument;
use DOMElement;
use DOMNode;
use DOMXPath;
class ParseHTML
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;
@andreypaa
andreypaa / config-git-proxy.txt
Created September 26, 2018 06:47 — forked from bynil/config-git-proxy.txt
Use git over socks5 proxy
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://