Skip to content

Instantly share code, notes, and snippets.

View avmcf's full-sized avatar

Arlindo Viana avmcf

  • V&C Consultoria Ltda.
  • Brazil
View GitHub Profile
@resarahadian
resarahadian / OpenFile.java
Created March 27, 2012 16:54
Program JFileChooser Java
/*
* @ author Resa C.R
*/
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.UIManager.*;
public class OpenFile extends JFrame
@rodleviton
rodleviton / imagemagick-install-steps
Created May 26, 2014 07:37
Installing Image Magick on Ubuntu 14.04
sudo -i
cd
apt-get install build-essential checkinstall && apt-get build-dep imagemagick -y
wget http://www.imagemagick.org/download/ImageMagick-6.8.7-7.tar.gz
tar xzvf ImageMagick-6.8.9-1.tar.gz
cd ImageMagick-6.8.9-1/
./configure --prefix=/opt/imagemagick-6.8 && make
checkinstall
@reiz
reiz / gist:d67512deee814705134e
Created May 5, 2015 09:29
Vagrantfile for a Java dev. environment with Oracle Java 8 and Eclipse.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |vb|
vb.gui = true
var pageSize = 100; // no more than 1000!!!
var currentPage = 0;
var currentPageSize = -1;
//var q = 'TYPE:"cm:folder" AND cm:created:[MIN TO MAX]';
var q = 'TYPE:"cm:content" AND cm:created:[MIN TO MAX]';
var sort1 = { column: 'cm:created', ascending: true };
var paging = { maxItems: pageSize, skipCount: 0 };
var def = { query: q, store: 'archive://SpacesStore', language: 'fts-alfresco', sort: [sort1], page: paging };