Skip to content

Instantly share code, notes, and snippets.

cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below
# NEW WAY / EASY WAY
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.deb
sudo dpkg -i elasticsearch-1.0.1.deb
@hardywu
hardywu / gist:10758513
Created April 15, 2014 18:49
Cal-Am241.asc
Apr 14 2013 01:42:20 am Elt: 00703 Seconds
ID: No spectrum identifier defined
Memory Size: 1024 Chls Conversion Gain: 1024 Adc Offset: 0000 Chls
Chn Counts ROI
0, 0 000
1, 0 000
2, 0 000
3, 0 000
4, 0 000

Apr 16 2013 01:32:21 am Elt: 01000 Seconds ID: No spectrum identifier defined Memory Size: 1024 Chls Conversion Gain: 1024 Adc Offset: 0000 Chls

Chn    Counts  ROI
  0,        0  000
  1,        0  000
  2,        0  000
  3,        0  000
  4,        0  000

Apr 21 2013 00:12:13 am Elt: 00066 Seconds ID: No spectrum identifier defined Memory Size: 1024 Chls Conversion Gain: 1024 Adc Offset: 0000 Chls

Chn    Counts  ROI
  0,        0  000
  1,        0  000
  2,        0  000
  3,        0  000
  4,        0  000

Apr 21 2013 00:21:18 am Elt: 00157 Seconds ID: No spectrum identifier defined Memory Size: 1024 Chls Conversion Gain: 1024 Adc Offset: 0000 Chls

Chn    Counts  ROI
  0,        0  000
  1,        0  000
  2,        0  000
  3,        0  000
  4,        0  000
PREFIX="/usr/local"
RBENV_PREFIX="$PREFIX/rbenv"
BIN_PATH="$PREFIX/bin"
RBENV_GROUP="rbenv"
umask 002
## Install rbenv, ruby-build and rbenv-gem-rehash
git clone git://github.com/sstephenson/rbenv.git $RBENV_PREFIX
@hardywu
hardywu / dropdown.js.coffee
Last active August 29, 2015 14:04
angular dropdown directive
'use strict';
app.directive 'dropdown', ['$document', ($document) ->
restrict: "CA"
scope: false
link: (scope, element, attrs) ->
scope.isOpen = false
closeDropdown = (event) ->
if event && event.isDefaultPrevented()
return
@hardywu
hardywu / bash_profile
Created September 23, 2014 17:55
bash codes to color terminal fonts
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'
@hardywu
hardywu / t.rb
Created October 31, 2014 20:38
dcf
https://slack-files.com/files-pub/T02HN3AC9-F02SRGE8E-0aa045/lunchbox-v3.png
2015-05-11 02:21:51 -0400
./configure
--disable-debug
--prefix=/Users/hardy/local/Cellar/postgresql/9.4.1_1
--datadir=/Users/hardy/local/Cellar/postgresql/9.4.1_1/share/postgresql
--docdir=/Users/hardy/local/Cellar/postgresql/9.4.1_1/share/doc/postgresql
--enable-thread-safety
--with-bonjour
--with-gssapi