Skip to content

Instantly share code, notes, and snippets.

@Lokutus
Lokutus / DocumentCollectionEnumeration
Last active December 17, 2015 13:48
Enumeration using irritating lotus.domino.DocumentCollection
Document doc;
Document document = collection.getFirstDocument();
while (document != null) {
// do something
doc = collection.getNextDocument();
document.recycle();
document = doc;
}
@larsar
larsar / shared_folder_centos_virtualbox.txt
Created January 27, 2012 08:04
Mount shared folder on CentOS in VirtualBox
# The VirtualBox documentation[1] for how to install guest additions
# for Linux on a virtual host is somewhat messy. So here is what
# I did to make it work.
# Install the packages required
yum update
yum install gcc kernel-devel make
reboot
@machal
machal / index.css
Created November 11, 2011 12:18
CSS gallery with rounded corners on images and enlargement on hover. More at www.vzhurudolu.cz/test/image-gallery-enlarge-on-hover/
/* --------------------------------------------------------------------------------
Photo gallery
Find "-->" symbol and change image thumbnail/full size and urls.
CSS author: Martin Michalek, [email protected]
More: www.vzhurudolu.cz/test/image-gallery-enlarge-on-hover/
*/
/* Photo wrapper */
@nzakas
nzakas / gist:1164118
Created August 23, 2011 01:47
Ant target for autogenerating changelog based on Git tags
<!--
Ant target for autogenerating a changelog based on Git tags
Workflow:
1. Do all of your checkins for a given version.
2. When you're ready to officially create a new version, tag it using git tag, such as "git tag v0.3.0".
3. If you don't already have a file named CHANGELOG in the root directory, make one.
4. Run "ant changelog.update"