Skip to content

Instantly share code, notes, and snippets.


Blake Niemyjski niemyjski

View GitHub Profile
View Marlin-
diff -Naur ./Marlin/Marlin/Configuration.h ./Marlin-patched/Marlin/Configuration.h
--- ./Marlin/Marlin/Configuration.h 2020-02-25 15:06:10.000000000 -0500
+++ ./Marlin-patched/Marlin/Configuration.h 2020-02-25 15:35:58.000000000 -0500
@@ -1,3 +1,7 @@
+// This is all the base stuff + manual mesh bed levelling, so that users who have a stock printer
+// and an SKR Mini E3 can use this patch
* Marlin 3D Printer Firmware
AdamNaj /
Last active Nov 18, 2020
Z Wave Graph for Home Assistant
View Ender3Cura15.ini
layer_height = 0.15
wall_thickness = 1.2
retraction_enable = True
solid_layer_thickness = 1.2
fill_density = 15
print_speed = 50
print_temperature = 200
print_temperature2 = 0
print_temperature3 = 0
ciotlosm /
Last active Aug 2, 2021
Kiosk mode for lovelace

Kiosk mode


Add kiosk.js file with the content below to your www folder in config.

Like any other custom script, use ui-lovelace.yaml resources section to reference the kiosk.js file.

Make sure you add kiosk somewhere in your URL. You can use it in the id of your view or in the query string.

dale3h /
Created Jun 29, 2018
Lovelace UI Migration Script
Migration tool for Home Assistant Lovelace UI.
import argparse
import logging
import sys
import json
from collections import OrderedDict
from getpass import getpass
attilah / X.Y.Z.Sources.csproj
Last active Jul 22, 2021
X.Y.Z.Sources nuget package
View X.Y.Z.Sources.csproj
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
wojteklu /
Last active Sep 23, 2021
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.

General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

alekseykulikov /
Last active Aug 8, 2020
Principles we use to write CSS for modern browsers

Recently CSS has got a lot of negativity. But I would like to defend it and show, that with good naming convention CSS works pretty well.

My 3 developers team has just developed React.js application with 7668 lines of CSS (and just 2 !important). During one year of development we had 0 issues with CSS. No refactoring typos, no style leaks, no performance problems, possibly, it is the most stable part of our application.

Here are main principles we use to write CSS for modern (IE11+) browsers:

niemyjski /
Created Jul 19, 2016 — forked from JonCole/
Diagnosing Redis errors caused by issues on the client side

Diagnosing Redis errors on the client side

Customers periodically ask "Why am I getting errors when talking to Redis". The answer is complicated - it could be a client or server side problem. In this article, I am going to talk about client side issues. For server side issues, see here

Clients can see connectivity issues or timeouts for several reason, here are some of the common ones I see:

###Memory pressure

pandafulmanda / Python3 Virtualenv
Last active Sep 21, 2021 — forked from akszydelko/Python3 Virtualenv
Setting up and using Python3 Virtualenv on Mac
View Python3 Virtualenv

Python3 Virtualenv Setup

  • Python 3
  • Pip 3
$ brew install python3