Skip to content

Instantly share code, notes, and snippets.

Kristian Glass doismellburning

Block or report user

Report or block doismellburning

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View olc.h
* The version info. Please use this info when reporting bugs.
* It is displayed in the game by typing 'version' while editing.
* Do not remove these from the code - by request of Jason Dinkel
#define VERSION "ILAB Online Creation [Beta 1.0, ROM 2.3 modified]\n\r Port a ROM 2.4 v1.00\n\r"
#define AUTHOR " By Jason(\n\r Modified for use with ROM 2.3\n\r By Hans Birkeland (\n\r Modificado para uso en ROM 2.4b4a\n\r Por Birdie (\n\r"
#define DATE " (Apr. 7, 1995 - ROM mod, Apr 16, 1995)\n\r (Port a ROM 2.4 - Nov 2, 1996)\n\r Version actual : 1.5a - Mar 9, 1997\n\r"
#define CREDITS " Original by Surreality( and Locke("

I know installing packages from both apt and pip can be ick but any tips on troubleshooting this please:

[2018-04-03T18:59:54+0000 pi@raspberrypi ~] $ sudo apt-get install python3-pyqt5
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-pyqt5 is already the newest version (5.7+dfsg-5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
doismellburning / out.txt
Last active Jan 4, 2017
Django TestClient sessions - what am I missing...?
View out.txt
FAIL: test_clear_token_with_token (article.tests.test_views.ArticleViewsTest)
Traceback (most recent call last):
File "/root/article/tests/", line 92, in test_clear_token_with_token
AssertionError: unexpectedly None
doismellburning /
Created Dec 20, 2016
Running Django on EC2? Use this if you need your instance's IP in `ALLOWED_HOSTS`
try: # pragma: no cover
# From
_local_ip = requests.get(
except requests.exceptions.RequestException:
View cd

I'm really interested in how y'all are doing Continuous Integration/Deployment of your Infrastructure-as-Code (particularly CloudFormation), especially without disruption to users!

Specifically, I'm trying to automate a "manual CloudFormation setup". Right now that's "templates in git with humans periodically run update-stack"; ideally it would become "PR merged? Rolling out the change".

(Part of me feels like I have "too many questions" and really just need to see a working setup, but hey)

doismellburning /
Created Jun 14, 2016
Non-interactively create/set a Django superuser
# -*- coding: utf-8 -*-
from import BaseCommand, CommandError
from django.contrib.auth import get_user_model
from django.conf import settings
from django.db import transaction
class Command(BaseCommand):
# Excerpt
INT=$(iwconfig 2> /dev/null | grep -v "^ " | awk '{print $1}' | head -1 | egrep "^[a-z]")
if [ $? -eq 0 ]
echo "Removing Existing interface ${INT}"
ifconfig ${INT} down
iw dev ${INT} del
sleep 1
View autolink.patch
doismellburning /
Last active Oct 30, 2017
Conference User Stories
View anchor.patch
commit d2a403c85ef68c4119de9208c15e9c4dc5df9b9b
Author: Kristian Glass <>
Date: Fri Oct 31 00:36:56 2014 +0000
Magic anchor links
With thanks to
diff --git a/_config.yml b/_config.yml
index 1b00c31..ad61734 100644
You can’t perform that action at this time.