Skip to content

Instantly share code, notes, and snippets.

@istvano
istvano / tutorial.md
Created July 20, 2018 16:26 — forked from swalkinshaw/tutorial.md
Designing a GraphQL API

Tutorial: Designing a GraphQL API

This tutorial was created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API.

It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years. The tutorial has evolved and will continue to change in the future so nothing is set in stone.

@istvano
istvano / Makefile
Created January 22, 2018 11:53 — forked from mpneuried/Makefile
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)
@istvano
istvano / keycloack-install
Created February 24, 2017 13:44 — forked from mottyc/keycloack-install
Keycloak server installtion script
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 10.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Dmitriy Sukharev
#date :2016-06-18T02:45-0700
#usage :/bin/bash wildfly-install.sh
#tested-version1 :10.0.0.CR3
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22
#tested-version2 :10.0.0.Final
@istvano
istvano / play.conf
Last active July 6, 2016 08:02 — forked from davidkeen/play.conf
Upstart script for Play Framework 2.2.
description "Play Application Upstart script"
env USER=username
env GROUP=username
env HOME=/your/project/root/folder
env PORT=8080
env ADDRESS=127.0.0.1
env MEM=4096
env PROJECT=project_name
env EXTRA_PARAMS=""
@istvano
istvano / dirwatcher.scala
Created April 2, 2016 19:13 — forked from eberle1080/dirwatcher.scala
Recursive directory watcher in Scala
/**
* dirwatcher.scala
*
* Uses the Java 7 WatchEvent filesystem API from within Scala.
* Adapted from:
* http://download.oracle.com/javase/tutorial/essential/io/examples/WatchDir.java
*
* @author Chris Eberle <[email protected]>
* @version 0.1
*/
@istvano
istvano / introrx.md
Created February 15, 2016 10:33 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing

I've had the opertunity to try a variety of different server configurations but never really got around to trying HHVM with Magento until recently. I thought I would share a detailed walkthrough of configuring a single instance Magento server running Nginx + Fast CGI + HHVM / PHP-FPM + Redis + Percona. For the purpose of this blog post I'm assuming you are using Fedora, CentOS, or in my case RHEL 6.5.

Please note: I'm 100% open to suggestions. If you see something I did that needs to be done a different way, please let me know. I haven't included my Perconca my.conf file yet. I will shortly. Also I plan on trying this same test with HHVM 3.3 and PHP 7.

Install the EPEL, Webtatic, and REMI repos

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
Why is there no such DataImportHandler thing in ElasticSearch? Uhm, well ... but because:
1. You should really consider your own scripts
(be it jvm based, perl, ruby, php, nodejs/javascript)
to feed ElasticSearch via bulk indexing:
http://www.elasticsearch.org/guide/reference/java-api/bulk.html
2. There are two projects doing it already:
* http://code.google.com/p/sql-to-nosql-importer/
* https://github.com/Aconex/scrutineer (keeps DB in synch with ES or solr!)
@istvano
istvano / installcsvfix.sh
Created June 10, 2014 22:00
How to install csvfix on Ubuntu
sudo apt-get install unzip make build-essential
cd /tmp
mkdir csvfix
cd csvfix
wget https://bitbucket.org/neilb/csvfix/get/version-1.6.zip
unzip version-1.6.zip
cd neilb-csvfix-e804a794d175
make lin
cd csvfix/bin
sudo cp csvfix /usr/bin