This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git Marlin/Configuration.h Marlin/Configuration.h | |
index 949f021d6a..55f5baa152 100644 | |
--- Marlin/Configuration.h | |
+++ Marlin/Configuration.h | |
@@ -296,8 +296,8 @@ Here are some standard links for getting your machine calibrated: | |
* the firmware will halt as a safety precaution. | |
*/ | |
-#define THERMAL_PROTECTION_HOTENDS // Enable thermal protection for all extruders | |
-#define THERMAL_PROTECTION_BED // Enable thermal protection for the heated bed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git Marlin/Configuration.h Marlin/Configuration.h | |
index 949f021d6a..965a523e41 100644 | |
--- Marlin/Configuration.h | |
+++ Marlin/Configuration.h | |
@@ -149,7 +149,7 @@ Here are some standard links for getting your machine calibrated: | |
#define TEMP_SENSOR_1 0 | |
#define TEMP_SENSOR_2 0 | |
#define TEMP_SENSOR_3 0 | |
-#define TEMP_SENSOR_BED 0 | |
+#define TEMP_SENSOR_BED 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ContentView.swift | |
// EnumExtensionPicker | |
// | |
// Created by Chris Jones on 21/08/2020. | |
// | |
import SwiftUI | |
enum Strategy { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function processInbox() { | |
// process all recent threads in the Inbox (see comment to this answer) | |
var threads = GmailApp.search("from:([email protected]) newer_than:1d"); | |
GmailApp.createLabel('Bugzilla'); | |
Logger.log("Got threads: " + threads.length); | |
for (var i = 0; i < threads.length; i++) { | |
processThread(threads[i]); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Configuration data | |
// Each config should have the following keys: | |
// * age_min: maps to 'older_than:' in gmail query terms. | |
// This is how old you want matching emails to be before they are archived. | |
// * age_max: maps to 'newer_than:' in gmail query terms. | |
// This is how far back in history you want to search, to find emails to archive. | |
// It's useful to set fairly long for your first run, but after that set it to a | |
// reasonably low value (don't expect Google to search your entire email archive | |
// every time this script runs!) | |
// * query: freeform gmail query terms to match against |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Person: RawRepresentable, ObservableObject { | |
@Published var name: String | |
@Published var age: Int | |
// RawRepresentable | |
var rawValue: String { | |
get { | |
let value = "\(name):\(age)" | |
print("Returning raw value: "+value) | |
return value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Configuration data | |
// Each config should have the following keys: | |
// * age_min: maps to 'older_than:' in gmail query terms | |
// * age_max: maps to 'newer_than:' in gmail query terms | |
// * query: freeform gmail query terms to match against | |
// | |
// The age_min/age_max values don't need to exist, given the freeform query value, | |
// but age_min forces you to think about how frequent the emails are, and age_max | |
// forces you to not search for every single email tha matches the query | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This hook is for fixing busybox-initramfs issue while unlocking a luks | |
# encrypted rootfs. The problem is that the included busybox version | |
# is stripped down to the point that it breaks cryptroot-unlock script: | |
# https://bugs.launchpad.net/ubuntu/+source/busybox/+bug/1651818 | |
# This is a non-aggressive fix based on the original busybox-initramfs hook | |
# until the bug is fixed. | |
# busybox or busybox-static package must be present for this to work |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Remote syslog to journald bridge | |
After=systemd-journald.service | |
[Service] | |
Type=simple | |
User=nobody | |
Group=nogroup | |
WorkingDirectory=/ | |
ExecStart=/usr/local/bin/syslogreceiver.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
"""syslogreceiver.py - receive remote syslog events and pass them into | |
systemd's journal""" | |
import re | |
import socketserver | |
from systemd import journal | |
HOST, PORT = "0.0.0.0", 514 |