Skip to content

Instantly share code, notes, and snippets.

🕹

Thomas Aglassinger roskakori

🕹
Block or report user

Report or block roskakori

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
@roskakori
roskakori / remove_synology_media_orphans.sh
Created Apr 3, 2019
After moving or removing media files on a Synology NAS the previews etc do not update correctly and will remain visible despite the files being gone. This script collected from the Synology forums removes the orphan data from the media database. Credits go to various users of the Synology forums.
View remove_synology_media_orphans.sh
#!/bin/sh
# Usage: ./remove_orphans.sh [-f]
#
# Run this after moving / removing media files on a Synology NAS.
[ "$1" = "-f" ] && REMOVE=1
IFS='
'
@roskakori
roskakori / notes_talk_preventing_the_collapse_of_civilization.md
Last active Jun 30, 2019
Notes on talk about "Preventing the collapse of civilisation" (Jonathan Blow)
View notes_talk_preventing_the_collapse_of_civilization.md

Preventing the collpase of civilization

Jonathan Blow at DevGAMM 2019

28:27 "Five 9s" (99.999% uptime) "We don't use this anymore."

30:45 "Software startups are stumbling into a market, not doing software technology well."

@roskakori
roskakori / notes_talk_subnautica_postmortem.md
Last active May 12, 2019
Notes on GDC talk about Subnautica postmortem (Jonas Bötel)
View notes_talk_subnautica_postmortem.md

Subnautica postmortem

  • 14:24 "We added telemetry and feedback systems": in game feedback form, all feedbacks are public
  • 16:00 feedback includes position on map
  • 19:26 "people were telling us we were making a horror game, which was never our intent"
  • 19:42 on how to set priorities for increasing sales during early access
    • "look at your spikes, focus on what makes your game stand out, do more of that"
@roskakori
roskakori / writexml.py
Created Jul 7, 2012
Different variants of writting XML in Python
View writexml.py
# -*- coding: utf-8 -*-
'''
Example code to write large output in XML with Unicode and namespaces.
This code has been referenced in a lightning talk I gave at EuroPython 2012
in Florence.
'''
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
# and/or modify it under the terms of the Do What The Fuck You Want
# To Public License, Version 2, as published by Sam Hocevar. See
@roskakori
roskakori / geocaching_schlaflos_im_laendle.py
Last active Dec 21, 2015
Download images for "Schlaflos im Ländle" geocache as described at <http://www.geocaching.com/seek/cache_details.aspx?guid=3052c599-c8bb-4bff-a209-7b23b98bdb1c>. To obtain the required images, start the program sometime around 21:45 CET and let it run until 05:30 CET. You can start it earlier or stop it later but then you might have to ignore so…
View geocaching_schlaflos_im_laendle.py
'''
Download images for "Schlaflos im Ländle" geocache as described at
<http://www.geocaching.com/seek/cache_details.aspx?guid=3052c599-c8bb-4bff-a209-7b23b98bdb1c>.
To obtain the required images, start the program sometime around 21:45 CET and let it run
until 05:30 CET. You can start it earlier or stop it later but then you might have to ignore
some of the images.
'''
import logging
import os
import time
@roskakori
roskakori / errorcodes.py
Last active Dec 11, 2015
Python OS error codes with symbolic name and human readable error message
View errorcodes.py
# Print a list of possible Python OS error codes together with the symbolic
# name in `errno` and the related human readable error message. The output
# uses Trac Wiki syntax so it can be copied and pasted in a Wiki document
# for later reference.
#
# The output depends on platform and language settings.
import errno
import os
print('||=code =||=symbol =||=message =||')
@roskakori
roskakori / picklecache.py
Created Aug 2, 2012
Caching a list of data using pickle
View picklecache.py
'''
Example for caching a list of data using pickle.
'''
import cPickle as pickle
_CachePath = '/tmp/cache.pkl'
def expensiveToComputeData():
# These would be date retrieved from an external file involving lots fo
# computations, validation and so on. This particular example data are
@roskakori
roskakori / essentials.py
Created May 17, 2012
Python essentials
View essentials.py
'''
Python 2.x essentials.
This requires Python 2.5 or later.
'''
from __future__ import with_statement
import codecs
import os
@roskakori
roskakori / dojo_sql_comment_excludes.py
Last active Sep 2, 2015
Coding dojo: SQL code generator for an SQL comment to describe items to exclude.
View dojo_sql_comment_excludes.py
"""
Coding dojo: SQL code generator for an SQL comment to describe items to
exclude.
Write a function that generates an SQL comment describing a list of items to
exclude. Long lists of items should be broken into multiple lines. To make the
test case more managable, the maximum line length is 30.
For example, ['one', 'two'] should result in
@roskakori
roskakori / cutplace_htlwrn_notes
Last active Aug 29, 2015
Notes for HTLWRN team on improving cutplace
View cutplace_htlwrn_notes
Notes for cutplace
------------------
0.9.0, week 2015/xxx
* Thomas: explain test_sql._assert_is_valid_sqlite_statement
0.9.0, week 2015/13
* Thomas: test that field names with non alphanumeric/_ are rejected
* htlwrn: continue SQL
You can’t perform that action at this time.