$ docker
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
import matplotlib.pyplot as plt | |
import numpy as np | |
from scipy.stats import norm | |
def plot_distribution(data): | |
plt.hist(data, bins=10, color='blue', edgecolor='black') | |
# plt.xlabel('Decimal Numbers') | |
plt.ylabel('Frequency') |
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
.DEFAULT_GOAL := build | |
.PHONY:fmt vet build | |
fmt: | |
go fmt ./... | |
vet: fmt | |
go vet ./... | |
build: vet |
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
exclude: ^(models/|core_framework/|utils/|.github|jenkins|jenkins_utils) | |
repos: | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v4.5.0 | |
hooks: | |
- id: trailing-whitespace | |
- id: end-of-file-fixer | |
- id: debug-statements | |
- id: check-merge-conflict | |
- id: check-symlinks |
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
import os | |
from urllib import request | |
import ssl | |
from zipfile import ZipFile | |
from io import BytesIO | |
url = URL+saucestorage_id | |
ssl._create_default_https_context = ssl._create_unverified_context |
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 alpine:latest | |
RUN apk update | |
RUN apk add --update --no-cache --virtual .tmp gcc libc-dev linux-headers | |
RUN apk add python3 | |
RUN apk add py3-pip | |
WORKDIR /app | |
COPY ./requirements.txt /app | |
RUN pip3 --no-cache install -r requirements.txt |
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 | |
mkdir %HOMEPATH%\prerun | |
curl -u "$SUACELABS_USERNAME:$SAUCELABS_AUTHTOKEN" --location --request GET "https://api.us-west-1.saucelabs.com/v1/storage/download/$FILE_ID" --output %HOMEPATH%\prerun\suaceLabFile.zip & | |
curl -u "SUACELABS_USERNAME:$SAUCELABS_AUTHTOKEN" --location --request GET "https://api.us-west-1.saucelabs.com/v1/storage/download/$FILE_ID" --output %HOMEPATH%\prerun\unzip_file.py & | |
cd %HOMEPATH%\prerun | |
python unzip_file.py suaceLabFile.zip Chrome |
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 zipfile import ZipFile | |
from os import getcwd, path | |
import sys | |
zipped_file = sys.argv[1] | |
folder_name = sys.argv[2] | |
print(zipped_file) | |
base_dir = str(getcwd()) | |
path_zipped = path.join(base_dir,zipped_file) | |
print(path_zipped) |
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 | |
# Chrome Pre-run v0.9 | |
# Use to download and create a file to later be use for browser user-data-dir | |
# by Victor | |
# >>>>>>> functions <<<<<<<<<< | |
function make_dir(){ | |
mkdir $1 | |
echo ">>>>>>>>>>>>>>>>Making directory" | |
if [ -d "$1" ] |
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
#!/usr/bin/env bash | |
echo "This script will setup webdriver of your choice for selenium and create a template script with appropriate settings" | |
sleep 2 | |
echo "This Script only supports Linux 64 bit and arm64/aarch64 kernel architecture currently" | |
sleep 2 | |
uname="$(uname -m)" | |
case $uname in | |
arm64|aarch64|x86_64 ) |
NewerOlder