ted using xterm, I couldn't copy with the mouse and drag past
the top or bottom of the screen. The workaround for me is to single-click
anywhere in the terminal history, go where I want, then right-click once
and the whole area between clicks is copied.
I'm including my .Xdefaults in case
efox. That doesn't
cause me any problems until I've been running for 20-25 days, as long
as I force everything off swap periodically.
--
Karl Vogel I don't speak for anyone but myself
May someone replace your printer's standard ink with a foul, vengeful tar
made from discarded Waffle House cooking oil. --James Mickens
e system thinks you're doing. If Wayland, "xev"
might work; you could also try "wshowkeys".
--
Karl Vogel I don't speak for anyone but myself
I got a dog and named him 'Stay'. Now, I go 'Come here, Stay!' After a
while the dog went insane and wouldn't move at all. --Steven Wright
ot;Sorry, $file is open - close Firefox"; break ;;
1|2) echo $file; echo 'vacuum;' | sqlite3 $file ;;
*) echo "[$@]: fuser $file did something weird"; break ;;
esac
done
Hope this helps.
--
Karl Vogel I don't speak
g. Memory is half full, and swap is about 10% used. When I kill
> Firefox and restart, things go back to normal for a few hours.
Try going to "about:memory" and clicking "Minimize Memory Usage".
I noticed that Firefox removed the (useful) ability to limit the
number o
excfile="/usr/local/etc/${tag}-exclude"
test -s "$excfile" || { echo die screaming; exit 1; }
...
rsync -anuv --exclude-from="$excfile" "$source" "$destination"
--
Karl Vogel I don't speak for anyone but myself
COMMENT: That's an amazing deal, would snap it up if I had the money.
REPLY: You can eat next month.--Reddit on buying storage, 21 Nov 2024
rm.VT100*colorULMode:on
XTerm.VT100*underLine: off
! Uncomment this to use color for the bold attribute
XTerm.VT100*colorBDMode:on
Hope this helps.
--
Karl Vogel I don't speak for anyone but myself
Please whit
change to an /etc file:
root# mkdir /etc.orig
root# cd /etc
root# find . -print | cpio -pdum /etc.orig
HTH.
--
Karl Vogel I don't speak for anyone but myself
CEO assistant: "please reset CEO's password, he's too drunk to remember it."
here, but it resolves
syslog LOG_MAIL
remove_bcc_headers off # Bcc to myself for an accurate copy
from mick.cr...@gmail.com
auth on
user mick.crane
password m/d4sS2aQiCfML# or whatever you use to authenticate...
"msmtp" is pretty much set and forget.
--
and using something like safesys() would:
* let systemctl write something (hopefully an error message),
* show exactly what arguments are being passed to it, and
* show its exit value.
--
Karl Vogel I don't speak for anyone but myself
In [the movie] "Seven", I put it in my contract:
The wife's head stays in the box.
--Brad Pitt on early contract negotiations
se it's bitten me in the ass before; any
metacharacters in any argument cause the whole thing to be passed to a
shell, which can result in all sorts of entertainment. If I ever have
to use it in a perl script, I make a safe wrapper. I've attached a
small example.
--
Karl Vogel
The first entry in the "RULES" section shows how to put iptables
stuff in its own "firewall" log.
--
Karl Vogel I don't speak for anyone but myself
Photographing a volcano is just about the most miserable t
all screen.
Have you tried some different fonts? My eyesight is poor, and a good
font made all the difference.
https://bezoar.org/posts/2023/0214/font-screenshots/
--
Karl Vogel I don't speak for anyone but myself
Debugging: when you're the detective, the victim,
This is how I keep a long-term record of bash commands from different
sessions:
https://www.reddit.com/r/bash/comments/ak9c3r/
HTH
--
Karl Vogel I don't speak for anyone but myself
Comment: I use a screwdriver a lot
Reply: I'm all out of orange juice. Wil
>> On Thu, May 16, 2024 at 09:48:23AM -0400, to...@tuxteam.de wrote:
> Actually I've been tempted to teach my mail reader to transform HTML
> into some lightweight markup (yeah, you need a bit of heuristics for
> that ;-) -- say Org, but why not its poor sister Markdown.
https://github.com/aaro
t from source is easy.
https://invisible-island.net/archives/xterm/xterm-390.tgz{,.asc}
--
Karl Vogel I don't speak for anyone but myself
My mind is like my browser: 19 open tabs, three of them are frozen, and
I have no clue where the music is coming from.
user_pref("font.name.serif.x-western", "DejaVu Serif");
user_pref("font.size.fixed.x-western", 18);
user_pref("font.size.variable.x-western", 18);
--
Karl Vogel I don't speak for anyone but myself
Slogan of 105.9, the classic rock radio station in Chicago:
"Of all the radio stations in Chicago...we're one of them."
On Tue, Jan 23, 2024 at 06:05:29AM -0500, gene heskett wrote:
> On 1/23/24 00:30, Karl Vogel wrote:
> >>> On 1/22/24 11:31, gene heskett wrote:
> >
> > G> How does an 8T backup server sound for another $200 in hdwe? Very
> > G> enticing and I do have the sh
you buy two, use one for a complete backup and the other for
incrementals or differentials? (I know, more than $200...)
--
Karl Vogel I don't speak for anyone but myself
I yam Popeye of Borg. You will be askimilgrated.
7;
> > Sadly it looks like I'll need to do this daily,
>
> It's the browsers eating your memory. That's what they do.
I've had problems with Firefox eating my swap on both Linux and FreeBSD.
My fix has been to run the swap2ram script below hourly.
--
Karl
er factor, desktops are bigger than laptops, so
> there is room for more hard drives, optical drives, more PCI cards etc.
It gives me a big monitor, a good mouse, and a keyboard that doesn't suck.
--
Karl Vogel I don't speak for anyone but myself
Drunk Gri
On Thu, Oct 12, 2023 at 11:22:00AM -0400, Erwan David wrote:
> I use a script to run borg backup. For it to be able to backup files that
> only root may read, i use sudo --preserv-env=BORG_REPO,BORG_PASSPHRASE.
>
> However I see that in the logs the VALUE of the env variable is loggued. How
> to c
2nd October, 2023:
sunrise at 07:33, sunset at 19:18
Reminders for Tuesday, 3rd October, 2023:
sunrise at 07:34, sunset at 19:15
Reminders for Wednesday, 4th October, 2023:
sunrise at 07:35, sunset at 19:15
Reminders for Thursday, 5th October, 2023:
sunrise at 07:36, sunset at 19:12
-
, Corsairs, Buccaneers: What's the Difference?
www.britannica.com > Demystified > Geography & Travel
Corsairs were essentially privateers, although the term corsair carried
an added religious connotation because the conflict was between Muslim
and Christian...
HTH.
--
Karl Vo
On Wed, Aug 30, 2023 at 07:55:14AM -0400, songbird wrote:
> Karl Vogel wrote:
> ...
> > If nothing else, it's faster to run "locate" and look for file extensions;
> > running "file" on that much crap took nearly 9 hours.
>
> do you have SSDs
.oga audio/ogg
.ogg audio/ogg
.opus audio/ogg
.raaudio/x-pn-realaudio
.voc audio/x-unknown
.wav audio/x-wav
If nothing else, it's faster to run "locate" and look for file extensions;
running "file" on that m
That might point you to an actual device name.
--
Karl Vogel I don't speak for anyone but myself.
Comment: One of my friends drank half a bottle of rum and refilled it
with a bodily fluid of similar color.
Reply: Your friend should see a doctor and
var/authpf
drwxr-xr-x 27 root wheel 120 26-Aug-2023 07:55:02 /etc/
drwxrwx--- 2 root authpf 2 05-Jul-2019 00:45:45 /var/authpf/
me$ ./try /etc
2023-08-26 18:31:54 try: start working in /etc
me$ daemon -f $PWD/try /etc
me$ daemon -f $PWD/try /var/authpf
tem showing my hook ran when the
commit was done:
me@bkup% tail -1 /var/log/messages
Aug 22 00:31:27 bkup autopull[80162]: git pull whatever
Replace the "logger ..." part of post-commit to run "git pull" or whatever.
Hope this helps.
--
Karl Vogel
On Sun, Aug 20, 2023 at 10:38:34PM -0400, Max Nikulin wrote:
> On 20/08/2023 14:55, Karl Vogel wrote:
> > #!/bin/sh
> ...
> > # -fa 'xft:...' font size and weight
> ...
> > ( $XTERM $geo $topts -fa "$FONT" -title "Remote
--mandir=$dest/man \
--with-x \
--with-own-terminfo=$TERMINFO
make
make check
make install
It comes with a nice terminfo file. I've had problems with "tic" for
ncurses >= version 6, so I use the ncurses-5.9 version to compile it:
bert protects against power surges, brownouts, blackouts or drops
in voltage. That's why they're a little more expensive.
--
Karl Vogel / vogelke AT pobox DOT com / I don't speak for anyone at the moment
Skills-wise they suck harder than a black hole with daddy issues.
fellow Debian folks?
> Thanks.
I give a solid vote to Liebert. I had a near-miss lightning strike
a few nights ago, and all it did was make my display go out for about
a second. It came right back, session intact, didn't lose a thing.
--
Karl Vogel / vogelke AT pobox DOT com / I
r@somedomain:/var/app/
B> expect "Password:"
B> send "somepassword\r"
B> interact
I believe the "interact" line is messing you up; when "expect" sees that,
it wants a terminal or PTY to play with, and cron doesn't give it one.
--
Kar
ouch $ts" based on the
return code from whatever you're trying to run. If it fails, do you
want to alert someone and run it tomorrow or wait another 45 days?
Reschedule by setting the $ts modtime instead of dorking around with cron.
--
Karl Vogel I don
ll" or do a
separate check to make sure nothing was written outside of /usr/local:
root# find / /usr -xdev -mtime -1 -ls
--
Karl Vogel I don't speak for the USAF or my company
I put instant coffee in a microwave and went back in time. --Steve
ive1/%Y/%m%d/%H%M')"
root# mkdir -p $dest
root# find ./userstuff -depth -newer /backup/etc/drive1 -print |
pax -rwd -pe $dest
In this case, the "-depth" option ensures correct timestamps on all
created directories, and "-pe" preserves owner/gro
peset -i stat=$?
local x
x=$(fc -ln -1)
local d="$(/bin/pwd)"
logger -p local2.notice -t "$LOGNAME $$" $stat: $d: \($x\)
}
In order to really share this, you'd probably have to write something to
grub a
age/jpeg
Content-Length: 14995
A dynamically-generated page will return the current time. Also, the
server may be configured to NOT return the modtime for (say) an
index.html file, even if it's static.
--
Karl Vogel I don't speak for the USAF or my company
Fo
ess public/private keys with a
C> restricted target command:
C> command="backup-service",no-pty,no-port-forwarding ssh-rsa BLAHBLAH...
If the box from which you're copying has a static hostname or IP
address, include that as well:
from="1.2.3.4",command
R> On Mon, 6 Feb 2012 14:47:26 -0500 (EST) (Karl Vogel) wrote:
K> I correct shoulder pain by doing 5-10 very slow pushups just before bed,
K> or by holding a dumbbell over my shoulder and letting my hand dangle
K> over the back of the couch while watching TV.
>> On Mon, 6 Feb 2
before the body can use
them, and they tend to get eaten up faster when under stress. I also take
cod-liver oil to keep my joints nice and gushy. Your doctor may disagree.
--
Karl Vogel I don't speak for the USAF or my company
ANTI-TALKSIDENT: A spray carried in a
If you use Postfix, see the http://www.postfix.org/local.8.html sections
on ADDRESS EXTENSION and EXTERNAL COMMAND DELIVERY.
--
Karl Vogel I don't speak for the USAF or my company
The patient is tearful and crying constantly.
She also appears to be depressed.
#x27;t do any glob-expansion of filenames, so it won't
barf if you have a lot of files. It assumes you're in the same directory
as the files you're checking.
--
Karl Vogel I don't speak for the USAF or my company
A raccoon tangled with a 23,000 volt
rary file, redirects all output there, then if there is output it
emails it off. There are many ways to do this and I tinker it as needed.
If you want one word per line, which can be very handy:
me% gfmt -1 sample.txt
Here
is
what
[...]
as
needed.
--
Karl Vogel
ing a site, it's almost
always been something DNS-related. Do you have any other apps requiring
external host resolution that are seeing similar delays?
A caching DNS resolver usually fixes things, and it's not hard to set up.
--
Karl Vogel I don't s
/etc/shadow to /etc/shadow.lo? Then your password-changer could be:
alias hisec='sudo cp -p /etc/shadow.hi /etc/shadow'
alias losec='sudo cp -p /etc/shadow.lo /etc/shadow'
--
Karl Vogel I don't speak for the USAF or my
stechnica.com/guides/
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
I've seen people with new children before, they go from ultra happy to
looking like someth
death.
In that case, now's not the time to experiment. Use something familiar,
and play around *after* your stuff is safely backed up.
--
Karl Vogel I don't speak for the USAF or my company
Salesmen welcome. Dog food is expensive.--seen o
id 2> /dev/null; do
sleep 60
done
/path/to/newjob.sh
--
Karl Vogel I don't speak for the USAF or my company
Taxation WITH representation isn't so hot, either.--bumper sticker
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
ther interaction
Protect this expect script the same way you do your private SSH keys,
for exactly the same reason.
If the interaction here doesn't match what you normally see, use the
autoexpect program to watch over your shoulder while you do a session by
hand, and it will write a
lar problem (reading/writing dot-INI files) but preserves the section
order.
--
Karl Vogel I don't speak for the USAF or my company
Things that never happen in "Star Trek" #7:
The Enterprise successfully ferries an alien VIP from one place to another
wit
dir: cannot cd"; exit 2; }
dir=$(pwd)
find . -type f -mtime -7 -printf "%s\n" | gawk -v "d=$dir" \
'BEGIN { size = 0; }
{ size += $1; }
END {
printf "%s: %d new files using %.1f Mb\n", d, NR, size/1048576;
}'
exit 0
--
Karl
>> On 19/05/11 17:01, Hartmut Niemann wrote:
H> It often takes very long time (20s) to mkdir on an ext3 drive
>> Am Fr Mai 20 2011 schrieb Karl Vogel:
K> What does "strace mkdir /some/directory" show?
>> On Fri, 20 May 2011 08:38:41 +0200, said:
H> $ s
>> On 19/05/11 17:01, Hartmut Niemann wrote:
H> It often takes very long time (20s) to mkdir on an ext3 drive
What does "strace mkdir /some/directory" show?
--
Karl Vogel I don't speak for the USAF or my company
Q: What lies on the bottom of t
he way you like.
Details are below.
--
Karl Vogel I don't speak for the USAF or my company
Q: What's black and tan and looks good on a lawyer?
A: A Rottweiler.--John J. Irvine
-
orrected.
http://landley.net/writing/rootfs-intro.html has a nice, short
description of ramdisk vs. ramfs.
--
Karl Vogel I don't speak for the USAF or my company
The San Francisco Cable cars are the only mobile National Monuments.
;re not hitting the same disk? If all your new photos are
on the same drive, any CPU savings you get from parallel processing will
probably be erased by disk contention. Better yet, do you have enough
memory to do the processing on a RAM-backed filesystem?
--
Karl Vogel
n/perl -n
chomp;
print +(scalar reverse), "\n";
exit(0);
And then:
you% cd /some/place
you% find . -print | rev | cut -f1 -d/ | rev | sort | uniq -c | \
expand | grep -v ' 1 '
Or you could replace the uniq-expand-grep with some awk weirdness
$words{$w}++;
}
}
foreach (sort keys %words) {
print "$_ $words{$_}\n";
}
exit(0);
me% ./words */*
asdf 1
word1 2
word10 1
word2 4
word3 3
word4 2
word5 1
word6 2
word7 1
word8 1
word9 1
--
Karl Vogel
touch -d yesterday /tmp/TIME
# "list" holds 8 340-Gb filesystems, from 42-67% full.
find $list -newer /tmp/TIME -print | wc -l
date
Results:
Tue Dec 7 13:34:05 EST 2010
541
Tue Dec 7 13:39:40 EST 2010
--
Karl Vogel I don
If you leave out the pax, you'll have a list of recently-changed files
which you could feed to rsync via the --files-from=LIST argument.
--
Karl Vogel I don't speak for the USAF or my company
I would rather be exposed to the inconveniences attending too much libe
# or whatever you're looking for
set $str # will fail horribly if $str is empty
result=$1
shift
eval "$@"
test "$b" && echo "$result $b"
done
exit 0
On the other hand, if someone sneaks somethi
trace in /tmp/app21656:
open("/tmp/stuff.swp", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = 4
open("4913", O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0100644) = 3
open("stuff", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 3
open("/me/.viminfo.tmp"
{
printf("hello, world\n");
#ifdef unix
printf("unix defined\n");
#endif
exit(0);
}
me% make
cc -c -o hello.o hello.c
cc hello.o -o hello
me% ./make # using the frontend script
gcc -O2 -pipe
spaces:
#!/bin/sh
PATH=/usr/local/bin:/bin:/usr/bin; export PATH
test "`id -u`" -gt 0 && exec sudo $0 "$@"
whoami
for arg in "$@"; do
echo "[$arg]"
done
exit 0
--
Karl Vogel I don't s
]
rm $list
You can add any other filtering you might want after the last "find",
you *know* exactly what files are being synced, and you can store that
list someplace in case there's ever a question of why something did (or
didn't) get copied.
--
Karl Voge
* The SAVEON environment variable lets me set programs to show colors or
mess with terminal settings only when it makes sense to do so. For
example, my "dir" script looks like this:
#!/bin/sh
case "$SAVEON" in
"") opt='--color=auto'
e 15 in file
"sample". You can pass multiple files on the command line. The
"matched" stuff is there in case there's some distracting text on the
line besides the select statement. If you want m
sting. I didn't mention that I have FreeBSD,
Linux, and Solaris boxes, and unfortunately I can't guarantee the same
access to GNU find. I can install xargs if the system version doesn't
recognize the "-0" option, so I usually end up scripting for the lowest
co
/usr/bin
export PATH
exec tr '\012' '\000'
exit 1
--
Karl Vogel I don't speak for the USAF or my company
Q. Why are New Yorkers always depressed?
A. The light at the end of the tunnel is New Jersey. --Fredrick Homan
--
To UNSUBSCRIBE, e
oesn't
have any zipfiles, and MAGFILE will hold the expanded value of $MAGDIR
with the string "*.[Zz][Ii][Pp]" appended. Bash, sh, and ksh all do
that for some dopey reason, which is why I would do
for file in $(ls $MAGDIR/*.[Zz][Ii][Pp] 2> /dev/null); do ...
eason to taste
# check the dump for anything suspicious, remove it if clean
tcpdump -r $out ... some filter here ... || rm $out
k=$((k+1))
done
You might also change the permissions on "ps" so he can't see "tcpdump" or
any other steps you mig
, 5 Jan 2009 10:00:00 -0500
http://www.catonmat.net/blog/update-on-famous-awk-one-liners-explained/
Update on Famous Awk One-Liners Explained: String and Array Creation
Mon, 9 Feb 2009 10:25:00 -0500
--
Karl Vogel I don't speak for the USAF or my company
If walki
http://www.hcst.net/~vogelke/src/ishostup/
These scripts are good for exactly one thing: sending me (or someone) a
message if a given piece of hardware at a given IP address stops responding
for more than a minute or so. They rely on fping and regular email.
--
Karl Vogel
Here's something I modified as part of a benchmark script called "fdtree".
--
Karl Vogel I don't speak for the USAF or my company
Dijkstra probably hates me. --Linus Torvalds, in kernel/sched.c
#!/bin/bash
# How to use xdate/xtime/persec:
#
76 matches
Mail list logo