Skip to content

Instantly share code, notes, and snippets.

View stockholmux's full-sized avatar
🚀

Kyle J. Davis stockholmux

🚀
View GitHub Profile

How to for Klipper on Docker (prind) + FYSETC-Portable Input Shaper (PIS)

I have an unusual Klipper setup (multiple printers in Docker) and found that the docs for the PIS and prind didn't meet my needs. This is what I did for my Sovol SV06.

As always, do everything at your own risk. These steps will could be different for your printer and configuration, so use at your own risk.

Setup

<?php
require_once 'vendor/autoload.php';
$client = new Predis\Client([
/* ... */
]);
$client->set('foo', 'bar');
$value = $client->get('foo');
@stockholmux
stockholmux / redirect.fetch.test.node.js
Created January 3, 2014 13:10
When using jsdom, redirects are followed but they do not take into account any cookies that are set during the course of the redirect. Consider the short express app and related jsdom script.
var
jsdom = require('jsdom');
jsdom.env(
'http://localhost:3012/',
["http://code.jquery.com/jquery.js"],
function (errors, window) {
if (errors) {
console.log('error', errors);
} else {
@stockholmux
stockholmux / anchorIssue.html
Created November 5, 2013 13:16
Illustrate issue with onScreen jquery plugin (https://github.com/silvestreh/onScreen) and anchor links
<!DOCTYPE html>
<html>
<head>
<title>on screen test</title>
<style>
.box {
padding-top: 50px;
padding-bottom: 50px;
margin-bottom: 10px;