Skip to content

Instantly share code, notes, and snippets.

@chimo
chimo / config.php
Last active January 3, 2016 02:19 — forked from mrvdb/*vc-diff*.diff
Adding the following to SN's config.php should prepend the @-nickname of the person you're replying to in the web-UI's textarea.
function replyAtMention($action) {
$action->inlineScript('(function ($) {
SN.U.NoticeReply = function () {};
$("#content .notice_reply").die("click")
.live("click", function (e) {
e.preventDefault();
var $notice = $(this).closest("li.notice"),
replyNick = "@" + $notice.find(".vcard.author a.url").attr("title");
@chimo
chimo / gnufm2sn.sh
Created December 11, 2012 23:51
bash script to post a gnufm user's top5 artists to statusnet.
#!/bin/bash
# gnufm script
# NOTE: Change these:
fmuser=gnufm_username # Your gnu-fm username
fmhost=gnufm_host # Your gnu-fm host (ex: libre.fm)
snuser=sn_username # Your SN username
snpass=sn_password # Your SN password
snhost=sn_host # Your SN host (ex: identi.ca)
@chimo
chimo / getAliases.php
Created August 8, 2012 01:58
Import StatusNet group aliases to your local instance
<?php
/**
* Quick and dirty script to import StatusNet group aliases to your local instance.
* Could definitely use some improvements, but it seems to works okay for my needs.
*
* HOWTO:
* Change the four variables below to match your configurations and run the script.
*/