596 reputation
23
bio website redhardsupra.blogspot.com
location Laurel, MD
age 37
visits member for 3 years, 11 months
seen 3 hours ago

Jun
26
comment Why can't Vim open a 100 MB text file when I have 16 GB RAM?
Yup, syntax highlighting on things like XML and SQL can get very slow on larger files.
Feb
28
comment Why are bash tests so picky about whitespace?
Hm, I've been using it for years, never thought of why it's this way and not any other. This makes total sense. Thank you for education.
Jun
19
comment mount options shown in /proc/mounts
Is there a way to show all flags, in whatever state they're in?
May
29
comment Using newest kernel version on an older system
I've had 3.2 running on Debian Squeeze (6.0) for a long time, and I just got the newest 3.4 longterm stable, and 3.9 stable working on an ancient athlon64 x2-4400. The only problem so far, one old PCI NIC driver segfaulted when the box tried to go into some sort of sleep mode. Other than that, no issues.
Jan
30
comment Find any lines exceeding a certain length
mawk runs the length function quite a bit faster than the gnu awk, might try that.
Jan
4
comment Xterm with Solarized only showing dark background without font colors
Interesting, but could you expand on what does it affect exactly?
Nov
9
comment Preserve scroll on Linux console switch
FreeBSD doesn't have this problem, each VT has it's own scrollback buffer I am guessing.
Nov
5
comment How many rings does OpenBSD use?
STOP used to have 3 rings, but I think the newest version was reduced to 2 for the sake of speed :(
Oct
12
comment How to use a custom crypto algorithm in ipsec?
First Law of Cryptography: Thou shall not roll your own crypto. Sorry, someone had to say it ;)
Oct
12
comment Fastest ssh X tunneling on a local secure network
Yup, this agrees with my findings: security.stackexchange.com/questions/12901/…
Sep
6
comment CentOS: Install packages listed in a text file?
This is much nicer, as it will look at all the dependencies at the same time, instead of figuring them out for every single package.
Sep
6
comment How to merge output of two running log files in real-time
multitail has few relevant flags: --mergeall, and -ts As for enforcing time coherence, I've done it once, but it had to be done by every log line having a timestamp, and then wrote an awk script to rearrange the entries to be sorted by time. That's nowhere near real-time. The lesson learned on that one was that the timestamps had to be generated by the program generating them, and not the logger program, as they tend to be heavily buffered, which demolishes any notion of decent timestamping.
Jul
19
comment How to print only last column?
+1 for double rev, but as a side note, rev does not work with 'wide' characters, only single byte ones, as far as I know.
Jul
19
comment vi/vim, how can I write out a number of lines to a new file
Are the addresses inclusive or exclusive?
Jul
5
comment force re-negotiation of PCIe speed on Linux
In windows I've seen it change automatically, it's a function of pci-e bus power-saving. serverfault.com/questions/226319/what-does-pcie-aspm-do seems to have a nice explanation
May
16
comment Which edac module should I enable here?
@cjm, not anymore. Memory controller on all Nehalem and newer is built into the CPU, not the North Bridge. So as long as the motherboard supports it (need more wires from memory to CPU since ECC uses 9 bits to store 8 bits with the extra redundancy), plugging in different CPU's can give you the ECC capability.
Jan
20
comment FreeNAS versus a regular (CentOS/Ubuntu) linux server?
Not hard at all, there are some unique conventions & mechanisms, but ultimately it's Unix-relatives, so it's still plain text configs, command-line, files, and pipeline processing. Everything else is 'syntactical sugar' ;) Once you set it up, you won't even notice.
Jan
19
comment FreeNAS versus a regular (CentOS/Ubuntu) linux server?
Frankly, I don't remember anymore, I had two experiments going at the same time, one at work and another at home, so there was a lot of distros/hardware/configs tossed around.
Jan
10
comment What is the most high-performance Linux filesystem for storing a lot of small files (HDD, not SSD)?
If you know which files are going to be big/not changing very often, and which are going to be small/frequently changing, you might want to create two filesystems with different options on them, more suited to each scenario. If you need them to be accessible as they were a part of the same structure, you can do some tricks with mount, symlinks.
Jan
3
comment System hanging when it runs out of memory
You CANNOT prevent resource exhaustion, you can only manage it.