Skip to content

Instantly share code, notes, and snippets.

@royopa
royopa / analise_dados_saresp.ipynb
Last active March 15, 2023 02:46
analise_dados_saresp.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@royopa
royopa / selenium-php-webdriver-cheatsheet.md
Created January 6, 2020 00:57 — forked from aczietlow/selenium-php-webdriver-cheatsheet.md
Cheat sheet for using php webdriver (facebook/webdriver).

Webdriver PHP API workthough

  • Open a browser

    # start an instance of firefox with selenium-webdriver
    
    $browser_type = 'firefox'
    $host = 'http://localhost:4444/wd/hub'
    

$capabilities = array(\WebDriverCapabilityType::BROWSER_NAME => $browser_type);

# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "peru/windows-10-enterprise-x64-eval"
config.vm.synced_folder "data", "/vagrant_data"
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
vb.gui = true
# Customize the amount of memory on the VM:
####################################################
#
# PowerShell CSV to SQL Import Script
#
####################################################
# Database variables
$database = "SIRAT"
#$server = "localhost\SQLEXPRESS";
$server = "localhost";
@royopa
royopa / ratings_sr_ratings.ipynb
Created August 8, 2019 17:37
ratings_sr_ratings.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@royopa
royopa / dados_cvm_fundos_similaridades.py
Last active June 29, 2019 15:34
dados_cvm_fundos_similaridades.py
# -*- coding: utf-8 -*-
import pandas as pd
from datetime import date
from datetime import timedelta
def get_df_extrato():
# pega o arquivo do último ano disponível no site da CVM
today = date.today()
current_year = today.strftime('%Y')
@royopa
royopa / Dockerfile
Created April 17, 2019 11:05
PHP 7.4
FROM debian:stretch-slim
ARG USER_PUID=1000
ARG USER_PGID=1000
ARG USER_NAME=php
RUN groupadd --gid $USER_PGID $USER_NAME \
&& useradd --uid $USER_PUID --gid $USER_NAME -m $USER_NAME
ENV PHPIZE_DEPS \
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "rsa-key-20171104"
AAAAB3NzaC1yc2EAAAABJQAAAQEAv1VYytlM6yYkosoMRI5M5sQMY3dnckqn1T7q
dmgqZMNuPgATYDBp3L4vaJ1M3bWqGPcSGeEBUCN1G4+gcBXSrp2oK7+hisd5TWiO
BHt8uh/fiy56htQLLCz8JgYZsa1YgRT1Cvb+Ib1diUUJKk6m4zl8jvPV6uvVnLjU
OWc5ysBHrinZqJ7NYBLxlEnaICcApOrWI6owly/w/yoF3WAbvkjK+Qsj5M7ABtvM
ngtE66ylO1T9nRJgw7Y7+Jb+fxUACPdpCR7toUAvc+5SYjjl5mQXELeYOjKN+csc
K0xcGcmR41kBedBK27+dzwYdQouIgBCa8sQAyFDM7lazXw+MaQ==
---- END SSH2 PUBLIC KEY ----
@royopa
royopa / rsync_backup.py
Created July 21, 2017 07:17 — forked from seebk/rsync_backup.py
Python rsync backup script
#!/usr/bin/python3
#######################################################
# Python rsync Backup script
# Sebastian Kraft, 24.06.2013
#
#######################################################
#-----------------------------------------------------
# Config
@royopa
royopa / choco_install.bat
Created March 25, 2017 15:37
my choco install
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
choco install filezilla -y
choco install putty -y
choco install 7zip -y
choco install XmlNotepad -y
choco install githubforwindows -y
choco install pdfcreator -y
choco install FoxitReader -y
choco install jdk8 -y
choco install python3 -y