This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get -y install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev autoconf libc6-dev libncurses5-dev automake libtool bison subversion | |
$ wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz | |
$ tar xvf yaml-0.1.4.tar.gz | |
$ cd yaml-0.1.4 | |
$ ./configure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install build-essential ruby1.9.1 php5-cli mono-complete mono-vbnc nodejs-legacy openjdk-7-jdk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def trunc(x) | |
(x * 100.0).floor / 100.0 | |
end | |
output = File.open("bestfit2.txt", "w") | |
count, point_count, points, = nil, nil, nil | |
IO.readlines("bestfit.txt").each do |line| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# after sudo apt-get install build-essential zlib1g-dev libpcre3 libpcre3-dev | |
./configure --prefix='/opt/nginx' --with-http_ssl_module --with-http_gzip_static_module --with-cc-opt='-Wno-error' --add-module='/usr/local/lib/ruby/gems/1.9.1/gems/passenger-4.0.1/ext/nginx' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RVM | |
$ rvm get head | |
$ rvm upgrade 1.9.3-p362 1.9.3-p374 | |
(if it's not downloading binaries, using an rvm_make_flags like "-j3" can speed things up. see https://rvm.io/workflow/rvmrc/) | |
rbenv with ruby-build | |
$ cd ~/.rbenv/plugins/ruby-build | |
$ git pull | |
$ rbenv install 1.9.3-p374 MAKE_OPTS="-j3" | |
$ rbenv rehash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export JAVA_OPTS="-client" | |
COLOR1='\[\e[1;32m\]' | |
COLOR2='\[\e[1;1m\]' | |
COLOR3='\[\e[m\]' | |
GIT_STATUS='$(__git_ps1 " %s")' | |
PROMPT_CHAR='\$' | |
PS1="${COLOR1}\u@\h${COLOR3} \w${COLOR2}${GIT_STATUS} ${COLOR3}${PROMPT_CHAR} " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# DEVCON | |
# Maintainer: @bry_bibat | |
# based on https://raw.github.com/gitlabhq/gitlab-recipes/4-2-stable/init.d/gitlab | |
### BEGIN INIT INFO | |
# Provides: devcon | |
# Required-Start: $local_fs $remote_fs $network $syslog | |
# Required-Stop: $local_fs $remote_fs $network $syslog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19:43:29 - INFO - Guard uses Libnotify to send notifications. | |
19:43:29 - INFO - Guard uses TerminalTitle to send notifications. | |
19:43:30 - INFO - Bundle already up-to-date | |
19:43:30 - INFO - Starting Spork for RSpec | |
Using RSpec | |
Preloading Rails environment | |
Loading Spork.prefork block... | |
Spork is ready and listening on 8989! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bundle install --gemfile /home/deploy/apps/devcon/releases/20130508024349/Gemfile --path /home/deploy/apps/devcon/shared/bundle --deployment --quiet --without development test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@companies = Company.includes(:users).all | |
@companies.each do |company| | |
company.users.each do |user| | |
"#{company.name} #{user.name}" | |
end | |
end |