Skip to content

Instantly share code, notes, and snippets.

View kalefranz's full-sized avatar

Kale Franz kalefranz

  • Anaconda, Inc.
  • Austin, TX
View GitHub Profile
@kalefranz
kalefranz / conda-repo-clone
Last active June 24, 2021 10:28
Conda Repo Clone
#!/usr/bin/env python
import hashlib
import json
import logging
import logging.handlers
import os
import shutil
import sys
import tempfile
import urllib
@kalefranz
kalefranz / issue-triage.md
Created November 2, 2020 14:49
Triaging Conda Issues
  1. The very first step is to make sure the issue is filed in the correct repo. If the issue belongs in another repo within the conda org, use GitHub’s tools to move it to the appropriate repo. If the issue needs to be moved cross-org, use https://github-issue-mover.appspot.com (apparently it’s currently offline: google/github-issue-mover#150).

    • a specific conda package that is not in defaults channels (e.g. from conda-forge):
      ==> encourage the person filing the issue to file in the appropriate upstream location and close the issue
    • a specific conda package from Anaconda defaults channels:
      ==> file at https://github.com/ContinuumIO/anaconda-issues
  • repo.anaconda.com access and service:
@kalefranz
kalefranz / wait-for-it.sh
Last active March 22, 2019 17:11
mostly POSIX-compliant wait-for-it.sh; works for alpine
#!/bin/sh
# Use this script to test if a given TCP host/port are available
cmdname=$(basename "$0")
echoerr() { if [ "$QUIET" -ne 1 ]; then echo "$@" 1>&2; fi }
usage()
{
cat << USAGE >&2
@kalefranz
kalefranz / ansible_style_guide.md
Created December 18, 2015 06:20
Ansible Style Guide
@kalefranz
kalefranz / ledenet_ufo.py
Created August 24, 2017 08:22
Simple python driver for the LEDENET Magic UFO LED WiFi Controller
# -*- coding: utf-8 -*-
#
# Simple python driver for the LEDENET Magic UFO LED WiFi Controller
#
# License: 3-Clause BSD
# Copyright 2017 Kale J. Franz
#
# Redistribution and use in source and binary forms, with or without modification, are permitted
# provided that the following conditions are met:
#
@kalefranz
kalefranz / strip_tokens.py
Last active August 22, 2017 16:36
Strip binstar tokens
import glob
import json
import os
import re
import shutil
import sys
def split_anaconda_token(url):
"""
Examples:
Verifying that +kalefranz is my blockchain ID. https://onename.com/kalefranz
@kalefranz
kalefranz / config
Created December 18, 2015 13:31
SSH config for proxy
Host 10.32.*.* *.usw2.domain.site !10.32.220.14 !bastion.usw2.domain.site
ServerAliveInterval 60
TCPKeepAlive yes
ProxyCommand ssh -q -A username@10.32.220.14 nc %h %p
ControlPersist 15m
User username
IdentityFile ~/.ssh/my_key
ControlMaster auto
ControlPath ~/.ansible/ansible-ssh-%h-%p-%r
StrictHostKeyChecking no