Skip to content

Instantly share code, notes, and snippets.

View marzzz21's full-sized avatar

Marcelito S. de Guzman marzzz21

  • Synacy
View GitHub Profile
hubot@8568c7b64391:~/hubot$ npm uninstall express
- express node_modules/express
hubot@8568c7b64391:~/hubot$ npm install express --save
npm ERR! path /home/hubot/hubot/node_modules/express/bin
npm ERR! code ENOTEMPTY
npm ERR! errno -39
npm ERR! syscall rmdir
npm ERR! ENOTEMPTY: directory not empty, rmdir '/home/hubot/hubot/node_modules/express/bin'
npm ERR! A complete log of this run can be found in:
hubot@8568c7b64391:~/hubot$ npm uninstall express
- express node_modules/express
hubot@8568c7b64391:~/hubot$ npm install express --save
npm ERR! path /home/hubot/hubot/node_modules/express/bin
npm ERR! code ENOTEMPTY
npm ERR! errno -39
npm ERR! syscall rmdir
npm ERR! ENOTEMPTY: directory not empty, rmdir '/home/hubot/hubot/node_modules/express/bin'
npm ERR! A complete log of this run can be found in:
Sending build context to Docker daemon 57.34 kB
Step 1/17 : FROM ubuntu
---> 0ef2e08ed3fa
Step 2/17 : RUN apt-get update
---> Using cache
---> b474bce9606e
Step 3/17 : RUN apt-get -y install curl vim
---> Using cache
---> a439ce1f5ec0
Step 4/17 : RUN curl -LO https://nodejs.org/dist/v4.1.2/node-v4.1.2-linux-x64.tar.gz && tar zxvf node-v4.1.2-linux-x64.tar.gz && /bin/bash -c "cp -a node-v4.1.2-linux-x64/{bin,include,lib,share} /usr" && rm node-v4.1.2-linux-x64.tar.gz
2.3.0 :001 > class SummaryRow
2.3.0 :002?> attr_accessor :user_id, :name
2.3.0 :003?> def +(row)
2.3.0 :004?> newRow = SummaryRow.new
2.3.0 :005?> newRow.user_id = @user_id
2.3.0 :006?> newRow.name = @name
2.3.0 :007?> return newRow
2.3.0 :008?> end
2.3.0 :009?> end
=> :+
SELECT fm.user_id, fm.send_to as number, fma.result, fma.scheduled_start_time, fma.total_fax_duration, (SELECT t.amount from chargeable chrgble left join transactable trnsctble on chrgble.id = trnsctble.id left join transaction_reference tr on trnsctble.id = tr.transaction_item_id left join transaction t on tr.id = t.reference_id WHERE t.credit_bank_id IN (SELECT credit_bank.id from credit_bank left join money_credit_bank on credit_bank.id = money_credit_bank.id where t.credit_bank_id = credit_bank.id) As user_charged FROM fax_message_attempt fma LEFT JOIN fax_message fm on fma.fax_message_id = fm.id WHERE fma.result IS NOT NULL and fm.status = 'DONE' AND fma.scheduled_start_time >= $1 AND fma.scheduled_start_time < $2
SELECT fm.user_id, fm.send_to as number, fma.result, fma.scheduled_start_time, fma.total_fax_duration, (SELECT t.amount from chargeable chrgble left join transactable trnsctble on chrgble.id = trnsctble.id left join transaction_reference tr on trnsctble.id = tr.transaction_item_id left join transaction t on tr.id = t.reference_id WHERE t.credit_bank_id IN (SELECT credit_bank.id from credit_bank left join money_credit_bank on credit_bank.id = money_credit_bank.id where t.credit_bank_id = credit_bank.id) As user_charged FROM fax_message_attempt fma LEFT JOIN fax_message fm on fma.fax_message_id = fm.id WHERE fma.result IS NOT NULL and fm.status = 'DONE' AND fma.scheduled_start_time >= $1 AND fma.scheduled_start_time < $2
SELECT fm.user_id, fm.send_to as number, fma.result, fma.scheduled_start_time, fma.total_fax_duration, (SELECT t.amount from chargeable chrgble left join transactable trnsctble on chrgble.id = trnsctble.id left join transaction_reference tr on trnsctble.id = tr.transaction_item_id left join transaction t on tr.id = t.reference_id WHERE t.credit_bank_id IN (SELECT credit_bank.id from credit_bank left join money_credit_bank on credit_bank.id = money_credit_bank.id where t.credit_bank_id = credit_bank.id) As user_charged FROM fax_message_attempt fma LEFT JOIN fax_message fm on fma.fax_message_id = fm.id WHERE fma.result IS NOT NULL and fm.status = 'DONE' AND fma.scheduled_start_time >= $1 AND fma.scheduled_start_time < $2
[Unit]
Description=Mirror Sync Script
Documentation=https://github.com/Synacy/rise-mirror-script
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/mirror/current/bin/mirrorsyncd start
ExecReload=/usr/local/mirror/current/bin/mirrorsyncd reload
| Failure: resize should set the new image's width to the desired width
and the height to the (desiredWidth / baseAspectRatio) when
the desiredAspectRatio is lesser than the baseAspectRatio.[0](com.synacy.whitelabel.util.FileUtilsSpec)
| java.lang.OutOfMemoryError: PermGen space
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1184)
at com.synacy.whitelabel.util.FileUtils.processImage(FileUtils.groovy:165)
at com.synacy.whitelabel.util.FileUtils.drawBaseImageToRescaledBuffer(FileUtils.groovy:131)
2016-12-13 20:24:55,569 [main] DEBUG test.TimeLoggingSpecification - slow unit test for 'resize should set the new image's width to the desired width
and the height to the (desiredWidth / baseAspectRatio) when
the desiredAspectRatio is lesser than the baseAspectRatio.[0]' [19503ms].
| Error Error running forked test-app: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: No Dialect mapping for JDBC type: 1111 (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while se