Skip to content

Instantly share code, notes, and snippets.

View lambdabaa's full-sized avatar
🏠
Working from home

Gareth Ari Aye lambdabaa

🏠
Working from home
View GitHub Profile
@lambdabaa
lambdabaa / gist:5572514
Created May 13, 2013 23:49
Adding test agent logging
1949 if (!this.envQueue[envId]) {
1950 console.log('envId = ' + envId);
1951 console.log('currentEnv = ' + currentEnv);
1952 console.log('this.envQueue[envId] = ' + this.envQueue[envId]);
1953 console.log('event = ' + event);
1954 console.log('data = ' + data);
1955 console.log('data.toString() = ' + data.toString());
1956 return console.log(
1957 'Attempting to log an test event for the environment: "' + envId +
1958 '" but it does not exist. stack: \n' + (new Error()).stack
@lambdabaa
lambdabaa / gist:5632738
Created May 23, 2013 04:29
./config nexus-s failure
error: frameworks/base/: prior sync failed; rebase still in progress
project external/bluetooth/bluez/
First, rewinding head to replay your work on top of it...
Applying: B2G Adaptations
Using index info to reconstruct a base tree...
Falling back to patching base and 3-way merge...
Auto-merging src/adapter.c
CONFLICT (content): Merge conflict in src/adapter.c
Recorded preimage for 'src/adapter.c'
Failed to merge in the changes.
# new-emails refers to the text shown on a notification that users
# get when they receive new, unread email. The ui component that utilizes
# this lives in apps/email/js/message_list_topbar.js.
new-emails={[ plural(n) ]}
new-emails[one]=1 New Email
new-emails[other]={{ n }} New Emails
gareth@albi:~/Documents/gaia-email-libs-and-more$ make all-tests
rm -f test-logs/all-imap.log
rm -f test-logs/imap/*.log
rm -rf test-profile
mkdir -p test-profile/device-storage test-profile/fake-sdcard
mkdir -p test-logs/imap
GELAM_TEST_ACCOUNT_TYPE=imap b2g-bindir-symlink/run-mozilla.sh b2g-bindir-symlink/b2g-bin -app /home/gareth/Documents/gaia-email-libs-and-more/test-runner/application.ini -no-remote -profile /home/gareth/Documents/gaia-email-libs-and-more/test-profile --test-config /home/gareth/Documents/gaia-email-libs-and-more/test/config-imap.json
1369878023603 Marionette INFO MarionetteComponent loaded
1369878023604 Marionette INFO marionette enabled
1369878023627 Marionette INFO marionette initializing at final-ui-startup
gareth@albi:~/Documents/gaia-email-libs-and-more$ dovecot
doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-mail.conf line 350: Unknown setting: mailbox
doveconf: Error: managesieve-login: dump-capability process returned 89
doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/01-mail-stack-delivery.conf line 6: ssl_key: Can't open file /etc/ssl/private/ssl-mail.key: Permission denied
@lambdabaa
lambdabaa / gist:5679500
Created May 30, 2013 17:09
/etc/dovecot/users
testy:{PLAIN}testy:1000:::/home/gareth
gareth@albi:~/sdbox/mailboxes/INBOX/dbox-Mails$ dovecot -n
# 2.0.19: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-41-generic x86_64 Ubuntu 12.04.2 LTS
disable_plaintext_auth = no
listen = 127.0.0.1
mail_location = sdbox:~/sdbox
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
passdb {
args = scheme=CRYPT username_format=%u /etc/dovecot/users
##
## Mailbox locations and namespaces
##
# Location for users' mailboxes. The default is empty, which means that Dovecot
# tries to find the mailboxes automatically. This won't work if the user
# doesn't yet have any mail, so you should explicitly tell Dovecot the full
# location.
#
# If you're using mbox, giving a path to the INBOX file (eg. /var/mail/%u)
gareth@albi:/etc/dovecot/conf.d$ tail -f /var/log/mail.log
May 30 11:13:34 albi postfix/error[3267]: BDF977A08A4: to=<gareth@albi>, relay=none, delay=0.02, delays=0.02/0/0/0.01, dsn=5.0.0, status=bounced (albi)
May 30 11:13:34 albi postfix/cleanup[3265]: C17AD7A08A5: message-id=<20130530181334.C17AD7A08A5@albi>
May 30 11:13:34 albi postfix/bounce[3268]: BDF977A08A4: sender non-delivery notification: C17AD7A08A5
May 30 11:13:34 albi postfix/qmgr[25507]: C17AD7A08A5: from=<>, size=1853, nrcpt=1 (queue active)
May 30 11:13:34 albi postfix/qmgr[25507]: BDF977A08A4: removed
May 30 11:13:34 albi postfix/error[3267]: C17AD7A08A5: to=<gareth@albi>, relay=none, delay=0.01, delays=0.01/0/0/0.01, dsn=5.0.0, status=bounced (albi)
May 30 11:13:34 albi postfix/qmgr[25507]: C17AD7A08A5: removed
May 30 11:14:45 albi dovecot: master: Dovecot v2.0.19 starting up (core dumps disabled)
May 30 11:14:46 albi postfix/master[1306]: daemon started -- version 2.9.6, configuration /etc/postfix
May 30 14:27:30 albi dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
May 30 14:27:30 albi dovecot: master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
May 30 14:27:30 albi dovecot: master: Dovecot v2.0.19 starting up (core dumps disabled)
May 30 14:27:37 albi dovecot: imap-login: Login: user=<testy>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=5741, TLS
May 30 14:27:37 albi dovecot: imap(testy): Error: user testy: Couldn't drop privileges: User is missing GID (see mail_gid setting)
May 30 14:27:37 albi dovecot: imap(testy): Error: Internal error occurred. Refer to server log for more information.
May 30 14:27:37 albi dovecot: imap-login: Login: user=<testy>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=5744, TLS
May 30 14:27:37 albi dovecot: imap(testy): Error: user testy: Couldn't drop privileges: User is missing GID (see mail_gid setting)
May 30 14:27:37 albi dovecot: imap(testy): Error: Internal error occurred. Refer to server log for more information.
May 30