Skip to content

Instantly share code, notes, and snippets.

View onesup's full-sized avatar

이원섭wonsup Lee/Alfonso onesup

View GitHub Profile
@onesup
onesup / es.sh
Created November 22, 2012 23:59 — forked from aaronshaf/es.sh
Install ElasticSearch on Ubuntu 11.04
cd ~
sudo apt-get update
sudo apt-get install unzip curl python-software-properties -y
#sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin -y
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.18.7.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
@onesup
onesup / README.md
Last active December 17, 2015 06:59 — forked from keikubo/README.md

Nginx + Unicorn for Rails on Rackhub

Description:

This script enables you to launch your Rails application in production environment (port:80) with Nginx and Unicorn.

Installation:

Please make sure that your Gemfile in your rails application includes unicorn.

@onesup
onesup / active_admin.rb
Last active November 1, 2016 04:57 — forked from sj26/uploader_input.rb
Formtastic input for carrierwave uploaders
#when UploaderInput use in ActiveAdmin
form do |f|
image_preview = -> {
if f.object.contents_thumbnail.present?
image_tag(f.object.contents_thumbnail.url)
else
content_tag(:span, "no thumbnail image yet")
end
}