Skip to content

Instantly share code, notes, and snippets.

💻
I'm probably coding.

Alexander Rössler machinekoder

💻
I'm probably coding.
Block or report user

Report or block machinekoder

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
@machinekoder
machinekoder / Google Play Api - Apk Upload.md
Last active Sep 3, 2019 — forked from martarodriguezm/Google Play Api - Apk Upload.md
This python script uploads an apk file into Google Play Store using Android Play Publisher API
View Google Play Api - Apk Upload.md

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 "YOUR_SERVICE_ACCOUNT_EMAIL@developer.gserviceaccount.com" for uploading apks.

Installation

Download Google APIs Client Library for Python (google-api-python-client): https://code.google.com/p/google-api-python-client/ or use pip:

  $ pip install google-api-python-client
@machinekoder
machinekoder / Emacs.kms
Last active Jun 26, 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. -->
<mapping>
<shortcut id="CppTools.OpenHeaderSourceInNextSplit">
<key value="Ctrl+E, F4"/>
</shortcut>
<shortcut id="CppTools.SwitchHeaderSource">
<key value="F4"/>
</shortcut>
@machinekoder
machinekoder / fix_rosinstall.py
Created Feb 7, 2019
Fix .rosinstall file for the time the GitHub is around (see https://github.com/vcstools/vcstools/issues/147)
View fix_rosinstall.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import shutil
import sys
import tarfile
import tempfile
from sh import wget
import os
import yaml
@machinekoder
machinekoder / ros-bb-stretch.sh
Last active Jan 21, 2019 — forked from mhaberler/ros-bb-jessie.sh
installing ROS kinetic ROS-comm on beaglebone stretch
View ros-bb-stretch.sh
# derived from http://wiki.ros.org/ROSberryPi/Installing%20ROS%20Kinetic%20on%20Raspberry%20Pi
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu stretch main" > /etc/apt/sources.list.d/ros-latest.list'
wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
@machinekoder
machinekoder / SimpleTweak.py
Created Dec 3, 2018
Cura PostProcessingPlugin for my 3D printer
View SimpleTweak.py
from ..Script import Script
class SimpleTweak(Script):
def __init__(self):
super().__init__()
def getSettingDataString(self):
return """{
"name":"SimpleTweak (for Alex Uni-Print-3D)",
"key": "SimpleTweak",
"metadata":{},
View btrfs_cleanup.sh
sudo su
service docker stop
ls -d -1 /var/lib/docker/btrfs/subvolumes/* | xargs btrfs subvolume delete
rm -rf /var/lib/docker
@machinekoder
machinekoder / register.py
Created Jul 4, 2015
Registers a new systemd service
View register.py
#!/usr/bin/python
import subprocess
import shlex
import sys
import argparse
if sys.version_info[0] > 2:
user_input = input
else:
user_input = raw_input
@machinekoder
machinekoder / rc_servo_machinekit.py
Last active Aug 22, 2018
Controlling an RC servo with Machinekit (untested)
View rc_servo_machinekit.py
# 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
machinekoder / Hotspot
Created Jun 7, 2018
place in /etc/NetworkManager/system-connections/ to create a AP hotspot under Linux
View Hotspot
[connection]
id=Hotspot
uuid=bd4058b4-f99e-48f9-ac88-26513b9ac517
type=wifi
autoconnect=true
permissions=
[wifi]
hidden=false
mac-address=00:0F:60:06:EE:BE
@machinekoder
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
[Program]
cutter_comp_left =
You can’t perform that action at this time.