nifr / Setup

My dotfiles and scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My Setup

My dotfiles and ~/bin

Requirements

  • tidy
  • rsync

Perl libs

  • Text::ASCIITable
  • Getopt::Long
  • Text::CSV

~/bin

soaper

bash script

My CLI soap client, needs some work but works for my use, receives two parameters, a file and a WSDL url

soaper test.xml http://www.w3schools.com/webservices/tempconvert.asmx?op=FahrenheitToCelsius

Note: soaper dislikes \n inside tags

view_csv

Perl script

Pretty viewer for CSVs

view_csv test.csv

locate_mod.pl

Perl script

Useful to locate modules by mod name.

locate_mod.pl Data::Dumper

barchart

Perl script

Displays a "barchart" for a text with duplicated string in it.

barchart sample_data.txt
  00000000| Miniac
         0| Bossy
0000000000| EPICAC
        00| The Prime Radiant
      0000| Multivac
        00| MARAX
  00000000| Mark V
     00000| Mima

cleaner

Deletes trailing whitespaces from files.

Example use:

# Removes trailing whitespace from python files
# Also removes extra whitelines if there are more
# than 3 whitelines
find . -iname "*.py" | xargs -l cleaner

# Is is known to corrupt git repos, so, NEVER do this:
# find | xargs -l cleaner

About

My dotfiles and scripts


Languages

Language:Vim Script 72.8%Language:Python 16.6%Language:Shell 6.4%Language:Ruby 3.6%Language:Perl 0.7%Language:HTML 0.0%