Skip to content

Instantly share code, notes, and snippets.

View bil-bas's full-sized avatar

Bil Bas bil-bas

View GitHub Profile
@foosel
foosel / rewrite_wait_to_busy.py
Last active May 23, 2024 11:33
OctoPrint plugin that rewrites received wait responses to echo:busy processing for broken firmware misunderstanding when wait should be used. Place in ~/.octoprint/plugins
# coding=utf-8
import logging
def rewrite_wait_to_busy(comm_instance, line, *args, **kwargs):
if line == "wait" or line.startswith("wait"):
return "echo:busy processing"
else:
return line
@tyrell
tyrell / docker-install-rpi3.md
Last active December 22, 2023 07:36
Installing latest Docker on a Raspberry Pi 3

Introduction

I wrote this gist to record the steps I followed to get docker running in my Raspberry Pi 3. The ARM ported debian version (Jessie) comes with an old version of docker. It is so old that the docker hub it tries to interact with doesn't work anymore :)

Hopefully this gist will help someone else to get docker running in their Raspberry Pi 3.

Installation

From original instructions at http://blog.hypriot.com/post/run-docker-rpi3-with-wifi/

@Speljohan
Speljohan / gist:5124955
Last active December 14, 2015 17:49 — forked from kabakiyo/gist:3226618
Support for SIMILAR TO and ILIKE in PostgreSQL Datamapper.
require 'dm-core'
require 'dm-do-adapter'
# Credits to kabakiyo for the ILIKE Comparator.
module DataMapper
class Query
module Conditions
class SimilarToComparison < AbstractComparison
slug :similar