This file contains hidden or 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
sudo systemctl enable docker | |
#To disable this behavior, use disable instead. | |
sudo systemctl disable docker | |
This file contains hidden or 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
sudo add-apt-repository ppa:webupd8team/sublime-text-3 | |
sudo apt-get update | |
sudo apt-get install sublime-text-installer |
This file contains hidden or 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
import urllib.request,os,hashlib; h = 'df21e130d211cfc94d9b0905775a7c0f' + '1e3d39e33b79698005270310898eea76'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by) | |
This file contains hidden or 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
aws dynamodb scan --table-name leads --filter-expression "credor = :s" \ | |
--expression-attribute-values '{ ":s": { "S": "REDECARD" } }' \ | |
--limit 10 |
This file contains hidden or 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
class Process { | |
chunk(leads, count) { | |
const X = count; | |
return leads.reduce((ar, it, i) => { | |
const ix = Math.floor(i / X); | |
if (!ar[ix]) ar[ix] = []; | |
ar[ix].push(it); |
This file contains hidden or 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
scp -pr -i ~/.ssh/id_rsa_openshift URL: . |
This file contains hidden or 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
aws dynamodb scan --table-name leads \ | |
--select COUNT \ | |
--filter-expression "credor = :s and #lead_status = :st" \ | |
--expression-attribute-names '{"#lead_status": "status"}' \ | |
--expression-attribute-values '{ ":s": { "S": "REDECARD" }, ":st": { "S": "active" } }' |
This file contains hidden or 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
docker run --rm -it alpine frolvlad/alpine-python3 |
This file contains hidden or 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
#sudo docker run --rm rocker/rstudio | |
sudo docker run -d -p 8787:8787 -v ~/Documents/Impacta:/home/rstudio/Impacta rocker/rstudio | |
echo 'Running at localhost:8787' |
This file contains hidden or 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
#Calcule Media, Max, Min, Moda, Media, Variância e | |
#Desvio Padrão dos atributos possíveis. | |
setwd('/home/rstudio/impacta/POS-BI_AULA_31082017/aula4/') | |
db1 <- read.table("5_TRANSACAO.txt",header = T,sep="|") | |
head(db1, 2) | |
values <- as.numeric(gsub(",", ".", db1$Valor)) | |
dates <- as.Date(db1$Vencimento) | |
#1 |