Archive for the ‘RancidMeat’ Category

RancidMeat: Mongoose

Tuesday, July 16th, 2013

Mongoose is my new favorite mini web server.

No installer; it’s just a standalone executable. When double-clicked, it hosts the folder it’s in on port 8080.

It lurks in the tray, where you can change its settings with a GUI (generating a mongoose.conf file).
 
 
Some of its features:

  • It can serve perl/php/etc (checking shebang lines and running the appropriate interpreter, if available).
  • When there’s not even an index.html, it can show directory listings.
  • From a commandline, it can create/edit passwords for basic HTTP authentication (htpasswd).
  • It’ll do HTTPS if you’ve got a certificate.
  • As of version 3.8, it lets wget resume downloads (previous versions didn’t understand wget’s request).

 
Article: User Manual on GitHub.
Article: Linux manual, for commandline args.

RancidMeat: The Dude

Friday, November 11th, 2011

screenshot
The Dude network monitor is like a combination of nmap, visio, and nagios to discover / identify network devices, make a graphical image to depict topology, and monitor open ports for service health. It runs under Windows, Linux Wine, and OSX Darwine.
 

 
* It doesn’t by itself plot geographical locations, but you can use a background image of a map and arrange things yourself.

RancidMeat: FreeRapid

Monday, October 31st, 2011

Freshmeat.net has changed its name, so this title’s gonna make less sense. *shrug*

screenshot
Y’know those websites that host files but make you wait and fill out a captcha? FreeRapid is a download manager that knows how to interact with 230+ of em, so you can do more interesting things than stare at a countdown.

It’s mainly for when you’ve got several urls to queue up, but apparently it can save Hulu and YouTube videos too.*

It’s updated relentlessly to keep up with those sites and fetches new plugins each time you start it.
 
 
If you start it with the ” --portable” arg, it’ll keep its config files in its own directory.
 
 
* To set a preferred YouTube video quality, dig through some menus… Options/Preferences/Plugins/youtube.com/options.

RancidMeat: The Regex Coach

Tuesday, June 28th, 2011

screenshot
If you haven’t dealt much with regular expressions, The Regex Coach is an invaluable learning tool.

Give it a pattern at the top, and in a demo string at the bottom, it highlights the matching segments.

You’ll get waaay more benefit from sed, grep, and string replacement in programming languages once you’ve trained a bit with this.
 
 
When you put this knowledge to use, there will be some variation from environment to environment when it comes to the fancy tricks: basic regex < extended regex < perl regex. Some commands have args to choose which syntax. And depending on quoting, you may need to backslash-escape stuff.

This general regex reference is excellent (nav on the left of that page links to more reference pages, as does the heading of each table).

RancidMeat: GUI diff with WinMerge

Tuesday, June 28th, 2011

screenshot
When you’ve got a couple similar text files and you only want to make a few lines match, the diff command’s not so helpful.

WinMerge is a two-pane GUI that lets you scroll from difference to difference, deciding which blocks one pane should copy from the other. Like the command, WinMerge can also compare directories: altered files among the results can be double-clicked to see what’s inside.

Linux equivalents include Meld, KDiff, and tkdiff. Or running WinMerge Portable under Wine.

RancidMeat: Shortcut

Friday, January 28th, 2011

Aside: Linux GUIs have shortcuts too (text .desktop files). A few lines of echo and the google-resistant specs will create one.
 
 
Shortcut is a Windows command to create, edit, or query windows shortcuts (binary .lnk files) from batch scripts.

It handles target, arguments, working dir, normal/minimized/maximized, icon, hotkey, and description. Everything but the Compatibility tab, which I think is an explorer/registry thing, not intrinsic to lnk files.
 
(more…)

RancidMeat: uconv and file

Sunday, October 31st, 2010

(file is below the fold)
 
 
Unicode is painful for three reasons.

  • Apps hide its presence from you: all too often, a hex editor is necessary to know what’s really there.
  • BOM headers sometimes break things (mysteriously due to the stealth), even in ostensibly unicode-aware tools (iconv, seriously!?). If unexpected, the headers look like binary garbage. Then things explode.
  • And tools to convert among text formats are hard to find, especially for windows.

 
I just found uconv. It’s pipable, and I don’t hate it yet ;) .
 
(more…)

RancidMeat: PStart

Sunday, October 17th, 2010

screenshotPStart is a nifty little launcher for USB drives. Tell it about the portable apps you’re carrying, and it’ll sit in the tray as a second start menu.
 
Technically it isn’t limited to jumpdrives. All its paths are relative, so your suite can be distributed in a folder.
 

RancidMeat: Grub4Dos

Monday, July 19th, 2010

Delayed whim I followed up on this week: a fork of GNU Grub.*

Once I settled on one of the myriad riggings that clutter the docs, it was easy to set up from within Windows. No Linux necessary.
 
(more…)

RancidMeat: XMLStarlet

Monday, April 26th, 2010

Occasionally I have to parse xml, which is often not grep-friendly. Luckily, there’s XMLStarlet (the actual command’s named ‘xml’) to make it relatively easy, if longwinded for a prompt. It’s in Linux repositories, and there’s a Windows version.

For this post, I’ll be referring to an example file that looks like this.

<?xml version="1.0"?>
<Cast>
<Character gender='M'>
  <Name>Fry</Name>
  <Job>Delivery Boy</Job>
  <Species>Human</Species>
  <From>
    <Location>Earth</Location>
    <Location>New York</Location>
    <Location>Brooklyn</Location>
  </From>
</Character>

</Cast>

 
 
1) Loop through all characters, printing the value of their name tag and a newline.

xml sel -t -m "/Cast/Character" \
-v "Name" \
-n futurama_cast.xml

# Zapp
# Leela
# Amy
# Zoidberg
# Fry
# Bender
# Professor
# Kif

 
(more…)