Skip to content

Instantly share code, notes, and snippets.

View tolgagokmen's full-sized avatar

Tolga Gokmen tolgagokmen

View GitHub Profile
sudo apt-get update
sudo apt-get install openjdk-8-jdk -y
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.0.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
sudo mv elasticsearch-* elasticsearch
sudo mv elasticsearch /usr/local/share
curl -L http://github.com/elasticsearch/elasticsearch-servicewrapper/tarball/master | tar -xz
@tolgagokmen
tolgagokmen / CSV_to_Vcards.py
Created May 6, 2018 19:07 — forked from Pullusb/CSV_to_Vcards.py
python utils convert CSV files to vcf cards
# -*- coding: utf-8 -*-
#python 3.x
import csv
import sys
#convert a "comma separated values" file to vcf contact cards
#USAGE:
#CSV_to_Vcards.py CSV_filename
@tolgagokmen
tolgagokmen / index.html
Created May 6, 2018 18:50 — forked from puentesarrin/index.html
TornadoMail demo using a tornado.template.Loader.
<html>
<head>
<title>TornadoMail Demo</title>
</head>
<body>
<form method="post" action="/">
<input type="text" name="subject"/>
<input type="text" name="email"/>
<input type="submit" value="Send message"/>
</form>
@tolgagokmen
tolgagokmen / nginxproxy.md
Created April 21, 2018 13:08 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers