Skip to content

Instantly share code, notes, and snippets.

View vrann's full-sized avatar
🌱
Go green

Eugene Tulika vrann

🌱
Go green
View GitHub Profile
@vrann
vrann / spark-master-service.yaml
Created July 8, 2019 18:19
Master Service for Standalone Spark on K8s
kind: Service
apiVersion: v1
metadata:
name: spark-master
spec:
ports:
- name: webui
port: 8083
targetPort: 8080
- name: spark
@vrann
vrann / spark-master-deployment.yaml
Created July 7, 2019 22:02
Master pod for Standalone Spark deployed on K8s
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: spark-master
spec:
replicas: 1
selector:
matchLabels:
component: spark-master
template:
@vrann
vrann / bulk-api.interfaces.php
Last active March 27, 2018 03:22
Bulk API Status Interfaces
<?php
namespace Magento\AsynchronousOperations\Api;
/**
* @api
*/
interface BulkStatusInterface
{
/**
@vrann
vrann / install-magento-docker.MD
Last active June 1, 2018 14:55
Install Magento from GitHub on Docker

Prerequisites

Docker is installed

1. Start Docker Cluster

  1. create directory ~/magento2-docker
  2. add docker-compose.yml to ~/magento2-docker with the following content
version: '3'
services:
@vrann
vrann / QuoteTest.php
Created August 17, 2017 22:59
Integration Test to expose an issue with the multiple save of the Quote with the Configurable product
/**
* @magentoDataFixture Magento/ConfigurableProduct/_files/quote_with_configurable_product.php
*/
public function testSaveQuoteMultipleTimes()
{
/** @var \Magento\CatalogInventory\Model\Stock\Item $stockItem */
$stockItem = Bootstrap::getObjectManager()->create(\Magento\CatalogInventory\Model\Stock\Item::class);
$stockItem->load(10, 'product_id');
@vrann
vrann / elasticsearch-amazon-ec2.sh
Last active May 30, 2017 21:38
Install ElasticSearch 5.4 Amazon AMI
sudo rpm -i https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.4.0.rpm
sudo chkconfig --add elasticsearch
sudo service elasticsearch start
curl localhost:9200
@vrann
vrann / plugins.patch
Created July 7, 2016 21:35
Plugins.patch
Index: app/code/Magento/Cms/Controller/Index/Index.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- app/code/Magento/Cms/Controller/Index/Index.php (revision 151726ac76897cbf6437b9005fabda3305a5ea08)
+++ app/code/Magento/Cms/Controller/Index/Index.php (revision )
@@ -34,6 +34,7 @@
*/
public function execute($coreRoute = null)