start new:
tmux
start new with session name:
tmux new -s myname
source :rubygems | |
gem 'cfoundry' | |
gem 'uuidtools' |
$scope.getCellText = function(key) { | |
if ( key ) { | |
return "Do stuff"; | |
} | |
}; | |
$scope.theData = {}; | |
$scope.theGrid = { | |
data: 'theData', | |
columnDefs: |
#!/home/mqtester/.rvm/wrappers/ruby-1.9.2-p290@mqtester/ruby | |
# encoding: utf-8 | |
require "rubygems" | |
require "amqp" | |
@exchange_name = "amq.rabbitmq.trace" | |
class Consumer | |
def handle_message(metadata, payload) |
I hereby claim:
To claim this, I am signing this object:
FROM postgres:9.3 | |
MAINTAINER krujos | |
ENV PGDATA /var/lib/postgresql/data #Why do I need this? | |
RUN chown -R postgres "$PGDATA"; gosu postgres initdb; sed -ri "s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" "$PGDATA"/postgresql.conf ; { echo; echo 'host all all 0.0.0.0/0 trust'; } >> "$PGDATA"/pg_hba.conf | |
RUN ( chown -R postgres "$PGDATA"; gosu postgres postgres & sleep 2 ; psql -U postgres -c "create user schedule_user;"; psql -U postgres -c "alter user schedule_user password 'schedule_password';"; psql -U postgres -c "create database schedule with owner schedule_user;"; ) | |
ENTRYPOINT ["/docker-entrypoint.sh"] | |
EXPOSE 5432 |
/** | |
* Checks if everything except id's and results are equal! | |
* An example of using the stream operator and a couple of gauva and apache | |
* language extensions to implement an equality check. We create a pair for | |
* each thing we want to compare then stream through and assert that | |
* everything matches the equality test. We use the hash code in the | |
* equality test as it's a little less finicky for equality tests. This is a | |
* pretty expensive and heavy weight implementation, not because of the | |
* functional stuff, but because of all the intermediary objects created. As | |
* this is example code we don't sweat the efficiency. A simpler |
for f in *.tiff ; convert $f `(echo $f | sed -e 's/tiff/png/') `; |
import org.apache.log4j.Logger; | |
public class RedisCloudConfig extends AbstractCloudConfig { | |
private Logger log = Logger.getLogger(RedisCloudConfig.class); | |
//... | |
} |
export BUNDLE_GEMFILE=/home/tempest-web/tempest/web/bosh.Gemfile | |
alias bosh='bundle exec bosh' |