legacy commands & utils
Project description
handi(handy)
Time Travel
This repository is created and maintained according to ‘one-click’ idea of the author. It contains some frequently-used functions. All you have to do is to just call the corresponding function. It will save your time and your energy for minor jobs.
Installation
$ pip install -U handi
Utilities
- Basic Utility
- [public ip]$ pubip$ 143.87.25.158[private ip]$ prvip$ 192.168.10.121[wifi password]$ sudo wifipass$ /etc/NetworkManager/system-connections/My-Office:psk=12345678…[gps]$ gps$ [22.7702, 112.9578][timer]$ timer cp 1.iso ../$ 3 seconds[encode]$ encode [string]$ encode 12345678$ 3132333435363738[decode]$ decode [string]$ decode 3132333435363738$ 12345678[encrypt]$ encrypt [string] [password]$ encrypt “Nothing is Unlimited.” 12345678$ gAAAAABeIA9OWhfmu6U97CoCdKj0LctEHfs4biG3ts-XULYPR98p1nQ6XKGmW-7D3wIGAWiTvtN73heuO7L7-QLwQZJtPv9qD_kCcofBfJ6UJ–pKcQ8tqY=[decrypt]$ decrypt [string] [password]$ decrypt gAAAAABeIA9OWhfmu6U97CoCdKj0LctEHfs4biG3ts-XULYPR98p1nQ6XKGmW-7D3wIGAWiTvtN73heuO7L7-QLwQZJtPv9qD_kCcofBfJ6UJ–pKcQ8tqY= 12345678$ Nothing is Unlimited.[strong remove]$ srm [repeats] [filename]$ srm 15 accounts.txt[shutdonw]$ boo[terminal clear]$ cls[replace]$ repl [fromstr] [tostr] [path1] [path2] …$ repl junying frank accounts.txt[statistics]$ hash>>hitscommand1/usr/bin/which1/usr/local/bin/ipinfo4/usr/local/bin/version1/usr/local/bin/prvip6/usr/local/bin/timer3/usr/local/bin/srm2/usr/local/bin/oneline1/usr/local/bin/sumup1/bin/rm1/usr/bin/vim1/usr/local/bin/cls1/usr/bin/touch1/usr/bin/sudo1/usr/local/bin/rmlnno11/usr/local/bin/mac1/usr/local/bin/printkey3/bin/ls1/usr/local/bin/gps
- Code Management
- [totalines]$ totalines [ext1] [ext2] …$ totalines py go cpp h java$ 124535[git commit]$ commit
- Text Handling
- [findstr]$ findstr [keystring] [path][column]$ echo Time Machine|column 2$ Machine[row]$ cat accounts.txt|row 2$ frank 9980[sumup]$ sumup [filename]$ cat accounts.txt|column 2|sumup$ 1199899.0125[fromstr]$ fromstr [startmark] [string]$ echo Nothing Lasts.|fromstr “Nothing “$ Lasts.[endstr]$ endstr [endstring] [string]$ echo Nothing lasts.||endstr .$ Nothing Lasts[excludestr]$ excludestr [excludestring1]$ echo abcdEFG|excludestr EFG$ abcd[lenstr]$ lenstr [string]$ lenstr 123456789$ 9[upperstr]$ upperstr [string]$ upperstr gustavKo$ GUSTAVKO[lowerstr]$ lowerstr [string]$ lowerstr ABcD$ abcd[linecount]$ linecount [filename]$ linecount accounts.list$ 14273[concastr]$ concatstr [juncword] [filepath]$ concatstr , 1 2 3 4 5$ 1,2,3,4,5[delete specific lines in file]$ deline [keystring] [filename]$ deline junying accounts.txt
- JSON Handling
- $ chkey [keyname] [inpath]$ delkey [key] [inpath] [outpath]$ findkey [keyname] [inpath]$ printkey [keyname] [inpath] [subkey1] [subkey2]$ replconfval [filepath] [keystring] [findstr] [replacestr] [seperator]$ replconfkey [keystring] [filepath] [quotechar] [replacestring/replacefile]$ rmempty [inpath] [outpath]
License
MIT License <https://choosealicense.com/licenses/mit>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
handi-0.10.2.1.tar.gz
(67.0 kB
view hashes)