rej tries to merge simple patch-rejects and then run a merge program so the
changes can be verified. It is not meant to resolve complex problems that
would not be immediately obvious to the programmer, the goal instead is to
quickly fix the easy problems.
rej understands both unified and context diffs.
There are four basic rejects fixable via rej.
1. missing context at the top or bottom of the hunk
2. different context in the middle of the hunk
3. slightly different lines removed by the hunk than exist in the file
4. Large hunks that might apply if they were broken up into smaller ones
rej also allows you to tag hunks in a reject with special processing
hints.
Useful task libraries and methods for Capistrano
From the safecat README:
safecat is an implementation of D. J. Bernstein's maildir algorithm.
It can be used to write mail messages to a qmail-style maildir, or to
write data to a "spool" directory reliably. There are no lockfiles with
safecat, and nothing is left to chance. If safecat returns a successful
exit status, then you can be (practically) 100% sure your data is
safely committed to disk. Further, if data is written to a directory
using safecat (or other implementations of the maildir algorithm),
then every file in that directory is guaranteed to be complete. If
safecat fails to write all of the data, there will be no file at all
in the destination directory.
Of course, you know that such a thing cannot be: between UNIX and
the different hardware options available, a 100% guarantee is not
possible. However, safecat takes every precaution possible in writing
your data.
The samefile program finds files with identical contents (independent of
file name). Typical usage would be
find / -print | samefile
turning up megabytes of wasted disk space due to duplicates. Try it,
you'll be baffled.
SameSame is a collection of tools that fall in to the category of file
management software. These tools will prevent that you need to delete
files or buy more disk space. Instead they solve low disk space problems
by linking identical files together and thus free up waisted disk space.
This collection was inspired by the application samefile written by Jens
Schweikhardt. The collection comes with its own version of samefile that
is noticeable faster and is able to process a much larger file list.
This port containt two set of application: the first are duplicate files
finder search for identical files and the second are duplicate file
removers perform some kind of action based on those results.
Typical usage would be: find / | samefile -i | sameln
This would search for identical files and clean up wasted disk space by
linking them together. If you prefer removing one of the identical file,
then you should replace sameln with samerm. You can add the option -vn
after both application for a verbose dry-run.
Please see the man page samesame for a introduction to all applications.
Capistrano::Harrow is a plugin for tighter integration with Harrow.io whilst
using Capistrano.
Harrow.io is a continuous integration and deployment solution for people who
like software that works like Capistrano does.
Capistrano is a standalone utility that can also integrate nicely with
Rails. You simply provide SwitchTower with a deployment "recipe" that
describes your various servers and their roles, and voila! You magically
have single-command deployment. It even allows you to roll a bad version
out of production and revert back to the previous release.
ChefAPI is a tiny, dependency-minimal Ruby client for interacting with a
Chef Server. It adopts many patterns and principles from Ruby On Rails.
Self-contained, easy-setup, fast-start in-memory Chef server
for testing and solo setup purposes
scan_ffs(8) recovers accidential lost or deleted disklabels.
This is the life-saver of typos. If you have ever been working too long,
and just happened to type 'disklabel -rw da0 floppy', instead of 'diskla-
bel -rw fd0 floppy', you know what I am talking about.
This little program will take a raw disk device (which you might have to
create) that covers the whole disk, and finds all probable UFS/FFS parti-
tions on the disk. It has various options to make it go faster, and to
print out information to help in the reconstruction of the disklabel.
Ported from OpenBSD to FreeBSD 4/5 with support for UFS1 and UFS2.