ecting spam a few years ago, and I use a Bayesian filter
called ifile to handle junk. I trained it using just over 117,000 crapmail
messages, and I don't get a lot of spam these days...
http://www.dnaco.net/~vogelke/Software/Internet/Servers/Mail/Spam/Ifile/
--
Karl Vogel
his, but maybe there is another way,
A> perhaps using a shell script. Any thoughts?
The script below is in Perl, but converting it to Python probably wouldn't
be too difficult.
--
Karl Vogel I don't speak for the USAF or my company
Loch Ness monster
, which
gives us a nice file history and takes care of most recovery problems.
With two servers, I can use basic UFS filesystems and get fine I/O
performance with minimum maintenance.
--
Karl Vogel I don't speak for the USAF or my company
The first product Motoro
g stored these days,
that capability (in any filesystem) is going to be crucial.
--
Karl Vogel I don't speak for the USAF or my company
I think that's how Chicago got started. A bunch of people in New York
said, "Gee, I'm enj
terribly clean (from an IT perspective) where I work, and I'm
not exactly in the backwoods of America.
V> The room is not possible :|, that would have been great. What do you
V> think about a rack of some sort?
Make sure your rack has plenty of room for ventilation. My only
aid community can be a bit, um, brusque, but the Qmail
Handbook and the "Life with Qmail" webpage filled in the blanks for me.
>> Qmail has a very limited set of features...
It's intended to handle one problem well, which it does. If you have
some other requiremen
forwarded or handled by a program. "Rcpt to:" always returns
ok unless the address itself is mangled. The VRFY command is always
answered like this to keep people from harvesting addresses:
vrfy
252 send some mail, i'll try my best
--
Karl Vogel
D/DVD:
#/dev/acd0/cdrom cd9660 ro,noauto 00
#
# CD/DVD/RW:
#/dev/cd0 /cdrom cd9660 ro,noauto 00
# -----
--
Karl Vogel I don't speak
789]\)/ \1/')
SMSO=$(tput smso)
RMSO=$(tput rmso)
cal | sed -e 's/^/ /' -e "3,\$s/ ${DAY}/ ${SMSO}${DAY}${RMSO}/"
exit 0
--
Karl Vogel I don't speak for the USAF or my company
Letterman's top signs your cat is trying to kill you #9
nd as much time polishing
the heads waiting for something to write.
--
Karl Vogel I don't speak for the USAF or my company
The RAID was dirty *and* degraded (insert "your mom" joke here).
--Mike Markley on Slashdot discussing Linux dr
nt of space?
http://www.cs.indiana.edu/~kinzler/align/
Align is a general-purpose text filter tool that helps vertically align
columns in string-separated tables of input text. You can direct how
the columns are separated on input and rejoined in the aligned output.
It
fields in a column that has a few
T> really long strings in it. thanks for pointing me to it. i'll see if i
T> can't figure out the script and how to modify it to add this trick.
It would be lots easier to write a smaller script which finds and chops
the columns you like, an
eading
algorithm, as described by http://www.jwz.org/doc/threading.html.
See http://search.cpan.org/ to track it down.
--
Karl Vogel I don't speak for the USAF or my company
Cute Celebrity Couple Names #4: Naomi Wa
n use pipermail to generate the threading
information I need.
--
Karl Vogel I don't speak for the USAF or my company
If men ruled the world #4: Instead of beer belly, you'd get "beer biceps."
___
freebsd-questi
lke/src/toolbox/perl/rename.txt
I put up most of the scripts in my ~/bin directory for examination here,
if anyone's interested:
http://www.pobox.com/~vogelke/src/toolbox/
The descriptions are NOT complete, but they're getting there.
--
Karl Vogel I
e already in the habit of writing BASH and you have /bin/ksh
installed, running "ksh -n" will syntax-check your script without
executing it. I *think* pdksh does the same thing.
--
Karl Vogel I don't speak for the USAF or my company
My choices in life w
* You can use this to create your locate DB, if you want to avoid a
second pass through the filesystem.
* Gives you a point-in-time picture of ownership, mode, etc. in case
you need to back out your changes.
--
Karl Vogel I don't speak for the USAF or my compa
>> On Thu, 07 Jun 2012 19:15:25 -0400,
>> Fbsd8 said:
F> dmesg command does not show date of last boot. Are there some other
F> commands to find date of last boot?
Try "last reboot".
--
Karl Vogel I don't speak for the USAF or my com
'%d-%b-%Y %T' /var/run/dmesg.boot
-rw-r--r-- 1 root wheel 6319 10-Jan-2012 14:56:45 /var/run/dmesg.boot
--
Karl Vogel I don't speak for the USAF or my company
Dirt and grease under the fingernails is a social no-no, as they tend to
detract from a woman
http://arstechnica.com/gadgets/guides/2011/03/ars-system-guide-march-2011-edition.ars/
--
Karl Vogel I don't speak for the USAF or my company
We are reluctant to admit that we owe our liberties to men of a type that
today we hate and fear - unruly men, disturbers of the p
mp/AFTER
me% comm -23 /tmp/AFTER /tmp/BEFORE > TARGETS
me% rm /tmp/AFTER /tmp/BEFORE
Running "xargs rm < TARGETS" (and/or "rmdir") gives me a pristine source
directory. Sure, you can just remove the whole thing and unpack a clean
tarball, but this is e
sanity check to make sure your build config file has been checked in.
--
Karl Vogel I don't speak for the USAF or my company
Mr. Rogers was an ordained minister.--item for a lull in conversation
ed since the previous run. If your system is really active,
you'll have to tweak that.
Over-engineered? Probably, but the combination of no user education plus
safely running *one* copy of a backup job (or whatever) on user logo
and I get ~18% smaller files using xz instead of bzip2. I know disk
space is cheap, but our rack space is limited.
--
Karl Vogel I don't speak for the USAF or my company
> Sorry I'm taking up your ever so valuable disk space!
That's okay, /dev/
/path/to/apache /path/to/apache.bin
root# cat /path/to/apache
#!/bin/sh
exec /usr/bin/truss -o /tmp/apache$$ -f /path/to/apache.bin
exit 1
--
Karl Vogel I don't speak for the USAF or my company
The freshmen bring a little knowledge in and the
quot;insert" mode with
the cursor at the beginning of the last line.
--
Karl Vogel I don't speak for the USAF or my company
Leighton Meester beats her mom in court
--Dec 2011 headline that really could have been phrased better
__
l to bash with any
D> symlinking of /usr/local/bin/bash to /bin/sh.
Do you have the Korn shell installed? I've found that to be a nice
compromise for scripts that have bash-isms.
--
Karl Vogel I don't speak for the USAF or my company
Texted a frien
monitoring system there, and send the message from there. This way,
the original logs are more likely to be intact when you investigate.
--
Karl Vogel I don't speak for the USAF or my company
Some guy just yelled at me for texting a
t;stat info" to mean "info you can
get from something that calls stat()". The script below runs on BSD,
Linux, or Solaris if you have GNU find installed. Season to taste.
--
Karl Vogel I don't speak for the USAF or my company
Mom was so ove
log file
http://serverfault.com/questions/44/
What tool do you use to monitor your servers?
--
Karl Vogel I don't speak for the USAF or my company
John, this smells worse than your uncle's codpiece (which I wish you would
stop wearing t
een-oriented program for extracting URLs from text files, putting
them in a menu, and letting you run a command to view a specific item.
If you're on a FreeBSD system, it's in /usr/ports/textproc/urlview.
--
Karl Vogel I don't speak for the USAF or my compa
gz
> scp /tmp/copy/$b.pax.gz wherever # and remove it
> rm $file
> done
--
Karl Vogel I don't speak for the USAF or my company
Why no one ever uses the Restroom on "Star Trek" #7:
Special effects dept. draws a blank on Hi-tec
setopt notify # tell me when a job finishes
setopt rcquotes # '' = single quote in single-quoted strings
unsetopt bgnice # don't run background jobs at lower priority
--
Karl Vogel I don't speak f
Apart from that, all I can think of is to save the ACLs using getfacl
and then restore them later using something like the script below.
--
Karl Vogel I don't speak for the USAF or my company
The ultimate result of shielding men from th
ome
directory and files owned by the user and the default user's group:
# awk '{print "chown -R", $1"."$2, $3}' /tmp/pw | sh
# rm /tmp/pw
--
Karl Vogel I don't speak f
. \n
017
The "-0" says read null-terminated lines, so if your binary file is big
enough and has few enough nulls, you could chew up a diaper-load of memory.
--
Karl Vogel I don't speak for the USAF or my company
A raccoon tangled with a 23,000 vol
*) exec <"$1"; shift ;;
esac
case "$1" in
"") ;;
*) exec >"$1" ;;
esac
wc # or whatever
exit 0
--
Karl Vogel I don't speak for the USAF or my company
We seem not to have learned a basic
amp;& cat $@ | exec $0 && exit 0
IFS=$'\n'
while read data; do
echo "$data"
done
exit 0
Resetting IFS is only necessary if you want to preserve whitespace in
each line. Putting $data in quotes prevents any shell metacharacters
from be
t.
Try the .procmailrc skeleton below. The .whitelist and .blacklist files
hold email addresses (one per line) that you want to pass or block,
respectively. Logfiles are stored in the user's ~/mail directory.
--
Karl Vogel I don't speak for the USAF o
abbled in reply:
D> I seem to remember /usr/bin/find doing this dynamically by expanding
D> columns as it saw values that were larger than the previous max, but
D> apparently not (I just tested it).
I believe you're thinking of "file".
--
Karl Vogel
Developers for Selling User IDs
Mon, 1 Nov 2010
Facebook has banned a number of developers from connecting to the social
network for six months after it learned that they had been selling user
information to data brokers.
--
Karl Vogel I don't speak for
fdc34a5a5df7807d4fc45739d2d3039f /tmp/dir.md5
If I copy these files elsewhere, I can repeat the steps and just compare
the final hash; if it's anything other than 'fdc34...3039f', something's
wrong.
--
Karl Vogel I don't speak f
7; > /tmp/sig2
Associate the duplicates with files:
me% join /tmp/sig[12]
ddbed53e795724e4a6683e7b0987284c ./authlog
ddbed53e795724e4a6683e7b0987284c ./cmdlog
If your filenames contain whitespace, you can URL-encode them, play some
games with awk, or use perl.
--
Karl Vogel
>> /tmp/sig1
^^^^
--
Karl Vogel I don't speak for the USAF or my company
When I'm feeling down, I like to whistle. It makes the neighbor's dog
run to the end of his chain and gag himself.
"tmp/foo/filename12345" exists and that I have read access to it?
I'd just call open() with O_RDONLY and if it fails, check errno for
EACCESS (you don't have permission) or ENOENT (doesn't exist).
--
Karl Vogel I don't speak for the USAF or my
/truss -f -o /tmp/local$$ /where/ever/localmailer.bin ${1+"$@"}
exit 0
--
Karl Vogel I don't speak for the USAF or my company
He fell for her like his heart was a mob informant, and she was the
East River.
be orthogonal to security restrictions on it
and this is the case with the WN server.
...
--
Karl Vogel, ASC/YCOAI don't speak for the USAF or my company
[EMAIL PROTECTED] http://www.dnaco.net/~voge
ome
directory and files owned by the user and the default user's group:
# awk '{print "chown -R", $1"."$2, $3}' /tmp/pw | sh
# rm /tmp/pw
--
Karl Vogel I don't speak f
d pretty well for me in the past.
It's simple and quick. I'd create 256 directories (0x00 - 0xff),
and use the last byte from the hash value of each domain name to
determine the directory. Examples below.
--
Karl Vogel I don't speak for the USAF or my c
as only brought me documents which further confuse me.
http://www.dnaco.net/~vogelke/Software/Internet/Servers/Mail/Spam/
has my installation and setup notes for both SpamAssassin and ifile.
I like ifile much better; it's a Bayesian filter which has dropped my
spam down to just about
nvenient
J> way of administering your system.
http://www.dnaco.net/~vogelke/Software/Configuration_Management/System_Files
describes my setup. All it does is keep a chosen set of files under RCS
control.
--
Karl Vogel ASC/YCOA, Wright-Patterson AFB, OH 45433
[EMAIL PROT
mes, you'll either have to use perl or
do something dopey like this:
#!/bin/sh
cd /data
find . -type d -print | nawk -v sq=\' '{
printf "getfacl %s%s%s | setfacl -d -b -n -M - %s%s%s\n",
sq, $0, sq, sq, $0, sq}' | sh -x
exit 0
--
Karl
sockets and protocols
* Thread, process and mutex functionality
* Shared memory functionality
* Time routines
* User and group ID services
--
Karl Vogel I don't speak for the USAF or my company
Difference between airplanes and women #4:
Airplanes don't o
,
I could send HUP to PGID 198 instead of using four kill commands.
There's a perl version of "kill" included in Perl power tools. I made
some minor changes to use process groups instead:
http://www.pobox.com/~vogelke/src/toolbox/perl/killpg.txt
--
Karl Vogel
>> On Wed, 21 Apr 2010 09:53:00 +0200,
>> Erik Norgaard said:
E> I need to create a user profile that works in different shells,
E> particularly bash, csh and ksh. It seems that these does not read the
E> same files and/or in the same order. So, how do I configure the shell
E> profiles without
utput block) in dump used to be 10, but you
could go as high as 64. Check the -b option.
* Use "gzip -1q" for speed at the cost of slightly less compression.
"compress -c" also works very well on dump images, and it's fast.
--
Karl Vogel
gning = auto
client use spnego = Yes
client schannel = Auto
server schannel = Auto
--
Karl Vogel I don't speak for the USAF or my company
Suggested names for Walmart Wine #13: White Trashfindel
___
inspection is error-prone at best, and makes scripting
D> unecessarily complicated.
Agreed. That's why I always install the GNU coreutils package, which
includes the "md5sum" program.
--
Karl Vogel I don't speak for the USAF or my company
If men ruled th
My favorite article comment:
"If I'm still doing this in 21 years, someone please write a
program to kill me."
--
Karl Vogel I don't speak for the USAF or my company
Oh anchor bimbo,
The gleam from your whitened teeth
Gi
logger -t test "$$ is a daemon, args $@"
;;
1) echo "$$ not a daemon, args $@"
DAEMON=yes daemon $0 ${1+"$@"}
;;
esac
exit 0
me% ./doit a b c
18131 not a daemon, args a b c
me% tail -1 /var/log/syslog
Jun 5
ot;stop" && echo stopped at user request && exit 1
This way, you can just "touch stop" if something goes to hell instead
of having to grub around in the process table.
--
Karl Vogel I don't speak for the USAF or my compa
ss multiple lines
{
$prev = $1; # text before
print "$prev";
}
print "$_\n"; # whatever's left over.
exit(0);
--
Karl Vogel I don't speak for the USAF or my company
Progra
g this in the script
J> to be executed is no option.
I have two scripts for this; one handles the last day of the month,
and the other handles the last work/business day of the month.
http://www.hcst.net/~vogelke/src/lastday/
--
Karl Vogel I don't speak for th
ing journal pages, or do they
contain text? If the latter, you could use something like xapian or
hyperestraier to make a full-text index of your files.
--
Karl Vogel I don't speak for the USAF or my company
Top oxymorons #22: Childproof
__
stuffed the drives in, and
installed FreeBSD-7.1. My only problem so far has been a BIOS issue, but
IBM site-support has been great.
--
Karl Vogel I don't speak for the USAF or my company
Golfer: "Do you think I can get there with a 5-iron?
Caddy: "E
again.
At this point, I was in dependency hell. I tried messing with the load
and include compiler flags to get to the versions under /opt/sfw, but
I had no luck. There's probably some really easy way to build this,
or I could just build the required libraries, but I didn
$sum = $byte + 65587 * $sum;
}
$sum &= 0x;# keep lowest 16 bits
no integer;
return sprintf("%4.4x", $sum);
}
me% ./mkchunks freebsd solaris
16/f7.zip freebsd
ca/1f.zip solaris
If you want to keep an eye on some hosts without doing a full Nagios install:
http://www.hcst.net/~vogelke/src/ishostup/
--
Karl Vogel I don't speak for the USAF or my company
If you can't be kind, at least have the decency to be vague.
:
map E
oi+1+2+3+4+5+6+7+
I like my paragraphs ragged-right, around 75 columns long. This lets me
reformat whatever paragraph I'm in by pressing 'v':
map v }jmbk{ma}:'a,.!fmt -1^V|fmt -75'b
safe, check the argument count
when you run something:
#!/bin/bash
set X `date` # should give 6 tokens plus X.
case "$#" in
1) echo "command didn't print anything" ;;
7) echo "success: $*"; echo "year should be 7th arg: $7&
I botched the filter example in my previous blathering. This will ignore
output from find containing patterns:
root# find . -depth -print | fgrep -v -f /some/patterns
Leaving off the -v will keep output containing those patterns.
--
Karl Vogel I don't speak for the
u change directories.
chpwd () {
/bin/pwd >> ~/.cdlist.new
}
To find the most often-used directories, the "chdir" and "chpwd"
functions above will store the name of every directory you cd to in
"$HOME/.cdlist.new". To find your
ercase, timeouts, default
answers if return is hit, and limiting answers to given character
sets. For example, "grabchars -c 0123456789 -n2 -t10" get two numbers
with a 10-second timeout.
--
Karl Vogel I don't speak
ource.
I tried a bootonly CD image, but it came back with "Missing operating
system". Fortunately I was able to boot from a backup root partition,
copy loader.old to loader, and reboot normally.
--
Karl Vogel I don't speak for the USAF or my co
d the ease of
J> spreading an attack. (Yes, I'm assuming what you're actually
J> running)
You can fix the security problems by dumping Bind and using djbdns.
It's very easy to set up a caching nameserver without using all the
memory on your system. See
>> On Jul 13, 2009, at 6:27 PM, Karl Vogel wrote:
K> You can fix the security problems by dumping Bind and using djbdns.
>> On Tue, 14 Jul 2009 10:16:24 +0200, Ruben de Groot replied:
R> What security problems? This one ? :)
R> http://blogs.zdnet.com/security/?p=2812
boot.
The hardware's been checked, and the firmware's all up to date.
I don't know if an x3250 and an x3400 are close enough hardware-wise
for this to matter.
--
Karl Vogel I don't speak for the USAF or my company
on the same line as you can if you're looking to mirror a site. I
don't know how to make curl do something like walking a directory for a
recursive download.
You can get the source at http://curl.haxx.se/download.html
--
Karl Vogel I don't spea
I use to handle quoted-printable stuff:
#!/usr/bin/perl
#decode(\*STDIN, \*STDOUT);
exit(0);
--
Karl Vogel I don't speak for the USAF or my company
My name is not "Dr. Death". --written on blackboard by Bart Simpson
___
be
"ls" that's affected here. That's why I use 1,000 as a rule of thumb
for the maximum number of files I put in a directory.
A longer-term fix for your client would be to break up that JPEG file
list into smaller sets based on (say) date or image topic or whatever
>> On Thursday 23 July 2009 09:41:26 Karl Vogel wrote:
K> Every version of Unix I've ever used had an upper limit on the size of
K> the argument list you could pass to a program, so it won't just be "ls"
K> that's affected here. That's why I use 1,000
>> Karl Vogel wrote:
K> The main reason I stick with 1000 is because directories are read
K> linearly unless you're using something like ReiserFS...
>> On Sun, 26 Jul 2009 08:34:50 +0100,
>> Matthew Seaman said:
M> You mean filesystems like FreeBSD UFS2 w
ere are a few examples of what you can do with it:
http://www.hcst.net/~vogelke/src/editors/vim/vimrc/
--
Karl Vogel I don't speak for the USAF or my company
Chemists wash their hands BEFORE they go to the bathroom.
hat command line with GNU tar versions 1.14 and
1.22. I'd grab the source and upgrade if I were you:
http://ftp.gnu.org/gnu/tar/tar-1.22.tar.gz
--
Karl Vogel I don't speak for the USAF or my company
The glue on Israeli postage is certified ko
a Dell GX260 for my workstation since 2003,
and I've had no hardware problems running two versions of FreeBSD,
one version of OpenBSD and one version of Solaris-10. Two other 260s
have been file-servers since 2004.
--
Karl Vogel I don't speak for the USAF or my com
distclean
If you have GNU tar installed:
root# help2man /usr/local/bin/gtar > /usr/local/man/man1/gtar.1
--
Karl Vogel I don't speak for the USAF or my company
Things that never happen in "Star Trek" #16:
Counsellor Troi states somet
tc/crontab or you might have duplicated cronjobs
running simultaneously.
I use the file header beneath my signature for crontab files, so I
don't forget what field goes where. It's also handy to define an
environment variable in case a program should behave differently w
>> On Tue, Aug 11, 2009 at 07:21:08PM -0400, Karl Vogel typed:
K> If you're using individual crontab files, be sure to rename /etc/crontab
K> or you might have duplicated cronjobs running simultaneously.
>> On Wed, 12 Aug 2009 11:31:14 +0200, Ruben de Groot
>> sa
e a fact of life. There were
lots of programs around for conversion to/from 32-bit words, just so
we could talk to everybody else on Earth.
--
Karl Vogel I don't speak for the USAF or my company
Men are liars. We'll lie about lying if we have to. I'm a
gle something:
root# mkdir /etc.orig
root# cd /etc
root# find . -print | pax -rwd -pe /etc.orig
After all my tweaks are in place, user accounts installed, etc., I run
the script below to get a new table-of-contents. Then I can compare the
two MD5 files to see exactly what I'
D-specific bad
J> behavior.
http://www.theopensourcerer.com/2008/04/17/a-shared-drop-box-using-samba/
has some suggestions that might help.
--
Karl Vogel I don't speak for the USAF or my company
:-{8Person who is unhappy with the results of her
breast-
code?
A nilsimsa code is something like a hash, but unlike hashes, a small
change in the message results in a small change in the nilsimsa code.
Such a function is called a locality-sensitive hash.
--
Karl Vogel I don't speak for the USAF or my comp
; holds patterns (one per line) for
messages that should get immediate attention. The patterns are mostly
email addresses or words consistently found in subject lines.
The "xnote" program is simply a driver for "xalarm", which displays an
X-windows popup message.
--
, or whose
company is funding the purchase (same thing).
--
Karl Vogel I don't speak for the USAF or my company
vogelke at pobox dot com http://www.pobox.com/~vogelke
I forgot and left the lighthouse on all night.
Next day the
ader ...
tr -d '%' | # ... kill the percent sign ...
awk '$4 < 10 && \
$5 >= 99 {print $6}'`# ... and print the filesystem.
case "X$str" in
X) ;;
*) $DF $str | mailx -s
tp://junkfoo.com/";
> Site this
And finally http://junkfoo.com/";>Site this
--
Karl Vogel I don't speak for the USAF or my company
The average person falls asleep in seven minutes.
--item for a lull in
"$@" >& 2
exit 1
}
test -f /etc/passwd || die "Your system is seriously hosed"
--
Karl Vogel I don't speak for the USAF or my company
If men ruled the world #12: Instead of wasting money on an expens
in
"") interactive code here ;;
yes) ;;
esac
...or get rid of it.
--
Karl Vogel I don't speak for the USAF or my company
Man who live in glass house, dress in basement. --Bryan Albright
--
oc.a: malloc.o
rm -f libmalloc.a
ar q libmalloc.a malloc.o
malloc.o: malloc.c
$(CC) -O -c -I. malloc.c
To build something using configure and this library, change the configure
commands to include these environment variables:
LDFLAGS="-L/usr
rks like a charm.
http://home.gna.org/drall/ was the original link, but it doesn't seem
to be working today, so you might want to Google "drall 1.17" and grab
it from a mirror.
--
Karl Vogel I don't speak for the USAF or my company
He can compress th
1 - 100 of 123 matches
Mail list logo