Skip to content

Instantly share code, notes, and snippets.

View ayan4m1's full-sized avatar

Andrew DeLisa ayan4m1

View GitHub Profile
* 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
#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

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.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/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)

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