download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
| #.... | |
| export TORQUEBOX_HOME=/opt/torquebox-current | |
| export JBOSS_HOME=$TORQUEBOX_HOME/jboss | |
| export JRUBY_HOME=$TORQUEBOX_HOME/jruby | |
| export PATH=$JRUBY_HOME/bin:$PATH | |
| export JRUBY_OPTS='--1.9 -J-Xmx64m' | |
| export JAVA_OPTS='-Xmx256m -Xms32m' |
| load 'deploy/assets' | |
| namespace :deploy do | |
| namespace :assets do | |
| desc 'Run the precompile task locally and rsync with shared' | |
| task :precompile, :roles => :web, :except => { :no_release => true } do | |
| %x{bundle exec rake assets:precompile} | |
| %x{rsync --recursive --times --rsh=ssh --compress --human-readable --progress public/assets #{user}@#{host}:#{shared_path}} | |
| %x{bundle exec rake assets:clean} | |
| end |
download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
| ''' | |
| This script performs efficient concatenation of files stored in S3. Given a | |
| folder, output location, and optional suffix, all files with the given suffix | |
| will be concatenated into one file stored in the output location. | |
| Concatenation is performed within S3 when possible, falling back to local | |
| operations when necessary. | |
| Run `python combineS3Files.py -h` for more info. | |
| ''' |
| #!/bin/bash | |
| # Thanks to https://gist.github.com/wenzhixin/43cf3ce909c24948c6e7 | |
| # Execute this script in your home directory. Lines 17 and 21 will prompt you for a y/n | |
| # Install Oracle JDK 8 | |
| add-apt-repository ppa:webupd8team/java | |
| apt-get update | |
| apt-get install -y oracle-java8-installer | |
| apt-get install -y unzip make # NDK stuff |
A quick cheatsheet of useful snippet for Flutter
A widget is the basic type of controller in Flutter Material.
There are two type of basic Widget we can extend our classes: StatefulWidget or StatelessWidget.
StatefulWidget are all the widget that interally have a dynamic value that can change during usage. It can receive an input value in the constructor or reference to functions. You need to create two classes like: