Skip to content

Instantly share code, notes, and snippets.

View ayan4m1's full-sized avatar

Andrew DeLisa ayan4m1

View GitHub Profile

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)
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
Loading
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

Pterodactyl on CentOS 7

# remove wifi card firmwares
yum remove -y iwl*-firmware
yum update -y

# install extra repos and yum-config-manager
yum install -y epel-release yum-utils http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum-config-manager --disable remi-php54