Skip to content

Instantly share code, notes, and snippets.

View kragniz's full-sized avatar
🥀
🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓

Louis Taylor kragniz

🥀
🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓
View GitHub Profile
@kragniz
kragniz / keystone
Created August 28, 2014 13:21
Keystone traceback
[Thu Aug 28 13:14:55.023769 2014] [:error] [pid 1534:tid 139830384756480] 1534 DEBUG keystone.middleware.core [-] Auth token not in the request header. Will not build auth context. process_request /opt/stack/keystone/keystone/middleware/core.py:276
[Thu Aug 28 13:14:55.025097 2014] [:error] [pid 1534:tid 139830384756480] 1534 DEBUG keystone.common.wsgi [-] arg_dict: {} __call__ /opt/stack/keystone/keystone/common/wsgi.py:183
[Thu Aug 28 13:14:55.025592 2014] [:error] [pid 1534:tid 139830384756480] 1534 WARNING keystone.common.wsgi [-] Could not find version: v2.0
[Thu Aug 28 13:14:55.029426 2014] [:error] [pid 1530:tid 139830384756480] 1530 DEBUG keystone.middleware.core [-] Auth token not in the request header. Will not build auth context. process_request /opt/stack/keystone/keystone/middleware/core.py:276
[Thu Aug 28 13:14:55.030977 2014] [:error] [pid 1530:tid 139830384756480] 1530 DEBUG keystone.common.wsgi [-] arg_dict: {} __call__ /opt/stack/keystone/keystone/common/wsgi.py:183
[Thu Aug 28 13:14:55.0343
@kragniz
kragniz / images.py
Created August 26, 2014 08:18
glance/api/v1/images.py
if (image_size_store and
image_size_store != image_size_meta):
msg = (_LW("Provided image size must match the stored"
" image size. (provided size: %(ps)d, "
"stored size: %(ss)d)") % {
"ps": image_size_meta,
"ss": image_size_store})
LOG.warn(msg)
raise HTTPConflict(explanation=msg,
request=req,
import sys, tty, termios
def read_char():
'''
Read a single character from a unix terminal and immediately return it.
'''
# grab a file descriptor
fd = sys.stdin.fileno()
old_settings = termios.tcgetattr(fd)
try:
@kragniz
kragniz / long_distance.py
Created June 12, 2014 18:33
Race courses
[
(38.067489220, -122.232032748),
(38.065881344, -122.236984956),
(38.064899836, -122.246668872),
(38.065863818, -122.255217433),
(38.067685000, -122.258500000),
(38.067134502, -122.254282434),
(38.066696337, -122.246312682),
(38.066932947, -122.237118528),
(38.067221000, -122.232100000),
@kragniz
kragniz / _
Last active August 29, 2015 14:02
sail_sponsors
_
# -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <codecell>
trial = {}
def make_time_temp(string_to_parse):
first_time = None
last_time, last_temp = 0, 0
@kragniz
kragniz / Bridge.py
Last active January 4, 2016 07:59 — forked from hmurraydavis/Bridge.py
#! /usr/bin/python
"""Copyright 2011 Phidgets Inc.
This work is licensed under the Creative Commons Attribution 2.5 Canada License.
To view a copy of this license, visit http://creativecommons.org/licenses/by/2.5/ca/
"""
__author__="Adam Stelmack"
__version__="2.1.8"
__date__ ="14-Jan-2011 2:29:14 PM"
@kragniz
kragniz / extract
Last active January 2, 2016 12:59
Extract urls from debian error messages
#!/usr/bin/env python
import re, sys
for l in sys.stderr.readlines():
url = re.findall(r'http:.+\.deb', l)
if len(url):
print url[0]
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kragniz
kragniz / micropython-logo.svg
Created January 4, 2014 20:01
Micopython logo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.