Skip to content

Instantly share code, notes, and snippets.

View ceciliassis's full-sized avatar

Cecília Assis ceciliassis

View GitHub Profile
# Ways to execute a shell script in Ruby
# Example Script - Joseph Pecoraro
cmd = "echo 'hi'" # Sample string that can be used
# 1. Kernel#` - commonly called backticks - `cmd`
# This is like many other languages, including bash, PHP, and Perl
# Returns the result of the shell command
# Docs: http://ruby-doc.org/core/classes/Kernel.html#M001111
@ceciliassis
ceciliassis / nubank.sh
Created September 4, 2017 14:05 — forked from DiegoQueiroz/nubank.sh
Baixar dados da fatura em aberto do Nubank.com.br (formato JSON)
#!/bin/bash
# Baixa os dados da fatura em aberto do Nubank
# Uso:
# ./nubank.sh <cpf> <senha>
cpf=$1
senha=$2
if [ "$cpf" == "" ]; then
read -p "Digite o CPF: " cpf