LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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

Application-specific recent files pipe-menus for Openbox

Posted 01-10-2016 at 09:55 PM by the dsc (linux-related notes)
Updated 08-31-2017 at 03:42 PM 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 | \
...
Member
Posted in Uncategorized
Views 2410 Comments 0 the dsc is offline
Old

Download files from a list while (re)naming them at the same time

Posted 11-27-2015 at 12:27 PM by the dsc (linux-related notes)
Updated 11-27-2015 at 12:33 PM by the dsc

"wget -i" is perhaps the tool of choice to download files from a list, but it doesn't allow you to set custom file names for the individual files on the list file. So, if you want to download a bunch of podcast episodes, but would want each file to have a descriptive file name rather than "12345.mp3", it won't help you.

A simple alternative is to have a download list with the file URLS followed by the "-O" flag and desired file name, and read this file...
Member
Posted in Uncategorized
Views 2777 Comments 3 the dsc is offline
Old

Scary massive Debian-testing upgrade went well, it seems

Posted 11-12-2015 at 03:52 PM by the dsc (linux-related notes)

Probably the largest upgrade I've done so far, at least in the last five years or so. Most individual upgradeable packages, if selected individually, would require uninstalling half of the system. But "mark all upgrades" on synaptic in contrast required uninstalling just a few obscure packages, seemingly not affecting anything I use often. There were a few bugged packages, but the bugs didn't seem to apply to me, so I upgraded them anyway, as there was no choice.

But the...
Member
Posted in Uncategorized
Views 2138 Comments 0 the dsc is offline
Old

Terminal with similar keybindings to kwrite / kate / gedit / html text fields?

Posted 10-06-2015 at 09:04 PM by the dsc (linux-related notes)
Updated 01-13-2016 at 05:02 AM by the dsc (alternative solution)

EDIT: As it turns out, it's not really needed.

With control+x+e your current command line will be opened with the $EDITOR application. From there you edit freely, then you save it, and as you exit, it will run.

http://www.commandlinefu.com/command...to-text-editor

I think the text editor Nedit is an excellent $EDITOR to have for that. It uses the tcl/tk toolkit (or actually motiff, if it's not the same thing),...
Member
Posted in Uncategorized
Views 1843 Comments 0 the dsc is offline
Old

Google reverse image search from command line/Geeqie/etc with python and shell scripts

Posted 10-04-2015 at 12:43 AM by the dsc (linux-related notes)
Updated 10-04-2015 at 01:42 AM by the dsc

There's another method which consists in uploading the image from your computer in some free host and then giving this URL to google via command line, but it's kind of a scumbag-ish thing to do, I think.

Based on/essentially identical to the first answer to a question in stack overflow:

Code:
#!/usr/bin/env python
# WARNING: I DON'T KNOW PYTHON AT ALL, THIS MAY BE GRUESOME AND IDIOTIC
import sys
filePath = sys.argv[-1]

import requests
...
Member
Posted in Uncategorized
Views 4369 Comments 0 the dsc is offline

  



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