Skip to content

Instantly share code, notes, and snippets.

Avatar

Kurt Jacobson KurtJacobson

View GitHub Profile
@KurtJacobson
KurtJacobson / pygraphviz_error.md
Last active Jun 25, 2020
pygraphviz installation error and resolution
View pygraphviz_error.md

Error when trying to install pygraphviz on Linux Mint 19.3.

Resolution

sudo apt-get install python-dev graphviz libgraphviz-dev pkg-config
pip install pygraphviz

Error

pip install pygraphviz.

@KurtJacobson
KurtJacobson / speed-up-debian9-boot.md
Last active Mar 15, 2019
Fix Debian 9 (Stretch) "A start job is ruining for Raise network interfaces" hang at boot
View speed-up-debian9-boot.md

This fixes A start job is ruining for Raise network interfaces hang

sudo nano /etc/network/interfaces.d/setup

change:

auto lo
iface lo inet loopback

auto eth0
@KurtJacobson
KurtJacobson / pokeys.comp
Created Dec 14, 2018
LinuxCNC HAL pokeys.comp, edited per Andy P to support scaled anolog outputs
View pokeys.comp
component pokeys "PoKeys IO driver, by Mit Zot";
option userspace yes;
pin out bit in-# [55];
pin out float ain-# [3];
pin out bit err;
pin in float analog-scale-# [3];
pin in unsigned devSerial;
@KurtJacobson
KurtJacobson / sys_notify.py
Created Jul 29, 2018
Qt DBus sys notify module for Linux systems
View sys_notify.py
#!/usr/bin/env python
# Copyright (c) 2018 Kurt Jacobson
# <kurtcjacobson@gmail.com>
#
# 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.
#
@KurtJacobson
KurtJacobson / lcnc_rip.sh
Last active Oct 1, 2018
Script to clone, checkout and build a LinuxCNC branch RIP
View lcnc_rip.sh
#!/bin/bash
# default options
BRANCH="master"
DIRECTORY="$PWD/linuxcnc-dev"
# constants
BOLD=`tput bold`
RED=`tput setaf 1`
GREEN=`tput setaf 2`
@KurtJacobson
KurtJacobson / bp_logo.svg
Last active May 30, 2018
Bridgeport Mill Logo SVG
View bp_logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@KurtJacobson
KurtJacobson / building 4.16.8 RT kernel.md
Last active May 25, 2018
Building 4.16.8 kernel with RT patch on Stretch
View building 4.16.8 RT kernel.md
@KurtJacobson
KurtJacobson / building_lcnc.md
Last active Jan 24, 2018
Building LinuxCNC RIP from source
View building_lcnc.md

Building LinuxCNC RIP

Clone the source:
git@github.com:LinuxCNC/linuxcnc.git linuxcnc-dev

Configure:
$ cd linuxcnc-dev
$ cd debian
$ ./configure sim

@KurtJacobson
KurtJacobson / index.html
Created Jan 22, 2018
WebSocket server extension for WeeWx for real time weather data without having to refresh web page.
View index.html
<!DOCTYPE html>
<html>
<head>
<title>WebSocket</title>
</head>
<body>
<h2>WeeWx WebSocket Example</h2>
<p>Example of real time weather data display using WebSockets. The data is
updated on each LOOP packet.
</p>
@KurtJacobson
KurtJacobson / building_pyqt5.md
Last active Sep 26, 2021
Building PyQt5 to support Python2 based QtDesigner Plugins
View building_pyqt5.md

Building PyQt5 to support Python2 based QtDesigner Plugins

As far as I can tell, the reason Qt5 Designer does not load custom PyQt5 widgets is due to the 'stock' shared library libpyqt5.so (which comes with PyQt5) not being built for the correct combination of the Python and Qt versions. It seems the only way to get around this is to build PyQt5 from source so we will have a libpyqt5.so that is correct and will be able to load the custom widgets.

Install Python dev tools