Shell script collection
This repo moved to GitLab.
NAME | DESCRIPTION |
---|---|
PMWMT/ | Scrapes from Poor Man's Webmaster Tools by the Silly Software Company |
markets/ | Scripts related to financial and cryptocurrency markets |
ala.sh | Arch Linux Archives (aka ALA) explorer |
aur.sh | List packages from AUR |
bcalc.sh | Simple wrapper for Bash Bc and Zsh maths that keeps a record of results |
bcalc_ext.bc | bcalc.sh extensions for bash bc |
cep.sh | CEP por nome de rua e vice-versa via api dos Correios brasileiros |
chatgpt.sh | Shell wrapper for ChatGPT (go to repo) |
ctemp.sh | Convert amongst temperature units (Celsius, Fahrenheit and Kelvin) |
datediff.sh | Small shell function library to calculate time ranges in different units (go to repo). |
faster_sh.txt | Tips for improving script performances, specific for some use cases, text document |
geoconv.sh | Convert geocoordinates to various formats |
grep.sh | Grep files with shell built-ins |
inmet.sh | Download satellite images from Brazilian Instituto Nacional de Meteorologia |
ipmet.sh | Download radar images from Brazilian IPMET/SIMEPAR |
md2man.sh | Generate man pages from a pandoc markdown file. |
tkn-cnt.py | Python tiktoken wrapper. |
ul.sh | Generate html lists from URLs |
urlgrep.sh | Grep full-text content from URL list |
wc.sh | Print line, word and character count for files with shell built-ins |
wf.sh | Weather forecast from the Norway Meteorological Institute |
NAME | DESCRIPTION |
---|---|
binfo.sh | Blockchain explorer for bitcoin; uses <blockchain.info> and <blockchair.com> public apis; notification on new block found |
bitcoin.blk.sh | Bitcoin block and blockchain information |
bitcoin.hx.sh | Create base58 address types from public key and WIF from private keys |
bitcoin.tx.sh | Parse transactions by hash or transaction json data |
blockchair.btcoutputs.sh | Download blockchair output dump files systematically |
zzz.bitcoin.parsedTxs.txt | Example of parsed transactions from block 714176 |
Bitcoin scripts warp about bitcoin-cli
(bitcoind) and try to parse data.
bitcoin.tx.sh
is transaction-centred while bitcoin.blk.sh
is block-centred.
Make sure bitcoin-dameon is fully synchonised, otherwise some functions may not work properly!
Tip: have bitcoind set with transaction indexes (option 'txindex=1'), otherwise user may need supply block id hash manually and some vin transaction information is not going to be retrievable.
These wrappers require bash
, bitcoin-cli
and jq
.
Some scripts have got grondilu's bitcoin-bash-tools
functions embedded.
Transaction parsing time depends on the number of vins and vouts. Parsing a few hendred or thousand transactions seems quite feasible for personal use.
NAME | DESCRIPTION |
---|---|
bakkt.sh | Price and contract/volume tickers from bakkt public api |
binance.sh | Binance public API, crypto converter, prices, book depth, coin ticker |
brasilbtc.sh | Fetches bitcoin rates from brazilian exchanges public apis. Puxa cotações de bitcoin de agências de câmbio brasileiras de apis públicas |
cgk.sh | <Coinggecko.com> public api, convert one crypto, bank/fiat currency or metal into any another, market ticker, cryptocurrency ticker. This is my favorite everyday-use script for all-currency rates! |
cmc.sh | <Coinmarketcap.com> convert any amount of one crypto, bank/fiat currency or metal into any another, NON-public api access |
myc.sh | <Mycurrency.net> public api, central bank currency rate converter |
novad.sh | puxa dados das apis públicas da NovaDax brasileira. fetch public api data from NovaDax brazilian enchange |
stocks.sh | <Financialmodelingprep.com> latest and historical stock and major index rates |
uol.sh | Fetches rates from uol service provider public api. Puxa dados de páginas da api pública do uol economia |
whalealert.sh | Data from whale-alert.io free api with the latest whale transactions. |
yahooscrape.sh | Scrape some Yahoo! Finance tickers |
Some scripts require API keys. Please create free API keys and add them to shell environment or set them in the script head source code. Demo api keys were added to the scripts, however they may stop working at any time or get rate limited quickly.
Alguns scripts requerem chaves de API. Por favor, crie chaves de API grátis e as adicione no ambiente da shell ou as configure na cabeça do código-fonte dos scripts. Chaves para fins de demonstração foram adicionadas aos scripts, porém elas podem parar de funcionar a qualquer momento ou serem limitadas rapidamente.
Check script help pages with option -h.
Veja as páginas de ajuda dos scripts com a opção -h.
These scripts can run under Termux, however some of them need a web socket such as websocat
.
Vi's websocat
bincaries for Android (ARM), MacOS and FreeBSD can be downloaded from here.
Hroptatyr's dateutils
can be compiled in Termux. I suggest installing the following packes before trying to build dateutils
as per developer intructions in Termux v0.118.0
:
pkg install gperf flex bison python python2 cmake automake libtool build-essential binutils cmake ctags
I compiled dateutils
binaries a few days ago and I cannot remember specific details.
In general, if needed, check that $TMPD
is set properly (should be set automatically) and review source code for /tmp
references and change to hard location under Termux $PREFIX
or set something like $PREFIX/tmp
in shell scripts.
On other tips, if software is not in the official repos and you cannot compile it from source, try to look for compiled binaries of the software for your platform.
None of these scripts are supposed to be used under truly professional constraints. Do your own research!
Nenhum desses scripts deve ser usado em meio profissional sem análise prévia. Faça sua própria pesquisa!
Grondilu's bitcoin-bash-tools
Kristapsk's bitcoin scripts
Alexander Epstein's currency_bash-snipet.sh uses the same API as erates.sh
https://github.com/alexanderepstein
MiguelMota's Cointop for crypto currency tickers
https://github.com/miguelmota/cointop
8go's CoinBash.sh for CoinMarketCap simple tickers (outdated)
https://github.com/8go/coinbash
Brandleesee's Mop: track stocks the hacker way
https://github.com/mop-tracker/mop
Alexander Epstein's currency_bash-snipet.sh uses the same API as erates.sh
https://github.com/alexanderepstein
MiguelMota's Cointop for crypto currency tickers
https://github.com/miguelmota/cointop
8go's CoinBash.sh for CoinMarketCap simple tickers (outdated)
https://github.com/8go/coinbash
Brandleesee's Mop: track stocks the hacker way
https://github.com/mop-tracker/mop
Packages units
and qalc
(qalculate) also have got
bank currency rate convertion.