Skip to content

Instantly share code, notes, and snippets.

View mrbungie's full-sized avatar

Germán Oviedo mrbungie

View GitHub Profile
@mrbungie
mrbungie / printer.cfg
Created February 19, 2023 22:50 — forked from joepfortunato/printer.cfg
Ender 5+ Stock Mainboard v2.2 Klipper Working Config File
# This file is an example config file for cartesian style printers.
# One may copy and edit this file to configure a new cartesian
# printer.
# DO NOT COPY THIS FILE WITHOUT CAREFULLY READING AND UPDATING IT
# FIRST. Incorrectly configured parameters may cause damage.
# See docs/Config_Reference.md for a description of parameters.
[stepper_x]
@mrbungie
mrbungie / install_pyenv_mac_zsh.rst
Created February 1, 2023 14:02 — forked from josemarimanio/install_pyenv_mac_zsh.rst
Installing pyenv on macOS for Zsh using Homebrew
@mrbungie
mrbungie / microservices.adoc
Created April 30, 2019 21:08 — forked from kbastani/microservices.adoc
Using Graph Analysis to Design Microservice Architectures in the Cloud

Using Graph Analysis to Design Microservice Architectures in the Cloud

This interactive Neo4j graph tutorial covers how to use graph analysis to find software modules that are highly centralized, making good candidates to be decomposed into microservices.


@mrbungie
mrbungie / Dockerfile
Last active January 20, 2017 11:29
Dockerfile - Redash with teradata support
FROM ubuntu:trusty
# Ubuntu packages
RUN apt-get update && \
apt-get install -y python-pip python-dev curl build-essential pwgen libffi-dev sudo git-core wget \
# Postgres client
libpq-dev \
# Additional packages required for data sources:
libssl-dev libmysqlclient-dev freetds-dev libsasl2-dev && \
apt-get clean && \
@mrbungie
mrbungie / discretizer_sql_sentence.py
Last active July 10, 2017 21:08
discretizer_sql_sentence.py
def create_discretizer_sql(discr_df, table_name, other_cols=[]):
from bciutils.beta_v2.transform.sampling import na_filler
sql_string = "SELECT {other_columns}".format(other_columns=", ".join(other_cols))
if len(other_cols) > 0:
sql_string += ',\n'
columns = list(discr_df["feature_name"].unique())
for column in columns:
sql_string += "CASE "
col_df = discr_df[discr_df["feature_name"] == column]
categories = list(col_df["category"].fillna('NA').unique())
@mrbungie
mrbungie / td.py
Last active January 19, 2017 12:53
import sys
import json
import logging
from redash.query_runner import *
from redash.utils import JSONEncoder
logger = logging.getLogger(__name__)
types_map = {