Skip to content

Instantly share code, notes, and snippets.

Avatar
:bowtie:
Focusing

S.Cherepanov sergeycherepanov

:bowtie:
Focusing
View GitHub Profile
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
View m1dumper.sh
#!/bin/bash
#
# headless run: bash <(curl -s -L 'https://bit.ly/m1dumper')
# or
# with specidic dump path: DUMPPATH=/tmp/magento1.sql.gz /bin/bash <(curl -s -L 'https://bit.ly/m1dumper')
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/InstallPluginCommand.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/distribution/tools/plugin-cli/src/main/java/org/elasticsearch/plugins/InstallPluginCommand.java b/distribution/tools/plugin-cli/src/main/java/org/elasticsearch/plugins/InstallPluginCommand.java
--- a/distribution/tools/plugin-cli/src/main/java/org/elasticsearch/plugins/InstallPluginCommand.java (revision ef48eb35cf30adf4db14086e8aabd07ef6fb113f)
+++ b/distribution/tools/plugin-cli/src/main/java/org/elasticsearch/plugins/InstallPluginCommand.java (date 1610434469093)
@@ -350,10 +350,10 @@
UserException {
@sergeycherepanov
sergeycherepanov / AdobeAMDFix.md
Created Nov 8, 2020 — forked from naveenkrdy/AdobeAMDFix.md
To fix adobe products crashes on AMD hackintosh
View AdobeAMDFix.md

Adobe Crash Fix XLNC

Instructions

  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
#!/bin/bash
if [[ -z $1 ]]; then
echo "Domain name does not provided"
exit 1
fi
DOMAIN=$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 {
@override
_BasicAppBarSampleState createState() => _BasicAppBarSampleState();
@sergeycherepanov
sergeycherepanov / AdobeFixAMD
Created May 10, 2020 — forked from XLNCs/AdobeFixAMD
To fix adobe products crashes on AMD hackintosh
View AdobeFixAMD
___ADOBE CRASH FIX BY XLNC___
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>
#endif
#include <signal.h>
+#include <bits/sigaction.h>
@sergeycherepanov
sergeycherepanov / ryzentosh-docker.md
Last active May 16, 2020
Ryzen-AMD-OSX Hackintosh(Ryzentosh) docker workaround
View ryzentosh-docker.md
@sergeycherepanov
sergeycherepanov / setup.md
Created May 5, 2020 — forked from novemberborn/setup.md
OS X Redirect ports 80 and 443 to 8080 and 8443 respectively
View setup.md

Changes with .dev domains in mind.

Create /etc/pf.anchors/dev, containing:

rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
rdr pass inet proto tcp from any to any port 443 -> 127.0.0.1 port 8443