portmaster irc/irssi
portmaster irc/irssi-xmpp
brew install irssi
#!/bin/bash | |
################################################################ | |
##### script to backup lucene index from elastic search #### | |
################################################################ | |
# Shamelessly copied from https://gist.github.com/nherment/1939828 | |
NOW=`date +%Y%m%d%H%M%S` |
FULLNAME=`finger "$USER" | awk -F: '{ print $3 }' | head -n1 | sed 's/^ //'` | |
# Git needs to know who you are! | |
git config --global user.name "${FULLNAME}" | |
git config --global user.email "${USER}@newrelic.com" | |
# SVN style shortcuts | |
git config --global alias.st status | |
git config --global alias.ci commit | |
git config --global alias.co checkout |
global | |
maxconn 10000 # Total Max Connections. This is dependent on ulimit | |
nbproc 2 | |
defaults | |
mode http | |
option redispatch | |
maxconn 2000 | |
contimeout 5000 | |
clitimeout 50000 |
# irssi-xmpp plugin required | |
# http://cybione.org/~irssi-xmpp/ | |
servers = ( | |
{ | |
address = "chat.facebook.com"; | |
chatnet = "facebook"; | |
password = "<password>"; | |
autoconnect = "true"; | |
}, | |
{ |
cd ~ | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre-headless -y | |
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.5.2.deb | |
sudo dpkg -i elasticsearch-1.5.2.deb | |
sudo service elasticsearch start |
[[email protected] www]$ cat .htaccess | |
RewriteEngine on | |
RewriteCond %{QUERY_STRING} resource=acct:(.+) | |
RewriteRule ^\.well-known/webfinger /profile/%1? [L] | |
[[email protected] www]$ cat profile/[email protected] | |
{ | |
"subject": "acct:[email protected]", | |
"links": [ | |
{ |
Here is a list of implementations: http://www.packetizer.com/webfinger/
import org.apache.hadoop.conf.Configuration; | |
import org.apache.hadoop.io.*; | |
import org.apache.hadoop.mapreduce.Mapper; | |
public class SolrMapper extends Mapper<LongWritable, Text, Text, Text> { | |
private HttpSolrServer solrServer; | |
private Text outKey = new Text(); | |
@Override |
#!/bin/sh | |
# | |
# Copyright (c) 2010 Nokia Corporation | |
# | |
# This code is licensed to you under MIT-style license. License text for that | |
# MIT-style license is as follows: | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights |