Skip to content

Instantly share code, notes, and snippets.

probonopd

  • Germany
Block or report user

Report or block probonopd

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
@probonopd
probonopd / squash_gh_pr.md
Last active Jan 6, 2019
Squash GitHub pull requests as the sender
View squash_gh_pr.md

Combine existing GitHub pull requests into one commit

By the "receiver" of the pull request

If you would like to see only one entry for the Pull Request in your project's history, then please enable this GitHub functionality on your repo. It allows you to squash (combine) the commits when merging.

By the "sender" of the pull request

Unfortunately, the "sender" of the pull request does not have a button in the GitHub GUI to squash the commits in an existing pull request. Instead, they need to to it by hand using the command line, which is unfortunately cumbersome but can be done like this:

View kernelci-local.md

Locally reproducing kernelci.org boots

Work in progress.

#!/bin/bash

# Let's say I want to recreate the boot described on
# https://kernelci.org/boot/id/5bd738a859b514802674be00/
# with my local hardware and an SD card
@probonopd
probonopd / ptouch-770.py
Last active Nov 3, 2018
Python script to print multiple lines of text on the Brother PT-H500, P700, E500 label printers
View ptouch-770.py
#!/usr/bin/python3
# Based on https://github.com/SquirrelCZE/ptouch-770
# Trying to add multi-line capabilities.
# Font size calculation/positioning apparently not correct.
# On 12mm tape, the topmost 20px are not printed, the following 84 px are printed
# (as determined by experimentation using calibrate_12mm_tape.pbm made with GIMP)
from PIL import Image, ImageFont, ImageDraw
import argparse
View mxq.md

Linux on MXQ (PCB: S805Q_V2.0) m8b_m201_v1@23a35625

Seems to be also known as the HD18Q "black box". https://www.ebay.de/itm/153205410117 ("NEU MXQ S805 Smart 1GB+ 8GB Smart TV Box Android 4.4 Quad Core 1.5 G WIFI", seller "SILVESTRAS RUNTA Network Tech Co. Ltd"), EUR 14,99

I can boot with meson8b_m201d.dtb and wired Ethernet works.

U-boot thinks it is a 512 MB device. Linux does, too. The SDK used seems to be named "s805_0701_512M":

root@vegas805:~# strings /mnt/lib/hw/camera.amlogic.so | grep home/
View x96.md

Linux on x96 2GB/16GB TV box

Power

CAUTION: When powering it via the VCC line on the internal serial connector, it probably needs 3.3V rather than 5V!

x96 2GB/16GB
View ender-3.md

Creality Ender 3

This page describes my experience with the Creality Ender 3.

  • Tweezers missing
  • Mini USB cable missing
  • No exposed serial port to attach e.g., an ESP8266

Need to check

  • Tension of belts. Too loose = bad print quality
View UltiFi.md

Reviving UltiFi in 2018

UltiFi is a 3d printer host that can run on OpenWrt. I am specifically interested in running it on am A5-V11 router.

Install OpenWRT 18.06.1 on a5-v11

  • original firmware can be logged into with admin/admin
  • Flash openwrt-18.06.1-ramips-rt305x-a5-v11
  • First need to set a password, for this press the reset button when the red light starts flashing until it flashes fast
  • Set computer IP to 192.168.1.
@probonopd
probonopd / gs-plugin-appimage.c
Last active May 21, 2018
Has been moved to https://github.com/probonopd/gs-plugin-appimage WORK IN PROGRESS, comments, answers, hints welcome!
View gs-plugin-appimage.c
/* GNOME Software AppImage plugin
* Licensing to be determined (MIT like AppImageKit or GPLv2 like GNOME Software)
*/
#include <gnome-software.h>
#include <appimage.h> // From https://github.com/AppImage/AppImageKit
#include <sys/stat.h>
/*
Once this plugin is complete, it should:
@probonopd
probonopd / CX300.md
Last active Apr 16, 2019
Polycom CX300 Linux HID
View CX300.md

Polycom CX300 under Linux

The Polycom CX300 and similar Plantronics Calisto 540 (P540-M), snom UC600 are originally optimized for Microsoft Lync (Skype for Business) for Windows and Mac but can also be used with Linux. It shows up as a USB audio playback and recording device (this part works immediately out of the box) plus some USB HID (this needs to be made work; see below).

polycom

Questions

Please use the comments function below if you know the answer to any of the questions

View phones.md

The sorry state of desk phones, 2018

Seemingly I cannot find ONE good desk phone as of 2018 that is not either technically outdated, or cheap-feeling, or unusable, or all of that...

Must have

  • Desk phone
  • SIP
  • G.722
  • "Unlimited" size of address book
You can’t perform that action at this time.