Coder Social home page Coder Social logo

handy-tools's Introduction

HanndyTools

some of the tools that I daily use, mainly shell, python or php scripts


1. hs

script : src/hs.sh

filter duplicate and short command.
it's more frindly and easy-use than the build-in history 
and it also displays better.

TODO : the filter via days and weeks
commad tips more
hs the last 20 (default 20, and you can change it)
hs -10 the last 10
hs 10 the earliest 10
hs a all
hs -c backup history, then clear it

2. ko

script : src/ko.sh

kill processes by %name%

ko redis


3. spto

script : src/spto.sh

split file to n pieces, for example : 

split ~/a.log into 3 pieces, store in ~/pieces/ with a prefix 'pre' each : 

spto -l 3 ~/a.log ~/pieces/pre (by lines)

spto -s 3 ~/a.log ~/pieces/pre (by sizes)

4. tree

script : src/tree.php   or   src/tree.go

output the dir in tree structure, for example : 

tree : current directory for complete display

tree ~/workspace : complete display in ~/workspace

tree ../workspace 2 : only display 2 level in ~/workspace

besides, green for directory and yellow for file

5. git project

script : src/git-project.sh

git project [bare repository directory] [project directory]

run `git project`, then follow the tips 
OR 
run with complete parameter like `git project /git/moon.git ~/project`

1. create a bare repository at the directory you designated (if already exist a bare repository in this directory, skiping)
2. create a hook in the repository that every time you commit it can autosyn the code to the project directory

6. sign

script : src/sign.sh

sign  nice to meet you              ## avpr gb zrrg lbh
sign  nice to meet you | sign       ## nice to meet you

so interesting,  ha?

7. git fc

script : src/git-fc.sh

git fc [diffBranch]

list the changed folders

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.