Giter Site home page Giter Site logo

bin's Introduction

$USER bin

A set of scripts to accelerate my daily work. The repository should be cloned into $HOME/bin. This path is already in system $PATH environment variable, so there is no need to append it.

To convert files to executables

$ chmod +x $(ls -I ".gitignore" -I "*.md")

Summary of scripts

gits [-a|--all]

Print a brief git status of the repository.

$ gits

Output:

## master...origin/master
 M gitlog
 M gits
 M kexp
 M passgen
AM sizer
 M timer
 M where
?? gitsall

Argument -a|--all gives info about all branches.

$ gits -a

Output:

* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/master
master (ahead 0) | (behind 0) origin/master

gitlog

Print the commit logs.

kexp

Starts playing a radio that I like to listen to.

passgen [<length>]

Generates a random string. It can take an optional argument to indicate the length of the string.

$ passgen 20 

example output:

vf1=|xHcL`s/t3zIBZi!

timer [<minutes>]

Starts a countdown timer. Default time is 60 minutes.

$ timer 25

where <string>

For a given term, it looks up all of its instances in the files and directories in the path that it was invoked. This has been useful for debugging.

$ where this_weird_variable_name

sizer

Lists the folder/files and their disk usage, ordered by size.

Example output

280K    .git
24K     git-branch-status
4.0K    where
4.0K    timer
4.0K    sizer
4.0K    README.md
4.0K    passgen
4.0K    kexp
4.0K    gits
4.0K    gitlog

bin's People

Contributors

barzinm avatar

Watchers

 avatar  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.