Skip to content

Instantly share code, notes, and snippets.

Old npm-upgrade repo from Node 10-12.x era

cloc

github.com/AlDanial/cloc v 1.98 T=0.01 s (1216.9 files/s, 67572.7 lines/s)

Language files blank comment code
JSON 5 0 0 8237
JavaScript 19 179 31 791
#!/usr/bin/env bash
now=$(date '+%Y%m%d%H%M%S')
echo -e "SecsElapsed,Temp" >> test-${now}.csv
runtime=900
resolution=5
SECONDS=0
while (( $SECONDS < $runtime )); do
cpu_temp=$($(cat /sys/class/thermal/thermal_zone0/temp) / 1000)
BenchmarkDotNet=v0.13.4, OS=Windows 11 (10.0.22000.1455/21H2)
Intel Core i7-9750H CPU 2.60GHz, 1 CPU, 12 logical and 6 physical cores
.NET SDK=7.0.102
[Host] : .NET 7.0.2 (7.0.222.60605), X64 RyuJIT AVX2
.NET 7.0 : .NET 7.0.2 (7.0.222.60605), X64 RyuJIT AVX2
Job=.NET 7.0 Runtime=.NET 7.0
| Method | Items | Mean | Error | StdDev |
|--------- |------- |---------------:|--------------:|--------------:|
import torch
import cv2
import RRDBNet_arch as arch
import numpy as np
import BLIP.models.blip
import os
from torchvision import transforms
from torchvision.transforms.functional import InterpolationMode
from diffusers import StableDiffusionPipeline, StableDiffusionImg2ImgPipeline, LMSDiscreteScheduler
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

raspberry pi print server

prerequisites

  • Raspberry Pi 3/4
  • USB Printer
  • 8GB+ microSD card
  • 2+ Amp Micro-USB power supply (Pi 3) or 3+ Amp USB-C power supply (Pi 4)

If you're smart, you'll use the 64-bit Lite image, but I didn't find that at first and went with the 64-bit Desktop image. This meant more work cleaning up unnecessary packages.

#include <Arduino.h>
#include <ESP8266WiFi.h>
#define WIFI_SSID "bar"
#define WIFI_PSK "changeme"
#define IFTTT_WEBHOOK_URL "https://maker.ifttt.com/trigger/YOUR EVENT NAME HERE/with/key/YOUR KEY HERE"
#define IFTTT_WEBHOOK_HOST "maker.ifttt.com"
#define IFTTT_WEBHOOK_PORT 80
#define HTTP_TIMEOUT 5 // 5 seconds
* AppleSkin - Adds saturation info to hunger bar
* Biomes O' Plenty - Tons of new biomes
* Chameleon - Library
* Chisel - Adds a ton of blocks
* Clumps - clumps XP orbs
* Corail Tombstone - "death chest"
* CraftTweaker2
* CTM - Library
* FoamFix - Performance
* Inventory Tweaks - Auto replace broken tools and auto-sort chests/inventory
  1. Ensure display (rainbow ribbon cable) is connected
  2. Ensure bowden tube is secured to hotend and extruder collet with clips
  3. Ensure screws holding the Z-coupler to the Z leadscrew are one turn from tight
  4. Ensure Z axis moves freely - check for "bind points" near the top and bottom of the leadscrew
  5. Ensure the X and Y axes move freely across their entire range of motion with no snagging of cables
  6. Ensure that the gantry is level and frame is tight
  7. Ensure that the X and Y belts are tight - they should be like a guitar string. If a belt is loose, locate the belt tensioner (X axis, on the right side) and loosen (do not remove) the two bolts that attach the tensioner to the gantry. Then pull the tensioner to the right until the belt is taut and tighten both bolts while still holding the tensioner in place.
  8. Tighten all four bed adjustment screws so that the bed is as low (i.e. far away from the nozzle) as possible
  9. Ensure that the Z and X endstops are connected!!!
  10. Place the build mat on the b