This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## Mailbox locations and namespaces | |
## | |
# Location for users' mailboxes. The default is empty, which means that Dovecot | |
# tries to find the mailboxes automatically. This won't work if the user | |
# doesn't yet have any mail, so you should explicitly tell Dovecot the full | |
# location. | |
# | |
# If you're using mbox, giving a path to the INBOX file (eg. /var/mail/%u) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/perl | |
# put into the public domain by Bruce Guenter <bruceg@em.ca> | |
# based heavily on code by Russell Nelson <nelson@qmail.org>, also in | |
# the public domain | |
# NO GUARANTEE AT ALL | |
# | |
# Creates a maildir from a mbox file | |
# Assumes that nothing is trying to modify the mailboxe | |
# version 0.00 - first release to the public. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jshint indent:2 */ | |
/*global Packages */ | |
// Sample JavaScript CORBA/IIOP code for JDK 8 and Domino 9.0.2 | |
// Run with jrunscript -cp DOMINO_JARS corbatest.js | |
// where DOMINO_JARS contains Domino.jar and NCSO.jar from your Domino server | |
// install. | |
/** | |
* Opens a connection to a Domino server via CORBA/DIIOP, and returns a Domino |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
CMDNAME=`basename $0` | |
GROUP=$1 | |
REPODIR=$2 | |
if [ -z $REPODIR ]; then | |
echo "usage: $CMDNAME <group> <dir>" | |
echo "creates a shared Git repository for group <group> in the specified directory" | |
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- XPages source for REST service. --> | |
<xp:view xmlns:xp="http://www.ibm.com/xsp/core" rendered="false"> | |
<xp:this.afterRenderResponse><![CDATA[#{javascript: | |
com.ath0.xrest.Service.dispatch(); | |
}]]></xp:this.afterRenderResponse> | |
</xp:view> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# encoding: UTF-8 | |
# The audit team wanted to know that we were doing logging as required. As | |
# evidence, they asked for a regular report consisting of the first 10 lines | |
# of each daily log file. I wrote this script to automate the process. | |
# If you want the last 10 lines instead, I suggest the Ruby Gem called Elif, | |
# which wraps any IO object to read line by line backwards. | |
LINES_OF_LOG = 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# An example of BluePages / IBM Intranet Password authentication using Ruby. | |
# Uses the gem ruby-ldap, a Ruby wrapper for OpenLDAP. Works with Ruby 2.0. | |
# | |
# To get this code to work, you must | |
# | |
# 1. gem install ruby-ldap | |
# 2. add | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# encoding: UTF-8 | |
# Google Reader to Evernote | |
# Quick hack together of a Ruby script which will pull all your Google Reader | |
# starred items into an Evernote notebook in ENML (Evernote export format). | |
# Requires Ruby 2.0, no other special dependencies. Should work on 1.9 but I | |
# haven't tested it. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# encoding: UTF-8 | |
# Convert FLAC files to mp3 files, keeping metadata from the FLAC files. | |
# | |
# Requires that FLAC (including metaflac) and LAME tools be installed | |
# and on the path. | |
# | |
# Takes any number of .flac files on the command line. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# encoding: UTF-8 | |
# Notice I set UTF-8 as the default above. As far as I'm concerned there | |
# are two choices of encoding: UTF-8, and legacy crap. If I need to deal | |
# with anything else I'll handle it explicitly, as in this example. | |
# Open an ISO-8859-1 file. | |
infile = File.open("iso88591.txt", "r:iso-8859-1") |