LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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.
Uncategorized Entries with no category
Old

Parsing script arguments in bash, without getopt(s)

Posted 03-12-2016 at 06:15 PM by the dsc (linux-related notes)
Tags arguments, bash

Nifty. Just found that on stackoverflow:

http://stackoverflow.com/questions/1...uments-in-bash

Quote:
Originally Posted by Bruno Bronosky, cwd, et al.
Preferred Method: Using straight bash without getopt[s]

I originally answered the question as the OP asked. This Q/A is getting a lot of attention, so I should also offer the non-magic way to do this. I'm going to expand upon guneysus's answer to fix the nasty sed and include Tobias Kienzler's suggestion.

Two
...
Member
Posted in Uncategorized
Views 726 Comments 2 the dsc is offline
Old

Fix for "unconfigurable" samba/CIFs/etc on Debian

Posted 03-10-2016 at 04:05 PM by the dsc (linux-related notes)

Quote:
>On Tue, Mar 08, 2016 at 03:33:21PM +0100, Francesco Potort́ wrote:
>> I identified the problem source: this version of Samba does not accept
>> "security = share" any more and the /etc/init.d/nmbd script fails.
The
>> reason is that:
>>
>> # samba-tool testparm --parameter-name="server role"
>> WARNING: Ignoring invalid value 'share' for parameter 'security'
>> ERROR: Unable to load
...
Member
Posted in Uncategorized
Views 307 Comments 0 the dsc is offline
Old

Opera Presto had the best GUI ever. Ever.

Posted 02-21-2016 at 11:27 PM by the dsc (linux-related notes)

I can't speak anything about the web-rendering part, which seemed at very least okay, in pair with firefox and chrome, if not somewhat better, sometimes. Even there the GUI alone could give it an edge sometimes as it had a button where you could choose to display/download no image at all, only display already cached images, or operate normally. Other browsers may even have that function, but it's hidden deeper in a less customizable GUI.

And customization was so easy and powerfull....
Member
Posted in Uncategorized
Views 1022 Comments 2 the dsc is offline
Old

User style/CSS to get rid of Google's "come here often" pop-up

Posted 01-12-2016 at 02:00 PM by the dsc (linux-related notes)

Seems to work for me on firefox/iceweasel:

Code:
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("google.com")
 .gb_ga, .gb_g { display: none !important; }
British users probably need to change the domain to "google.co.uk" and likewise for some other countries that aren't subdomains of google.com;]
Member
Posted in Uncategorized
Views 1313 Comments 0 the dsc is offline
Old

Application-specific recent files pipe-menus for Openbox

Posted 01-10-2016 at 10:55 PM by the dsc (linux-related notes)
Updated 01-14-2016 at 03:32 AM by the dsc (improvement)

Here's an example for GIMP:

Code:
#!/bin/bash

printf "<?xml version=\"1.0\" encoding=\"UTF-8\"?><openbox_pipe_menu>"

# Instead of just "gimp" in the next line, it could even be a series of
# related programs, if you juggle between different applications with 
# these files. Such as "gimp\|inkscape\|krita\|mypaint"

grep -B 10 gimp ~/.local/share/recently-used.xbel | \ 
grep
...
Member
Posted in Uncategorized
Views 1539 Comments 0 the dsc is offline

  



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