Skip to content

Instantly share code, notes, and snippets.

View imaginator's full-sized avatar
🏗️
building

Simon Tennant imaginator

🏗️
building
View GitHub Profile
@imaginator
imaginator / gist:9991144
Created April 5, 2014 12:03
challenge 2 commands
Using your XMPP account from earlier...
fork the github.com/xmpp-ftw/webrtc-demo
From https://xmpp-ftw.jit.su/manual/core#presence
- Login
- Set Presence (go online)
- Request presence subscription (ask to see the online status of your friend)

Keybase proof

I hereby claim:

  • I am imaginator on github.
  • I am imaginator (https://keybase.io/imaginator) on keybase.
  • I have a public key whose fingerprint is 1194 CD7D F232 C4A4 D91A 7C15 773F 9DE1 BA0C 638A

To claim this, I am signing this object:

@imaginator
imaginator / gist:b244bd157083a97028d0
Created March 4, 2015 12:45
Teaser tasks for Buddycloud-MUC translat-o-matic

We've arranged a few "teaser tasks". These help you understand XMPP, Buddycloud and help us understand your skill level and how well you would "fit" as a GSOC student.

We're here to support you. If you need help starting, you can ask questions in the [email protected] MUC.

Fix a bug

One of the best ways it to try and fix a bug/issue or kink in the system.

Look for "Contributor's wanted" (or if you are feeling brave, other issues) in the following projects:

bash-3.2$ locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
bash-3.2$ gem install nokogiri -v '1.6.6.2'
state_verbose: True
file_client: local
gitfs_provider: gitpython
fileserver_backend:
- roots
- git
master: localhost
file_client: local
# When you have deployed to your Virtual machine you will want
# to manage updates from a private Git reposoitory
# to make this happen commend out the file_roots below
#file_roots:
# base:
gyp ERR! System Linux 3.13.0-44-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/buddycloud-http-api/node_modules/ltx/node_modules/node-expat
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Linux 3.13.0-44-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "i" "."
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
@imaginator
imaginator / gist:a2a71e4ec58b40f5f922
Last active August 29, 2015 14:27
Postgres show who is connected and from where and how many connections
sudo -u postgres psql -c "SELECT usesysid, usename, client_addr, count(usename) FROM pg_stat_activity group by usesysid, usename, client_addr;"
#!/bin/sh
set -xe
# the VDSL2 box is
# Hardwareversion: TD-W9980B(DE) v1 00000000
# Firmwareversion: #0.6.0 2.8 v0022.0 Build 140924 Rel.35045n
# cat <device>.settings| ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected]
# Upgrade build configs