Ninja contains some common scripts in Linux bash that can make your work more efficient
Run the command:
curl -s -L https://github.com/gaol/ninja/raw/master/install.sh | bash
Some convinient functions:
string_to_lower
// converts string to lower casestring_to_upper
// converts string to upper caseget_ip_v4
// get default IP V4 addressget_ip_v4_all
// List all IP V4 addressget_default_iface
// get default network interface nameget_default_mac_addr
// get default network interface MAC addressmvn-with-jboss-repo
// mvn with jboss public repository setting upmvnchina
// mvn with aliyun maven repository mirror for Chinese developers
- put any scripts(bash shell, python, ruby, etc) with execution permission in the
ninja
home directory orscripts
sub directory, it has been added to the$PATH
environment - for functional scripts, define them in the
ninja/scripts/function.d/
, they will be loaded once you source thecommon_source
again.
Have Fun!