Skip to content

Instantly share code, notes, and snippets.

@dertom95
dertom95 / convert_rss2ghost.py
Last active September 18, 2020 11:55
pebble-blog rss-format to ghost-cms-json-format converter
# pebble-rss to ghost-json converter
# 2020 by thomas trocha
# license: public domain
# use at own risk, make sure you have the right to download files. if not, don't do it
#
# usage: place blog-rss.xml in this script's folder
# modify vars below:
# input_name = name of the pebble-rss.xml-filename
# output_name= converted ghost-cms.json-filename
# download_images= try to download images
@dertom95
dertom95 / Dockerfile-Nakama-arm64v8
Last active November 5, 2023 22:35
Dockerfile to create nakama-image for arm64
## Copyright 2018 The Nakama Authors
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http:##www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## simple logchecker by dertom and heavy stackoverflowing ;)
## can be used with vanilla python: https://www.python.org/ftp/python/3.7.2/python-3.7.2.exe
## or blender's python: [blender-folder]/2.79/python/bin/python.exe
##
## just call: python.exe logexecuter.py
import time
import subprocess
# the logfile to check
logfile = "./log.txt"
// the error will occur after a couple of seconds. It seems that the ZAP-Request to configure
// plain is not processed before the sockets start with their work.
// this will show that loadpasswords throws a nullpointer-exception because it assumes the password file is already
// loaded.
// Adding a sleep after auth.configurePlain(..) helps but is very hacky.
package org.tt.zmq.security;
import java.io.FileWriter;
import java.io.IOException;
@dertom95
dertom95 / pydna.py
Last active October 7, 2023 15:16
Blender: Access DNA-Datablocks from python
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@dertom95
dertom95 / SpaceContext.py
Last active January 3, 2016 15:39
One way to bind data to specific blender spaces.
# snippet to add data to specific space-views by dertom
#
# - alter SpaceContext-PropertyGroup to fit your needs
# - import the SpaceContext to your script: import SpaceContext
# - when needed get the space-context (your SpaceContext-PropertyGroup) via:
# currentSpaceContext = SpaceContext.retrieveSpaceContext(context)
#
# For now you have to press a button to trigger the operation that creates the context for a single space
#
# This sample is indended to be run from the text-editor and will create a panel in each view_3d spaces ui-region.
#!/bin/bash
#
# git-svn-diff originally by (http://mojodna.net/2009/02/24/my-work-git-workflow.html)
# modified by mike@mikepearce.net
# modified by aconway@[redacted] - handle diffs that introduce new files
# modified by t.broyer@ltgt.net - fixes diffs that introduce new files
# modified by m@rkj.me - fix sed syntax issue in OS X
# modified by dertom - fix new file-bug. Whitespace mandatory for new file '+++ file.c'
#
# Generate an SVN-compatible diff against the tip of the tracking branch