Skip to content

Instantly share code, notes, and snippets.

View dklisiaris's full-sized avatar

Dimitris Klisiaris dklisiaris

View GitHub Profile
@dklisiaris
dklisiaris / start_elasticsearch.sh
Created January 5, 2015 16:32
Elasticsearch seems to start only with this command.
sudo start-stop-daemon --start -b --user elasticsearch -c elasticsearch --pidfile /var/run/elasticsearch.pid --exec /usr/share/elasticsearch/bin/elasticsearch -- -d -p /var/run/elasticsearch.pid --default.config=/etc/elasticsearch/elasticsearch.yml --default.path.home=/usr/share/elasticsearch --default.path.logs=/var/log/elasticsearch --default.path.data=/var/lib/elasticsearch --default.path.work=/tmp/elasticsearch --default.path.conf=/etc/elasticsearch
{
"6":{"ddc":"370","text":"Εκπαίδευση. Παιδαγωγική","parent":"26"},
"2666":{"ddc":"370","text":"Εκπαίδευση2. Παιδαγωγική","parent":"48"},
"48":{"ddc":"300","text":"Κοινωνικές επιστήμες","parent":null},
"26":{"ddc":"370","text":"Εκπαίδευση3. Παιδαγωγική","parent":"2666"},
"2400":{"ddc":"800","text":"Λογοτεχνία","parent":null},
"2693":{"ddc":"860","text":"Ισπανική, ισπανόφωνη και πορτογαλική λογοτεχνία","parent":"2400"},
"2710":{"ddc":"863","text":"Ισπανική και ισπανόφωνη πεζογραφία","parent":"2693"},
"8527":{"ddc":"863","text":"Ισπανόφωνη πεζογραφία","parent":"2710"},
"1460":{"ddc":"863","text":"Ισπανόφωνη πεζογραφία (Περού)","parent":"8527"},
@dklisiaris
dklisiaris / rails-boilerplate.md
Last active August 18, 2017 05:58
A manual setup for a typical rails 4.x. app with bootstrap layout, devise authentication, rspec testing framework with capybara and git version control.

Setup a new project and database.

Create a new rails app named app_name without Test::Unit and with mysql database:

rails new app_name -T -d mysql

or an app without Test::Unit and with postgresql database:

rails new app_name -T -d postgresql

or without Test::Unit and with the default sqlite: