Skip to content

blutgens/misc-python

Repository files navigation

All this code was originally written by https://bitbucket.org/anilg/misc I really liked sshlist.py and so I grabbed the whole works in case I might use the other stuff some day. All credit for this code goes to Anil G, whoever he is =)

Various files in this repo.

  1. repodiff.py

Description: Script to compare two apt repositories, and figure out which packages are new/old

Requirement: Python

Usage: Run ./repodiff.py to see usage.

  1. pysshfsplus

Pysshfs is a frontend to sshfs commandline. It's a simple pygtk utility, and does things well. More details at http://www.ad-comp.be/

I added Autofill options (so it remembers what you last used), and fixed an issue where it did not work correctly with ssh-bound hosts. This was sent upstream, but is yet to be updated. Meanwhile anyone who wants these changes, can pick it up from here.

  1. Glance

A tiny pygtk utility that makes dictionary lookup simple. Gnome-dictionary is good, but it lacks things like clibboard lookup, prefix/suffix words, etc.

Glance was written to be as simple to use as wordweb on windows. It is a frontend to dict. Once setup, you can,

  • Lookup a word by simply selecting it in browser/text-editor/ebook reader and hitting F7.
  • Hit F7 anytime to launch.
  • Search for prefix/suffixed words with *. Ex: arch, matri, morph
  • Provide definition of the word, etymology (along with meaning of the root words), Similar words, usage, etc. These depend on the dicitonaries installed.

Setup:

Instructions are for Ubuntu. First install dependencies and local dictionary via

apt-get install python-gtk2 xsel apt-get install dictd dict dict-wn dict-gcide

This installs the Wordnet and the Comprehensive English dictionary. You can also install:

dict-moby-thesaurus - Largest and most comprehensive thesaurus dict-jargon - Jargon definitions dict-foldoc - FOLDOC dictionary database dict-vera - Dictionary of computer related acronyms dict-bouvier - John Bouvier's Law Dictionary for the USA dict-devil - A satirical, cynical and irreverent dictionary of common words dict-gazetteer - Place names, population and location provided by the U.S. Census Bureau

There are multiple language A -> B dictionaries available as well. To see alla vailable dictionaries, run:

apt-cache search dict | grep ^dict

glance is a single file utility. Copy the file to /usr/local/bin

sudo cp glance /usr/local/bin

Setup keyboard shortcut F7, Add a custom shortcut for glance. Do this by running gnome-keyboard-properties.

All done. Select a word and press F7 anytime to view in all it's defined glory.

  1. sshlist.py

A sshmenu like alternative for appindicator menu. Move file into /usr/local/bin, add it to gnome startup list, and add ssh hosts into ~/.sshlist file. One item per line

  1. sshplus.py

A similar but improved sshlist.py.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages