Skip to content

Instantly share code, notes, and snippets.

View arrtemiy's full-sized avatar

Artem arrtemiy

View GitHub Profile
@arrtemiy
arrtemiy / quantity_upd.php
Last active August 31, 2024 13:19
YaDisk-Sync-Bitrix-Catalog - обновление кол-ва остатков по excel из Яндекс диска. Запуск из консоли
<?php
if (substr(php_sapi_name(), 0, 3) !== 'cli') {
die();
}
define('NO_KEEP_STATISTIC', true);
define('NO_AGENT_CHECK', true);
if (empty($_SERVER['DOCUMENT_ROOT'])) {
$_SERVER['DOCUMENT_ROOT'] = '/home/bitrix/www';
}
@arrtemiy
arrtemiy / gist:35c966a2f36bfe7a04abba3175ee0686
Created October 31, 2022 11:27 — forked from arbales/gist:592332
Replace checkbox label to custom background
<html>
<head>
<title>Checkbox</title>
<style>
input[type=checkbox] {
display:none;
}
input[type=checkbox] + label
{
Aug 11 17:10:17.38601 [master] starting task #500 threads: 20
failed start Child: SE::Yandex::Register Error: Cannot init Parser: Error: child_process.spawn is not allowed
at Object.spawn (evalmachine.<anonymous>:1:4458)
at Object.<anonymous> (evalmachine.<anonymous>:1:6374)
at BrowserRunner.start (C:\Users\Администратор\Desktop\aparser\dist\nodejs\node_modules\puppeteer\lib\cjs\puppeteer\node\BrowserRunner.js:95:34)
at ChromeLauncher.launch (C:\Users\Администратор\Desktop\aparser\dist\nodejs\node_modules\puppeteer\lib\cjs\puppeteer\node\Launcher.js:113:16)
at PuppeteerNode.launch (C:\Users\Администратор\Desktop\aparser\dist\nodejs\node_modules\puppeteer\lib\cjs\puppeteer\node\Puppeteer.js:125:31)
at PuppeteerExtra.launch (C:\Users\Администратор\Desktop\aparser\dist\nodejs\node_modules\puppeteer-extra\dist\index.cjs.js:129:41)
at async Function.launchPuppeteer (evalmachine.<anonymous>:1:33732)
at async SE_Yandex_Register.puppeteer_launch (evalmachine.<anonymous>:1:34223)
@arrtemiy
arrtemiy / 1.nginx.conf
Created June 12, 2022 12:38
Laravel NGINX conf for Vesta
server {
listen 111.43.160.59:80;
server_name site.net www.site.net;
return 301 https://site.net$request_uri;
root /home/admin/web/site.net/public_html/public;
index index.php index.html index.htm;
access_log /var/log/nginx/domains/site.net.log combined;
access_log /var/log/nginx/domains/site.net.bytes bytes;
error_log /var/log/nginx/domains/site.net.error.log error;
@arrtemiy
arrtemiy / nginx.conf
Created April 12, 2022 20:17 — forked from ashleydw/nginx.conf
Laravel nginx conf file
server {
listen 80 default_server;
server_name example.com www.example.com;
access_log /srv/www/example.com/logs/access.log;
error_log /srv/www/example.com/logs/error.log;
root /srv/www/example.com/public;
index index.php index.html;