LinuxQuestions.org
Register a domain and help support LQ
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

Make a bash script recognize bash aliases

Posted 05-12-2015 at 04:16 PM by the dsc (linux-related notes)
Updated 05-12-2015 at 04:22 PM by the dsc (mismatched tags)

Say, if you have a script that would take as a parameter something that you have aliased, it wouldn't work.

I mean:

$ ./script.sh myalias whatever else
/home/dude/scripts/script.sh: line 3: myalias: command not found



In order to make it work, the said script must include:

Code:
shopt -s expand_aliases
source ~/.bash_aliases
(Or wherever your aliases are set, which would preferably be...
Member
Posted in Uncategorized
Views 111 Comments 0 the dsc is offline
Old

A few tips regarding firefox/iceweasel's new tab page

Posted 03-17-2015 at 06:15 PM by the dsc (linux-related notes)

Quote:
Originally Posted by Kadha

If you wish to have more than 9 tabs on the new tab page, you just have to

- open the config page > in the url bar, type "about:config"
- agree that you're doing this at your own risk
- search for the word "tab", you'll get a bunch of entries
- change the value of browser.newtabpage.columns for your desired number of columns (for instance 4)
- change the value of browser.newtabpage.rows for your desired number of rows
...
Member
Posted in Uncategorized
Views 180 Comments 0 the dsc is offline
Old

Idea for an script to prevent xscreensaver while watching videos on a browser

Posted 03-15-2015 at 12:54 AM by the dsc (linux-related notes)
Updated 03-15-2015 at 01:03 AM by the dsc

The core concept is just:


Code:
while true ; do

wmctrl -l | grep -i "youtube\|vimeo" && xscreensaver-command -deactivate

sleep 5m

done
Perhaps it would be more elegant to have something that somehow works more accordingly to xscreensaver's time rather than this thing that has smaller cycles just to play it safe.

Won't work for embedded videos, though, as "youtube"...
Member
Posted in Uncategorized
Views 173 Comments 0 the dsc is offline
Old

Mozilla seems to work okay with Chrome's flash player

Posted 02-21-2015 at 10:16 PM by the dsc (linux-related notes)
Updated 02-23-2015 at 04:44 AM by the dsc

I'm not really a fan of flash, but since I'm trying to switch from Chrome to Iceweasel, which seems to be less sluggish in my machine, and I don't like the idea of using a plugin from the late 90s when I have to, I decided to try the wrap-around trick/plugin I've found. It seems to be working normally, as fas as I can tell.

http://www.webupd8.org/2014/05/fresh...per-flash.html

It had a few more dependencies than stated in the how-to, but the make/configure output...
Member
Posted in Uncategorized
Views 138 Comments 0 the dsc is offline
Old

Does youtube know what you've been doing elsewhere?

Posted 02-07-2015 at 09:43 PM by the dsc (linux-related notes)
Updated 02-07-2015 at 09:44 PM by the dsc (grammer, me guess)

I'm a recovering addict in chess (not any good though, just enough to experiment some of the sweet taste ov victory, sometimes), and every now and then I have a relapse. I used to watch some chess videos on youtube, but sometime ago I unsubscribed those channels, deleted the chess-related history for a bunch of "pages" back, and I've been marking "not interested" in chess-related suggestions, and they were decreasing in number.

But now, yesterday, I had some binge-chess...
Member
Posted in Uncategorized
Views 165 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 01:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration