Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
Experiments in running a headless OpenOffice as a document convertor for TiddlyDocs, etc. | |
Running OpenOffice Headless: | |
$ cd /Applications/OpenOffice.org.app/Contents/program #Mac OSX | |
$ cd /usr/lib/openoffice.org.app/program #CentOS | |
$ ./soffice.bin -headless -invisible -nofirststartwizard -accept="socket,port=8100;urp;" | |
init script: | |
see openoffice.sh xvfb.sh for init.d scripts |
#!/usr/bin/python | |
# rtorrent_xmlrpc | |
# (c) 2011 Roger Que <alerante@bellsouth.net> | |
# | |
# Python module for interacting with rtorrent's XML-RPC interface | |
# directly over SCGI, instead of through an HTTP server intermediary. | |
# Inspired by Glenn Washburn's xmlrpc2scgi.py [1], but subclasses the | |
# built-in xmlrpclib classes so that it is compatible with features | |
# such as MultiCall objects. |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
# -*- coding: utf-8 -*- | |
""" | |
This scripts reqire a third party module 'requests'. | |
You can get it from PyPI, i.e. you can install it using | |
easy_install or pip. | |
http://docs.python-requests.org/en/v0.10.4/ | |
Original source code is written by shin1ogawa, which is in Java. |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
#!/usr/bin/env sh | |
# Download lists, unpack and filter, write to stdout | |
curl -s https://www.iblocklist.com/lists.php \ | |
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| xargs wget -O - \ | |
| gunzip \ | |
| egrep -v '^#' |
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> |
description "faye" | |
version "1.0" | |
author "Adam Crownoble" | |
env LANG=en_US.UTF-8 | |
env APP_ROOT=/srv/rack/faye-server | |
start on startup | |
stop on shutdown |
# Fake email id generator for Gmail | |
# These emails will come to real email id you have provided to this script | |
require 'csv' | |
def generate_fake_emails(email, count = 1) | |
result = [] | |
username, domain = email.split('@') | |
count.times do |c| | |
result << "#{username}+#{c+1}@#{domain}" |
(function ($) { | |
$.fn.highlight = function () { | |
$(this).css({ color: 'red', background: 'yellow' }); | |
$(this).fadeIn(); | |
}; | |
$('.element').highlight(); | |