LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Blogs > linux-related notes
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

Simple "at"-like script thingie to run other things at a given time

Posted 05-31-2014 at 01:00 PM by the dsc (linux-related notes)
Updated 05-31-2014 at 01:16 PM by the dsc (bad phrasing/grammar)
Tags lazyness

Code:
#!/bin/bash
now=$(date +%s)
then=$(date --date "$1" +%s)
sleep $((then-now))
I was just tired to try to figure the syntax and usage of "at", when I just wanted gxmessage to pop up to remind me of something.

Usage: "when 17:20 && gxmessage whatever or whatever you want to start at 17:20"

Change "when" to whatever name you wish to call it. Perhaps "by" is more grammatically...
Member
Posted in Uncategorized
Views 845 Comments 0 the dsc is offline
Old

Possible key mechanism to disable xscreensaver automatically when watching youtube and the like

Posted 05-29-2014 at 08:07 PM by the dsc (linux-related notes)

I haven't even tried it yet, it just looks like a good candidate method to mess with eventually:

Code:
top p $mplayer_pid -bd 0.25 n 3 | grep $mplayer_pid | awk '{print $9}'
I saw it here:
https://forums.gentoo.org/viewtopic-...4-start-0.html

That would give "larger than zero" numbers when mplayer is playing (I think Debian's/current "top" syntax is a little bit different and requires "b" and "d" separated,...
Member
Posted in Uncategorized
Views 1240 Comments 0 the dsc is offline
Old

Liquorix kernel seems more responsive than Debian's default

Posted 05-28-2014 at 10:46 AM by the dsc (linux-related notes)

I'm somewhat skeptical of the tuned-kernel movement, so I didn't install it expecting to make my OS "fly" or anything. It just happened that recently there had been some weird kernel error messages ("perf samples too long"), and, related to that or not, the OS would become sluggish with lots of read-or-write activity (on my old HDD that must be really slow, to add to sluggishness). Apparently you can sort of solve it in a sysctl-like way, printing a "0" to some file/parameter,...
Member
Posted in Uncategorized
Views 1874 Comments 1 the dsc is offline
Old

You can still have google with the top black menu bar

Posted 05-24-2014 at 04:53 PM by the dsc (linux-related notes)
Tags google

I truly hate websites or GUIs in general going away with nice features or changing stuff for no good reason, and/or without being in a clear opt-in/out manner.

Anyway, adding a parameter to the google query/url still brings the not-so-old UI: noj=1

You'll still need a user script to have "scholar" to be among the search options on that menu, though. Otherwise it's still on "more → even more → scholar, no longer with your original query, loser"....
Member
Posted in Uncategorized
Views 1099 Comments 0 the dsc is offline
Old

Rar extraction via pcmanfm context menu apparently requires file-roller on Debian

Posted 05-20-2014 at 12:09 PM by the dsc (linux-related notes)
Tags debian, pcmanfm, rar

The title pretty much describes all that's to say about it.

Reading other forum I was left with the impression that xarchiver + unrar would suffice, but apparently it doesn't, at least in Debian Testing, May 2014.
Member
Posted in Uncategorized
Views 1749 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 04:18 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