w/ VirtualBox Guest Additions 4.3.0 and Ruby 1.9.3p448
$ vagrant box add debian-7.2.0-amd64 https://copy.com/boEwdI9nWrrh
w/ VirtualBox Guest Additions 4.3.0, Ruby 1.9.3p448 and Chef 11.6.2
$ echo $rvm_path | |
/Users/sandro/.rvm | |
$ rvm info | |
ruby-1.9.3-p448: | |
system: | |
uname: "Darwin MacBook-Pro-de-Sandro.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64" | |
system: "osx/10.7/x86_64" |
Package Control: Fetching list of available packages | |
Platform: osx-x64 | |
Sublime Text Version: 2221 | |
Package Control Version: 2.0.0 | |
Package Control: Download Debug | |
URL: https://sublime.wbond.net/channel.json | |
Resolved IP: 50.116.34.243 | |
Timeout: 30 | |
Package Control: Urllib Debug Proxy | |
http_proxy: |
{ | |
"auto_upgrade_last_run": null, | |
"debug": true, | |
"installed_packages": | |
[ | |
"Alignment", | |
"ApplySyntax", | |
"BracketHighlighter", | |
"Clipboard History", | |
"ColorPick", |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "debian-7.2.0-amd64" | |
config.vm.network :private_network, ip: "10.10.10.2" | |
config.vm.synced_folder ".", "/vagrant", nfs: true |
if [ -f ~/.profile ]; then | |
. ~/.profile | |
fi |
#!/bin/bash | |
START_TIME=$SECONDS | |
clear | |
echo -e "Starting...\n" | |
# your statements here! |
gem install nokogiri -- --with-xml2-include=/usr/local/opt/libxml2/include/libxml2 \ | |
--with-xml2-lib=/usr/local/opt/libxml2/lib \ | |
--with-xslt-dir=/usr/local/opt/libxslt \ | |
--with-iconv-include=/usr/local/opt/libiconv/include \ | |
--with-iconv-lib=/usr/local/opt/libiconv/lib |
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U postgres -d nome_do_banco arquivo.dump |
private LazyDataModel<Cidade> cidadesLazy; | |
@SuppressWarnings("serial") | |
public LazyDataModel<Cidade> getCidadesLazy() { | |
if (cidadesLazy == null) { | |
cidadesLazy = new LazyDataModel<Cidade>() { | |
@Override | |
public List<Cidade> load(int primeiroRegistro, int totalRegistros, String campoOrdenacao, SortOrder tipoOrdenacao, Map<String, Object> filtros) { | |
List<Cidade> lista = repository.buscaPaginada(primeiroRegistro, totalRegistros, campoOrdenacao, tipoOrdenacao, filtros); | |
int totalRegistrosFiltrados = repository.quantidadeRegistros(filtros); |