Skip to content

Instantly share code, notes, and snippets.

CalvinHartwell / ceph-install-steps.yaml
Last active Sep 17, 2018
View ceph-install-steps.yaml
First in kubernetes, check that we have the secret setup for Ceph:
calvin@calvinh-ws:~/Source/canonical-kubernetes-demos/cdk-ceph$ kubectl get secrets
ceph-secret 1 14m
If this secret does not exist, I can give the steps to create it. Note that this secret needs to be created for every namespace in the cluster you want to use with the Ceph storage. It contains the API key which is used by k8s to interact with Ceph.
It is explained here, however:
diegopacheco /
Created Jan 19, 2017
Cassandra DUMP: Backup/Restore SIMPLE
git clone
pip install cassandra-driver

python --keyspace system --export-file dump.cql
Cairnarvon /
Created Feb 5, 2013
Graphs downloads per day for PyPI packages using gnuplot, because vanity. Usage: ./ packagename
#!/usr/bin/env python
import bz2
import datetime
import os
import sys
import time
import urllib2
import warnings
uogbuji /
Created Nov 18, 2010
John Gruber's regex to find URLs in plain text, converted to Python/Unicode
import re, urllib
GRUBER_URLINTEXT_PAT = re.compile(ur'(?i)\b((?:https?://|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:\'".,<>?\xab\xbb\u201c\u201d\u2018\u2019]))')
for line in urllib.urlopen(""):
print [ mgroups[0] for mgroups in GRUBER_URLINTEXT_PAT.findall(line) ]