Skip to content

Instantly share code, notes, and snippets.

I'm probably coding.

Alexander Rössler machinekoder

I'm probably coding.
View GitHub Profile
machinekoder / Google Play Api - Apk
Last active Jun 29, 2020 — forked from martarodriguezm/Google Play Api - Apk
This python script uploads an apk file into Google Play Store using Android Play Publisher API
View Google Play Api - Apk

In Google Developer Console inside your app project, on the Credentials section, you must create a new "Service Account" "Client ID", if you have not already. And download the p12 file. You need the service account key file, generated in the Google APIs Console into the same directory and rename it to key.p12.

On Google Play Developer Console you have to give permissions to "" for uploading apks.


Download Google APIs Client Library for Python (google-api-python-client): or use pip:

  $ pip install google-api-python-client
machinekoder / Emacs.kms
Last active Dec 9, 2019
Emacs keys for Qt Creator
View Emacs.kms
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE KeyboardMappingScheme>
<!-- Written by Qt Creator 4.2.1, 2017-03-27T21:24:06. -->
<shortcut id="CppTools.OpenHeaderSourceInNextSplit">
<key value="Ctrl+E, F4"/>
<shortcut id="CppTools.SwitchHeaderSource">
<key value="F4"/>
machinekoder /
Created Feb 7, 2019
Fix .rosinstall file for the time the GitHub is around (see
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import shutil
import sys
import tarfile
import tempfile
from sh import wget
import os
import yaml
machinekoder /
Last active Jan 21, 2019 — forked from mhaberler/
installing ROS kinetic ROS-comm on beaglebone stretch
# derived from
sudo sh -c 'echo "deb stretch main" > /etc/apt/sources.list.d/ros-latest.list'
wget -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
machinekoder /
Created Dec 3, 2018
Cura PostProcessingPlugin for my 3D printer
from ..Script import Script
class SimpleTweak(Script):
def __init__(self):
def getSettingDataString(self):
return """{
"name":"SimpleTweak (for Alex Uni-Print-3D)",
"key": "SimpleTweak",
sudo su
service docker stop
ls -d -1 /var/lib/docker/btrfs/subvolumes/* | xargs btrfs subvolume delete
rm -rf /var/lib/docker
machinekoder /
Created Jul 4, 2015
Registers a new systemd service
import subprocess
import shlex
import sys
import argparse
if sys.version_info[0] > 2:
user_input = input
user_input = raw_input
machinekoder /
Last active Aug 22, 2018
Controlling an RC servo with Machinekit (untested)
# Turn commanded position -5 to +5 into 1-2 mS pulse for RC (hobby) servo
# gain = 1 mS (range) / 50 mS (PWM period) / 10 (units)= 0.002
# offset = 1.5 mS (value) / 50 mS (PWM period) = 0.03
# Resulting PWM values should be between 0.02 and 0.04, representing a
# 1 mS to 2 mS wide pulse
def rc_servo(thread, name, range_ms, offset_ms, period_ms, min_step, max_step, in_signal, out_signal):
gain = range_ms / pwm_ms / (max_step - min_step)
offset = value_ms / pwm_ms
machinekoder / Hotspot
Created Jun 7, 2018
place in /etc/NetworkManager/system-connections/ to create a AP hotspot under Linux
View Hotspot
machinekoder / dxf_postpro.cfg
Created Mar 27, 2018
DXF Postprocessor for Dxf2GCode
View dxf_postpro.cfg
[Number format]
post_decimals = 3
pre_decimal_zero_padding = 0
signed_values = 0
pre_decimals = 4
decimal_seperator = .
post_decimal_zero_padding = 1
cutter_comp_left =
You can’t perform that action at this time.