Skip to content

Instantly share code, notes, and snippets.

View shinusuresh's full-sized avatar
👋

Shinu Suresh shinusuresh

👋
View GitHub Profile
pip freeze > requirements.txt
sudo -E pip install -r requirements.txt --user
Stop and remove all containers
sudo docker stop $(sudo docker ps -a -q)
sudo docker rm $(sudo docker ps -a -q)
Run JHipster registry Image
sudo docker run -d --name jhipster-registry -p 8761:8761 [IMAGE ID]
Attach console
sudo docker exec -i -t 665b4a1e17b6 /bin/bash
Listing node
/_nodes?pretty=true
Listing all indices
/_cat/indices?v
Cluster health
/_cat/health?v
List contents in an index
#!/bin/bash
# The logic to start up your application should be put in this
# script. The application will work only if it binds to
chmod +x $OPENSHIFT_REPO_DIR/diy/elasticsearch/bin/elasticsearch
nohup $OPENSHIFT_REPO_DIR/diy/elasticsearch/bin/elasticsearch > $OPENSHIFT_DIY_LOG_DIR/server.log 2>&1 &
@shinusuresh
shinusuresh / designer.html
Last active June 27, 2016 09:35
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../paper-radio-group/paper-radio-group.html">
<link rel="import" href="../paper-radio-button/paper-radio-button.html">
<polymer-element name="my-element">
<template>
<style>