Continuous Security Group Rule Change Detection & Response at scale

Introduction Get notified of Security Group Changes across all AWS Accounts & Regions in an AWS Organization, with the ability to respond/revert those changes with a single button click from a Slack Channel.This is made easy and possible with the recent announcement of CloudTrail Lake, which helps aggregate CloudTrail logs from all accounts/regions in a queryable(if that’s a word :P) format. The infrastructure needed for this project is deployed as a CDK Application, which deploys a CodeCommit repository and a […]

Read more

Hitters Linear Regression With Python

Kullanacağımız veri seti Carnegie Mellon Üniversitesi’nde bulunan StatLib kütüphanesinden alınmıştır. Veri seti 1988 ASA Grafik Bölümü Poster Oturumu’nda kullanılan verilerin bir parçasıdır. Maaş verileri orijinal olarak Sports Illustrated, 20 Nisan 1987’den alınmıştır. 1986 ve kariyer istatistikleri, Collier Books, Macmillan Publishing Company, New York tarafından yayınlanan 1987 Beyzbol Ansiklopedisi Güncellemesinden elde edilmiştir. Salary yani maaş değişkeninini bu projede linear regression ile tahmin edeceğiz. Veri setini daha yakından tanımak adına değişkenleri tanıyalım: AtBat: 1986–1987 sezonunda bir beyzbol sopası ile topa yapılan vuruş […]

Read more

Raining Outside? Build a Weather CLI App With Python

You’re stuck inside because of torrential rains—again! You wonder what the weather’s like in that faraway city where your friends from the Real Python community live. You’d rather stick around in your command-line interface (CLI) than look it up in your browser. If that sounds like a task you’d want to tackle by building a command-line weather app using only the Python standard library, then this tutorial is for you. In this tutorial, you’ll learn how to: Build a functional […]

Read more

The fastest way to read a CSV in Pandas

You have a large CSV, you’re going to be reading it in to Pandas—but every time you load it, you have to wait for the CSV to load. And that slows down your development feedback loop, and might meaningfully slows down your production processing. But it’s faster to read the data in faster. Let’s see how. In this article we’ll cover: Pandas’ default CSV reading. The faster, more parallel CSV reader introduced in v1.4. A different approach that can make […]

Read more

Python client for MLflow REST API

Python client for MLflow REST API. Features: Minimal dependencies Unlike MLflow Tracking clientall REST API methods and params are exposed to user. MLflow URL is passed via constructor argument instead of env variable,so multiple client instances could be created in the same Python interpreter. Basic and Bearer auth are supported (via constructor args too). All class fields are validated with pydantic. All methods and classes are documented. Limitations: There is no integration with ML frameworks and    

Read more

An Alfred workflow to restore iTerm2 window Arrangements

This alfred workflow will list avaliable iTerm2 arrangements and let you select one to restore. Requirements iterm2: Build 3.4.15 (not tested on other versions but myght work) And the following python libraries: pip3 install iterm2 pip3 install pyobjc This workfllow will use the python from iterm2 on ~/Library/ApplicationSupport/iTerm2/Scripts/get_window_arrangements/iterm2env/versions/3.8.6/bin/python3 Usage Just type iTermA on alfred and it will: Launch iterm2 if its closed List the avaliable window arrangements Restore the selected window arrangement Download Check the releases page to download it. […]

Read more

Pytorch ViT for Image classification on the CIFAR10 dataset

Introduction This project uses ViT to perform image classification tasks on DATA set CIFAR10. The implement of Vit and pretrained weight are from https://github.com/asyml/vision-transformer-pytorch. Installation Create environment: conda create –name vit –file requirements.txt conda activate vit Datasets Download the CIFAR10 from http://www.cs.toronto.edu/~kriz/cifar.html, creat data floder and unzip the cifar-10-python.tar.gz in ‘data/’. python main.py GitHub View Github    

Read more
1 8 9 10 11 12 49