Skip to content

Instantly share code, notes, and snippets.

View vlaskz's full-sized avatar
🎸
A guitar player that knows how to code.

Isaias Velasquez vlaskz

🎸
A guitar player that knows how to code.
View GitHub Profile
@vlaskz
vlaskz / loadKeys.js
Last active August 1, 2021 10:59
Load all keys from a redis DB.
const PORT = //put the port number. 6379 by default
const HOST = //host addres
const PWD = //password
const DB = //db instance to connect, it varies from 0-15
var rds = require("redis");
//client retornado. conexão se for usar ssl, se não, não precisa usar tls.
var cli = rds.createClient(PORT, HOST, { auth_pass: PWD, tls: { servername: HOST } });
@vlaskz
vlaskz / searchKeys.js
Last active August 11, 2021 12:17
Query values inside a Redis DB, using a file generated by loadkeys.js to make an array of keys.
const PORT = //the port. 6379 by default
const HOST = //your host address
const PWD = //your password
const DB = //the DB
var rds = require("redis");
var cli = rds.createClient(PORT, HOST, { auth_pass: PWD, tls: { servername: HOST } });
const fs = require("fs");
import boto3, botocore, configparser
def main(s3Client):
print('\nStart of create object script\n')
## Initialize variables for object creation
print('Reading configuration file for bucket name...')
config = readConfig()
bucket_name = config['bucket_name']
source_file_name = config["object_name"] + config['source_file_extension']
import boto3, botocore, json, csv, io, configparser
def main(s3Client):
print('\nStart of convert object script\n')
## Initialize variables for object creation
print('Reading configuration file for bucket name...')
config = readConfig()
bucket_name = config['bucket_name']
bucket_name = config['bucket_name']
import boto3, botocore, configparser
def main(s3Client):
print('\nStart of create bucket script\n')
print('Reading configuration file for bucket name...')
config = readConfig()
bucket_name = config['bucket_name']
print('Verifying that the bucket name is valid...')
import boto3, botocore, json, configparser
def main(s3Client):
print('Starting create website function...\n')
print('Reading configuration file for bucket name...')
config = readConfig()
bucket_name = config['bucket_name']
#### Upload html files
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Principal": "*",
"Action": ["s3:GetObject"],
"Resource": "arn:aws:s3:::notes-bucket-icv-47600000/*"
}]
}
@vlaskz
vlaskz / Readme.md
Created October 4, 2022 12:53 — forked from OlivierLDff/Readme.md
🚀 Git Bash Emojis (Windows)

Open git bash with admin privilege.

cd "C:/Program Files/Git/usr/share/mintty"
mkdir -p emojis
cd emojis
curl https://raw.githubusercontent.com/wiki/mintty/mintty/getemojis > getemojis
./getemojis -d
import time
from selenium import webdriver
from selenium.webdriver import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.firefox.options import Options
from collections import Counter
def get_numbers(driver):