Skip to content

Instantly share code, notes, and snippets.

View dkleissa's full-sized avatar

Dean Kleissas dkleissa

View GitHub Profile
@dkleissa
dkleissa / ecr_clean.py
Created February 9, 2022 03:14
A quick script to delete all repositories in AWS ECR
import boto3
client = boto3.client('ecr')
response = client.describe_repositories(maxResults=50)
next_token = response.get('nextToken')
while len(response['repositories']) > 0:
for r in response['repositories']:
print(f"Deleting {r['repositoryName']}")
@dkleissa
dkleissa / setup_python3.sh
Created August 13, 2018 20:38
Getting Python3.6 + pip up and running on AWS Linux
#!/usr/bin/env bash
# Update
sudo yum update
# Install python36, headers, and gcc
sudo yum install python36 python36-devel python36-libs python36-tools git gcc-c++
# Link pip-3.6 to pip3 so you don't lose your mind trying to find pip
sudo ln -s /usr/bin/pip-3.6 /usr/bin/pip3

Keybase proof

I hereby claim:

  • I am dkleissa on github.
  • I am dkleissa (https://keybase.io/dkleissa) on keybase.
  • I have a public key ASCrsHVEvoO0lkgFEvb1MU6rEUmY7XnXQkLmB5didYW3dgo

To claim this, I am signing this object:

@dkleissa
dkleissa / example_text.md
Last active August 13, 2017 18:20
example text 1

Since adding the new regularization code from our collaborators this new method now beats state of the the art. Another key insight was remembering to prune bad edges, which is done now in prune.py

Cell Ouput Captured:

  • iteration_count: 52
  • num_files_analyzed: 542
  • f1-score: 0.671445
@dkleissa
dkleissa / zmq-server.cpp
Created October 31, 2015 00:39
super basic listening zmq server with polling
//
// Hello World server in C++ w/ polling
// Binds REP socket to tcp://*:5555
// Expects "Hello" from client, replies with "World"
//
#include <zmq.hpp>
#include <string>
#include <iostream>
#ifndef _WIN32
#include <unistd.h>