Giter Site home page Giter Site logo

sploinkd's Introduction

Sploinkd

A collection of scripts that I use. Python <= 3.7 required.

Whenever I need something to be automated by a script I add it here.

Installation

UNIX systems

pip3 install git+https://github.com/Euab/sploinkd.git#egg=spolinkd

Windows

pip install git+https://github.com/Euab/sploinkd.git#egg=sploinkd

There's also an install.bat file which you can run instead if you are choosing to install from source.

Stuff

Line counter

usage: loc.py [-h] [-v] [-nM] project

positional arguments:
  project              The path to the project to scan.

options:
  -h, --help           show this help message and exit
  -v, --verbose        Run loc in Verbose mode.
  -nM, --node-modules  Add this flag to include node_modules in search.

####Example:

python3 -m sploinkd.loc ./myAwesomeProject

Output:

Scanning directories...
Computing line count...

Project "/Users/euab/myAwesomeProject" has 2129 lines.
Processed 48 files with 0 errors. (error rate: 0.00%)

Normalise line endings project-wide:

usage: le.py [-h] [-v] [-lf] [-crlf] [-c] project

positional arguments:
  project        The path the the project where the requested operation should
                 be performed.

options:
  -h, --help     show this help message and exit
  -v, --verbose  Run le in verbose
  -lf            Convert to LF
  -crlf          Convert to CRLF
  -c, --check    Check line endings only

Example

Normalise all line endings to use CRLF. In this example all the line endings in the Linux kernel are changed to CRLF.

python3 -m spolinkd.le ~/linux -crlf

Output:

Discovering files...
Converting 59811 files...

Processed 59811 files with 0 errors. (error rate: 0.00%)

Process completed. Time elapsed: 105s

sploinkd's People

Contributors

euab avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.