noste
# This version is obviously unsafe
verbose_sed() {
sed -i.old -e "$1" "$2"
diff -u "$2.old" "$2"
rm "$2.old"
}
verbose_sed s/vim/emacs/g rant.txt
You could then use all the tools that we already have for working with patches: colordiff to colorize the output, diffstat for a summary of changes, patch -R for reverting the changes, and so on.Of course, you're more likely to than not already using version control, which gives you all this and much more, even if you were to use vanilla find+sed.
I'm somewhat saddened to see that they don't own dd.sh domain anymore. It was at least twice as cute as no.de is :)
1. http://git.kernel.org/?p=linux/kernel/git/torvalds/tracker.g...
2. http://git.kernel.org/?p=linux/kernel/git/torvalds/pesconver...
3. http://git.kernel.org/?p=editors/uemacs/uemacs.git;a=summary
That being said, there is interesting stuff to be done without DIY surgeries. For example, Christina Kubisch used to auralize electromagnetic fields using some portable gear, and wander around urban areas listening sounds made by security systems, WLAN hotspots, and the like (see interview here: http://www.christinakubisch.de/pdf/Kubisch_Interview.pdf ).
"Yeah, there is. First, doing it with SSH+keys requires either multi-step (which is annoying, esp. for copying files), or exposing each servers SSH to the net (which might be unfeasible if you don't have public IPs for everything)."
You can work around much of the annoying stuff in multi-step setups by using SSH's ProxyCommand configuration variable. For example, you could have something like this in your local .ssh/config:
Host prod-db
ProxyCommand ssh bastion nc -w1 %h %p
After which 'ssh prod-db' and 'scp prod-db:...' work as if the bastion host wasn't between you and prod-db."Second, getting a dump of a table from your MySQL DB with SSH+keys:"
If you can access prod-db with SSH, you can dump the database with a single command:
$ ssh prod-db mysqldump what-i-need > file.sqlAt least some router manufacturers have also released source code as required by the GPL. For example, see D-Link http://tsd.dlink.com.tw/GPL.asp and Cisco http://homesupport.cisco.com/en-us/gplcodecenter .
On a karmic box:
$ apt-get source libfreetype6
$ grep -h TT_CONFIG_OPTION_BYTECODE freetype-2.3.9/debian/patches-freetype/*
-/* #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
+#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER1. https://payments.amazon.com/sdui/sdui/helpTab/Amazon-Flexibl...
2. http://www.boingboing.net/2006/06/29/google-launches-pred.ht...
What about the audit studies that would appear to indicate otherwise? For example, an audit study from 2004 states in its abstract that "White names receive 50 percent more callbacks for interviews. Callbacks are also more responsive to resume quality for White names than for African American ones. The racial gap is uniform across occupation, industry, and employer size."[1], and earlier experiment would appear to show that white applicants with criminal records are called back slightly more often than black applicants without one[2].
1. Bertrand and Mullainathan: "Are Emily and Greg More Employable than Lakisha and Jamal? A Field Experiment on Labor Market Discrimination" http://www.economics.harvard.edu/faculty/mullainathan/files/...
2. Devah Pager: "The mark of a criminal record" http://www.irp.wisc.edu/publications/focus/pdfs/foc232i.pdf
David Wellington (http://www.davidwellington.net/) has written a number of zombie novels that were first published in serialized form online and subsequently in print.
What would be the OCaml solution for the problem that unwind-protect solves? In Haskell, I would use bracket, and appropriately the API documentation of bracket gives the definition of withFile as an example:
withFile name mode = bracket (openFile name mode) hClose
(see http://haskell.org/ghc/docs/latest/html/libraries/base/Contr...)Going by the stats at http://felonvoting.procon.org/viewresource.asp?resourceID=28... felony disenfranchisement is not that popular in western democracies.
Debian has http://backports.org/ ("Backports are recompiled packages from testing (mostly) and unstable (in a few cases only, e.g. security updates), so they will run without new libraries (wherever it is possible) on a stable Debian distribution.")