Skip to content

Instantly share code, notes, and snippets.

View lloydwatkin's full-sized avatar

Lloyd Watkin lloydwatkin

View GitHub Profile
@lloydwatkin
lloydwatkin / gist:81cb57ef11a9cf11f287
Created July 3, 2014 15:43
Prosody password change error
Jul 03 15:43:09 mod_c2s error Traceback[c2s]: /usr/lib/prosody/modules/mod_register.lua:118: attempt to index a nil value
stack traceback:
/usr/lib/prosody/modules/mod_register.lua:118: in function </usr/lib/prosody/modules/mod_register.lua:85>
(tail call): ?
/usr/lib/prosody/util/events.lua:67: in function </usr/lib/prosody/util/events.lua:63>
(tail call): ?
/usr/lib/prosody/modules/mod_iq.lua:70: in function '?'
/usr/lib/prosody/util/events.lua:67: in function 'fire_event'
/usr/lib/prosody/core/stanza_router.lua:184: in function 'core_post_stanza'
/usr/lib/prosody/core/stanza_router.lua:132: in function </usr/lib/prosody/core/stanza_router.lua:55>
BUILD FAILED
/home/lloyd/.local/lib/android/sdk/tools/ant/build.xml:962: The following error occurred while executing this line:
/home/lloyd/.local/lib/android/sdk/tools/ant/build.xml:973: The following error occurred while executing this line:
/home/lloyd/.local/lib/android/sdk/tools/ant/build.xml:312: com.android.sdklib.build.ApkCreationException: Failed to add /home/lloyd/Dropbox/code/location/go/app/platforms/android/ant-build/HelloCordova.ap_
at com.android.sdklib.build.ApkBuilder.addZipFile(ApkBuilder.java:547)
at com.android.sdklib.build.ApkBuilder.init(ApkBuilder.java:453)
at com.android.sdklib.build.ApkBuilder.<init>(ApkBuilder.java:394)
at com.android.ant.ApkBuilderTask.execute(ApkBuilderTask.java:334)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
Verifying that +lloydwatkin is my Bitcoin username. You can send me #bitcoin here: https://onename.io/lloydwatkin
@lloydwatkin
lloydwatkin / gist:53e7b03118790a2ad6f7
Last active August 29, 2015 14:05
nodejs v0.10.31 segfault dump
lloyd$ lldb -- node
Current executable set to 'node' (x86_64).
(lldb) run /Users/lloyd/.nvm/v0.10.31/bin/npm test
Process 6393 launched: '/Users/lloyd/.nvm/v0.10.31/bin/node' (x86_64)
> [email protected] test /Users/lloyd/code/project
> massah test
debugger listening on port 5858
@lloydwatkin
lloydwatkin / gist:d7a20b2bd4f75dc2eb0d
Created August 20, 2014 12:22
nodejs v0.10.31-debug segfault 11
lloyd$ node -v
v0.10.31
lloyd$ which npm
/Users/lloyd/.nvm/v0.10.31/bin/npm
lloyd$ lldb -- node
Current executable set to 'node' (x86_64).
(lldb) run /Users/lloyd/.nvm/v0.10.31/bin/npm test
Process 86648 launched: '/Users/lloyd/.nvm/v0.10.31/bin/node' (x86_64)
> [email protected] test /Users/lloyd/code/project
debugger listening on port 5858
- Welcome to Massah
Found a .massah.js config file
User Author page
Should show presence buttons
- Given an authenticated user
@lloydwatkin
lloydwatkin / keybase.md
Created August 22, 2014 14:22
keybase.md

Keybase proof

I hereby claim:

  • I am lloydwatkin on github.
  • I am lloydwatkin (https://keybase.io/lloydwatkin) on keybase.
  • I have a public key whose fingerprint is 7456 980E 637A EFA2 F495 FD13 17A0 4D71 EB69 5DBE

To claim this, I am signing this object:

@lloydwatkin
lloydwatkin / gist:065be91bd9cbce9a1ff2
Last active August 29, 2015 14:07
Supplying 'accountsjids' as 'accountjid' results in no response from Prosody + error in logs
Sep 29 08:39:34 mod_c2s error Traceback[c2s]: /usr/lib/prosody/modules/mod_admin_adhoc.lua:174: bad argument #1 to 'ipairs' (table expected, got nil)
stack traceback:
[C]: in function 'ipairs'
/usr/lib/prosody/modules/mod_admin_adhoc.lua:174: in function </usr/lib/prosody/modules/mod_admin_adhoc.lua:168>
(tail call): ?
/usr/lib/prosody/modules/adhoc/adhoc.lib.lua:35: in function </usr/lib/prosody/modules/adhoc/adhoc.lib.lua:27>
(tail call): ?
/usr/lib/prosody/util/events.lua:67: in function </usr/lib/prosody/util/events.lua:63>
(tail call): ?
/usr/lib/prosody/modules/mod_iq.lua:70: in function '?'
@lloydwatkin
lloydwatkin / gist:5b61dc6a02b4e0b75d75
Created October 16, 2014 15:49
Buddycloud channel server docker image
Lloyds-MacBook-Pro:buddycloud-server-java lloyd$ docker run -it -e DATABASE="jdbc:postgresql://some.domain:5432/buddycloud_server?user=buddycloudserver&password=tellnoone" buddycloud/channel-server /bin/bash
Unable to find image 'buddycloud/channel-server' locally
Pulling repository buddycloud/channel-server
f1cd5f674e46: Download complete
511136ea3c5a: Download complete
97fd97495e49: Download complete
2dcbbf65536c: Download complete
6a459d727ebb: Download complete
8f321fc43180: Download complete
03db2b23cf03: Download complete
@lloydwatkin
lloydwatkin / splitter.sh
Last active August 29, 2015 14:07
Split arguments up for vhost substitution
#! /bin/bash
#
# - For example:
#
# VHOSTS="xmpp.surevine.com|locahost:3000|websocket;stats.surevine.com|localhost:8080" ./splitter.sh
#
VHOST_SEPARATOR=";"
PARAM_SEPARATOR="|"