Created
July 24, 2019 18:56
-
-
Save plcosta/0d6d2f1342dc41285d6b1457b9b3d1ff to your computer and use it in GitHub Desktop.
Brazilian CPF generator - Fish shell function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cpf | |
set CPF (curl -X POST -w "\n" -d "acao=gerar_cpf" -d "pontuacao=S" -s https://www.4devs.com.br/ferramentas_online.php) | |
if type -q pbcopy | |
echo $CPF | pbcopy; | |
echo "$CPF copied to clipboard" | |
else if type -q xclip | |
echo $CPF | xclip -selection clipboard; | |
echo "$CPF copied to clipboard" | |
else | |
echo $CPF | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment