LinuxQuestions.org
Help answer threads with 0 replies.
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

Use any widget theme with Krita, outside KDE with a tiny cheat

Posted 06-23-2015 at 01:12 AM by the dsc (linux-related notes)

export KDE_FULL_SESSION=true && krita

It may have other collateral effects I haven't figured yet, not only on krita, but perhaps even elsewhere. Possibly DANGEROUS.

Be warned that other widget themes besides plastique and oxygen are known to be often broken outside KDE, that's the reason for such theme-enforcing policy. If your preferred theme doesn't work on Krita, don't complain about that to them, they've manifestly done that in order to avoid trying to make...
Member
Posted in Uncategorized
Views 102 Comments 0 the dsc is offline
Old

Ugly wrap-around to avoid high CPU and I/O on update-apt-xapian-index

Posted 06-16-2015 at 02:54 AM by the dsc (linux-related notes)
Updated 06-16-2015 at 03:01 AM by the dsc

I've read somewhere that someone else was also annoyed by this.

Here's what I did:

Code:
#!/bin/sh
cpulimit -l 5 -e updatep-apt-xapian-index.py & 

ionice -c 3 /usr/sbin/update-apt-xapian-index.py $@
That's my "/usr/sbin/update-apt-xapian-index", which is called by synaptic and whatever else. The ".py" file is the original script.

It still makes the CPU fan audibly accelerate, but it's no longer...
Member
Posted in Uncategorized
Views 149 Comments 0 the dsc is offline
Old

Rough script that waits until processes finish their businesses, then exit

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

The processes are given as a single variable, thus one must use quotes if there's more than one process to wait for.

Usage example:

./waitprocs "lame avconv sox tar" && self-destruct

My previous attempt with a "counting" system didn't work, so I've tried a different approach. For any given process, it will check if it's running, if it is, it creates a temporary file with its name on a temporary work folder; if it isn't, it...
Member
Posted in Uncategorized
Views 198 Comments 2 the dsc is offline
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 185 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 271 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 11:03 AM.

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