This file contains 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
import argparse | |
import json | |
import signal | |
import time | |
import timeit | |
start_time = timeit.default_timer() | |
parser = argparse.ArgumentParser() | |
parser.add_argument('--no-heartbeat', action='store_true', help='disable heartbeat logs') |
This file contains 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
import logging | |
import os | |
import signal | |
import sys | |
import time | |
import timeit | |
start_time = timeit.default_timer() | |
logger = logging.getLogger(__name__) |
This file contains 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
param( | |
[int][Parameter(Mandatory)]$Timeout, | |
[int][Parameter(Mandatory)]$KillTimeout, | |
[string[]][Parameter(Mandatory, ValueFromRemainingArguments)]$Arguments | |
) | |
$ErrorActionPreference = "stop" | |
$ArgumentsString = $Arguments[1..$Arguments.Length] -replace "^|$", "`"" -join " " |
This file contains 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
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
server { |
This file contains 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
param( | |
[ValidateSet("serve", "monitor")] | |
[Parameter(Mandatory = $true)] | |
[string]$Command, | |
[string]$Address = "255.255.255.255", | |
[int]$Port = 5606 | |
) | |
if ($Command -eq "serve") { |
This file contains 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
import socket | |
import time | |
def serve(port): | |
with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as sock: | |
sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1) | |
while True: | |
sock.sendto(bytes(time.ctime(), encoding='utf-8'), ('<broadcast>', port)) | |
time.sleep(1) |
This file contains 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
[ START GCODE ] | |
--------------- | |
M140 S{material_bed_temperature} | |
G28 ;Home | |
M190 S{material_bed_temperature} | |
M109 S{material_print_temperature_layer_0} | |
G90 ;Absolute positioning | |
G1 Z1 F6000 ;Move the head up slightly | |
G92 E0 ;Reset extruder | |
G1 F200 E5 ;Extrude filament onto buildplate |
This file contains 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
(?:\s|\A)(?:(?:--test)[\s=]?)(.+?)(?:\s|\z) |
This file contains 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
Font=Consolas | |
FontHeight=12 | |
FontSmoothing=full | |
AllowBlinking=yes | |
Columns=128 | |
Rows=64 | |
PgUpDnScroll=yes | |
ThemeFile= | |
Transparency= | |
BoldAsFont=no |
This file contains 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
package main | |
import ( | |
"fmt" | |
"os" | |
"strconv" | |
"time" | |
) | |
func main() { |
NewerOlder