Skip to content

Instantly share code, notes, and snippets.

@minrk
minrk / check-binder
Last active December 20, 2017 14:57
#!/usr/bin/env python3
"""Script to check binder deployment status
checks:
- binderhub chart has latest hub chart
- mybinder has latest binderhub chart
- mybinder has latest repo2docker image
- mybinder prod is up-to-date with staging
"""
"""
Script to get watchers/stars/forks for all repos on a github organization
Set GITHUB_API_TOKEN environment variable if you are hitting the API rate limit
Requires pygithub and Python 3.6:
pip install pygithub
Usage:
@ryanj
ryanj / K8s-basics-with-kubectl-at-SCaLE16x.html
Last active December 24, 2024 00:43
K8s basics with kubectl at #SCaLE16X http://bit.ly/scale-k8s
<section data-transition='concave'>
<section id="local-development-with-kubernetes">
<a href="http://kubernetes.io/"><img src="https://cdn.rawgit.com/ryanj/1aed9676c69ab0073be0beb60ca77a9c/raw/74f82bdfb47f1addaca529e8ee63ed678356a62f/kubernetes-blueprint-logo.svg" alt="kubernetes" style='width:30%;'></a>
<h2>Kubernetes Basics</h2>
<p>with</p>
<h1><code>kubectl</code></h1>
<p>
<a href="https://www.socallinuxexpo.org/scale/16x/presentations/hands-intro-kubernetes-kubectl">Thursday, March 8th 13:30-16:30 in Room 211</a><br/>
at <a href="https://www.socallinuxexpo.org/scale/16x/presentations/hands-intro-kubernetes-kubectl">#SCaLE16x</a> in Pasadena, CA</p>
@troyfontaine
troyfontaine / 1-setup.md
Last active August 22, 2025 13:21
Signing your Git Commits on MacOS

Methods of Signing Git Commits on MacOS

Last updated March 13, 2024

This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

"""
Python implementation of https://github.com/jupyterhub/jupyterhub/issues/1261
"""
import json
import requests
username = 'minrk'
password = 'secret'
hub_url = 'http://127.0.0.1:8765'
@minrk
minrk / all-releases
Last active February 28, 2017 07:45
#!/usr/bin/env ruby
# usage:
# ruby all-releases ipython jupyter jupyterlab jupyterhub
# dependencies:
# gem install netrc octokit activesupport faraday-http-cache
require "rubygems"
require "octokit"
@kevin-smets
kevin-smets / 1_kubernetes_on_macOS.md
Last active June 23, 2025 01:06
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites

[package]
name = "Django"
# version = ... # This is omitted, ``setup.py`` must be executed to read it.
summary = """
A high-level Python Web framework that encourages rapid development and\
clean, pragmatic design.\
"""
url = "http://www.djangoproject.com/"
author = "Django Software Foundation"
author-email = "[email protected]"
@zonca
zonca / nginx.conf
Created April 13, 2016 01:28
Jupyterhub NGINX reverse proxy with SSL, replace HOSTNAME with a hostname or _
ser www-data;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 1024;
}
http {