Skip to content

Instantly share code, notes, and snippets.


S.Cherepanov sergeycherepanov

View GitHub Profile
sergeycherepanov / flux.script
Created Jan 14, 2022
InfluxDB Cpu Normalized Value
View flux.script
loadAvarage = from(bucket: "v1_prod_magento")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "system")
|> filter(fn: (r) => r["_field"] == "load1")
|> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)
|> yield(name: "load1")
nCpus = from(bucket: "v1_prod_magento")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
View gist:9c0e71ff555eb9bb2ab1a96b7510bf18
# Akeneo Media
# location /media/ {
# if (!-f $request_filename) {
# rewrite / /index.php last;
# }
# Magento 2 static files
location /static/ {
# Uncomment the following line in production mode
# headless run: bash <(curl -s -L '')
# or
# with specidic dump path: DUMPPATH=/tmp/magento1.sql.gz /bin/bash <(curl -s -L '')
set -x
set -e
[[ -f app/etc/local.xml ]] || { echo "Can't locate the 'app/etc/local.xml'"; exit 1; }
View es.patch
Index: distribution/tools/plugin-cli/src/main/java/org/elasticsearch/plugins/
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
diff --git a/distribution/tools/plugin-cli/src/main/java/org/elasticsearch/plugins/ b/distribution/tools/plugin-cli/src/main/java/org/elasticsearch/plugins/
--- a/distribution/tools/plugin-cli/src/main/java/org/elasticsearch/plugins/ (revision ef48eb35cf30adf4db14086e8aabd07ef6fb113f)
+++ b/distribution/tools/plugin-cli/src/main/java/org/elasticsearch/plugins/ (date 1610434469093)
@@ -350,10 +350,10 @@
UserException {
sergeycherepanov /
Created Nov 8, 2020 — forked from naveenkrdy/
To fix adobe products crashes on AMD hackintosh

Adobe Crash Fix XLNC


  1. Install needed adobe apps from adobe creative cloud.

  2. Open Terminal.

  3. Copy-paste the below command to your terminal and run it (enter password if asked).

View gist:1f43dcca03e2a07b6e05620bafab1db4
if [[ -z $1 ]]; then
echo "Domain name does not provided"
exit 1
if cat "/usr/local/etc/openssl/localCA/index.txt" | grep ${DOMAIN}; then
View main.dart
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
// This app is a stateful, it tracks the user's current choice.
class BasicAppBarSample extends StatefulWidget {
_BasicAppBarSampleState createState() => _BasicAppBarSampleState();
sergeycherepanov / AdobeFixAMD
Created May 10, 2020 — forked from XLNCs/AdobeFixAMD
To fix adobe products crashes on AMD hackintosh
View AdobeFixAMD
USAGE : Open terminal and run the below commands as required.
NOTE: File path changes in each version release. So if the file is not found you can find the specified file manually and replace the path in the below commands.
You can also use this command to find the location of a specific adobe file :
eg:- if you want to search for MMXCore then run this command :
find /Applications/Adobe* -type f -name "MMXCore" | sed 's/ /\\ /g'
Photoshop crash fix :-
View vim.patch
diff --git src/auto/configure src/auto/configure
index 907ec6c..cb65afd 100755
--- src/auto/configure
+++ src/auto/configure
@@ -11834,6 +11834,7 @@ else
# include <stddef.h>
#include <signal.h>
+#include <bits/sigaction.h>
sergeycherepanov /
Last active May 16, 2020
Ryzen-AMD-OSX Hackintosh(Ryzentosh) docker workaround