LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Old

Pay attention to ";" versus "&&" in bash aliases

Posted 09-27-2017 at 03:54 PM by the dsc (linux-related notes)
Updated 09-27-2017 at 03:57 PM by the dsc

Or maybe avoid it altogether, it's probably some sort of well known linux/unix rule that someone wrote a long time ago.

It's possibly something that seldom ever is a problem to anyone, but it was for me.

I had this as an alias for "mv"

Code:
echo "use mv -i to avoid overwriting files with the same name; this is an alias to mv -i" ; mv -i
Then at some point I was doing an one liner that would scan symlinks' "realpaths"...
Member
Posted in Uncategorized
Views 373 Comments 0 the dsc is offline
Old

The "sed" command doesn't need quotes

Posted 09-15-2017 at 02:20 PM by the dsc (linux-related notes)
Updated 12-01-2017 at 11:24 PM by the dsc

You may have some trouble when trying to make sed replacements along the lines of:

sed 's|$originalpath|$otherpath/$filename|'

If the variables contain things like the "-" character, or some other special characters, some of the sed commands may be terminated before they should, in error, as it's taking part of the variable as sed commands, rather than parameters. Something like that. Then the variables would ideally be quoted, but with the outermost quotes,...
Member
Posted in Uncategorized
Views 423 Comments 0 the dsc is offline
Old

Bulging capacitors on motherboard

Posted 08-18-2017 at 02:10 PM by the dsc (linux-related notes)
Updated 08-19-2017 at 01:34 PM by the dsc

A sequel to my topic, "onboard video card dying, or something else?", where Shadow_7 posted:

Quote:
Originally Posted by Shadow_7 View Post
Sounds about the time of this little piece of corporate espionage.

https://en.wikipedia.org/wiki/Capacitor_plague

I had a bad cap on an asus rt-n16. One of my old motherboards had a similarly spec'd cap that I replace it with. $80 saved.

If the bad caps are on the motherboard, a new video card wont save it.
Out of curiosity,...
Member
Posted in Uncategorized
Views 1425 Comments 0 the dsc is offline
Old

Annotations while trying to eventually get suspension and/or hibernation to work

Posted 08-16-2017 at 04:33 PM by the dsc (linux-related notes)
Updated 08-16-2017 at 05:18 PM by the dsc

I've never used this kind of thing, decided to give a try, as it seemed safe for all I was reading.

"pm-suspend-hybrid" did work, but after resuming, the CPU fan was reset to full speed all the time, as if the BIOS was set to have "smart fan control" disabled.

It may be also partly because some of the power management options (whatever is its name) are set to "S3" which I recall reading isn't really appropriate for suspension (which keeps...
Member
Posted in Uncategorized
Views 1076 Comments 0 the dsc is offline
Old

Stylish CSS userstyle for new google's image search, so you can spare an extra click

Posted 08-08-2017 at 07:58 PM by the dsc (linux-related notes)
Updated 08-08-2017 at 08:15 PM by the dsc

It's crude but seems to work. I simply don't get why webdesigners think it's a great idea to needlessly hide small menus under that "vertical ellipsis" icon. At very least those could be displayed just by hovering.

Code:
.irc_m {
    background-color: #fff;
    box-shadow: 3px 3px 12px rgba(0,0,0,0.4);
    margin-top: 0px;
    overflow: auto;
    padding: 0px 0;
    position: absolute;
    right: 8px;
    z-index: 2;
...
Member
Posted in Uncategorized
Views 389 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 03:44 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration