Skip to content

Instantly share code, notes, and snippets.

@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active January 11, 2026 15:18
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@moklett
moklett / openconnect.md
Created July 24, 2012 15:21
OpenConnect VPN on Mac OS X

Unfortunately, the Cisco AnyConnect client for Mac conflicts with Pow. And by "conflicts", I mean it causes a grey-screen-of-death kernel panic anytime you connect to the VPN and Pow is installed.

As an alternative, there is OpenConnect, a command-line client for Cisco's AnyConnect SSL VPN.

Here's how to get it set up on Mac OS X:

  1. OpenConnect can be installed via homebrew:

     brew update
    

brew install openconnect

@blanchardjeremy
blanchardjeremy / README.md
Created February 23, 2012 00:18
Django class-based generic views for flatpages

How to use this

This snippet requires that you define each flatpage manually in a urls.py somewhere in your app. This is not ideal for most uses of flatpages. This class based view could probably be abstracted to handle the use case based on the flatpages middleware catching the 404 and seeing if any flatpage matches it.