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
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
import selenium.common.exceptions | |
import time | |
import datetime | |
import requests | |
import logging | |
import pymongo | |
from pymongo import MongoClient |
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
const { Configuration, OpenAIApi } = require("openai"); | |
const TelegramBot = require('node-telegram-bot-api'); | |
const token = process.env.TELEGRAM_API_KEY_DALLE2; | |
const bot = new TelegramBot(token, {polling: true}); | |
const configuration = new Configuration({ | |
apiKey: process.env.OPEN_AI_KEY, | |
}); | |
const openai = new OpenAIApi(configuration); |
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
const express = require('express') | |
const axios = require('axios'); | |
const app = express() | |
const port = 3000 | |
async function instagramPhotos (theProfile) { | |
// It will contain our photos' links | |
const res = [] | |
try { |
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
"""This is an function to export ALL logs from a logGroup to a s3 bucket. | |
Usage:: | |
Just create a new lambda function and paste this code. | |
I also created a scheduled event with rate(1 hour) | |
""" | |
from __future__ import print_function | |
import boto3 | |
import botocore.exceptions |
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
"""This is an function to get a new accessToken based on the refreshToken. | |
Usage:: | |
Just create an resource and a method on the API Gateway, | |
integrate the request with this lambda function via console, and test it; | |
json used to test; | |
{ | |
"refreshToken":"something" |
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
"""This is an function to signOut users. | |
Usage:: | |
Just create an resource and a method on the API Gateway, | |
integrate the request with this lambda function via console, and test it; | |
json used to test; | |
{ | |
"access_token":"something" |
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
"""This is an function to signIn users. | |
Usage:: | |
Just create an resource and a method on the API Gateway, | |
integrate the request with this lambda function via console, and test it; | |
json used to test; | |
{ | |
"username":"something", |
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
@ECHO OFF | |
title Copiar arquivos de uma pasta para outra pasta, renomeando | |
SET FROM="C:\Users\meta\Documents\Georgea" | |
SET TO="C:\Users\meta\Documents\Felipe" | |
echo copiando arquivos da origem %FROM% para %TO% | |
echo d | xcopy C:\Users\meta\Documents\Georgea C:\Users\meta\Documents\Felipe /e /y /f | |
pause |
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
#!/bin/bash | |
#****************************************************************************** | |
# | |
# Name: kmzToKmL.sh | |
# Project: fretamento | |
# Purpose: Convert series of kmz files into shapeFiles | |
# Author: FCavalcanti, BraveInvestments | |
# Requirements: Make sure ogr2ogr is installed and available on path | |
# Usage: chmod +x kmzToKmL.sh && ./kmzToKmL.sh |
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
admin | |
1 cria empresas (brave) | |
2 cria frota (n brave) | |
cria vehículos / linhas / trajetos / viagens | |
3 cria schedule (n brave) | |
um motorista vai operar um vehículo de uma linha (trajeto e viagem pré definidos) | |
4 cria grupos (n brave) |
NewerOlder