Skip to content

Instantly share code, notes, and snippets.

@tmo1
tmo1 / nextcloud-caddy-docker.md
Last active September 12, 2024 20:36
Nextcloud behind Caddy as a reverse proxy, using Docker

Introduction

This is a guide to deploying Nextcloud behind a Caddy reverse proxy, both running in Docker containers (an official Nextcloud one and a caddy-docker-proxy one), with the goal of implementing as much as possible via docker-compose files. This is much more difficult than it should be, for a variety of reasons:

  • As with Docker versions of software in general, documentation of the software does not always apply to the Docker versions, and the Docker documentation does not always include the Docker equivalent ways of doing things.

  • Docker images do not always expose the desired configuration knobs of the underlying software.

  • Nextcloud requires special configuration to run correctly behind a reverse proxy (and again, some of the instructions for this configuration requires modification for

@ctmakro
ctmakro / klipper_on_win7.md
Last active June 20, 2024 11:34
20210526 How to compile and run Klipper (highest performance 3D printer firmware with most awesome features) on Anycubic Kossel (Arduino Mega / atmega2560) + OctoPrint from Windows 7 x64

How to compile and run Klipper on atmega2560 + OctoPrint from Windows 7 x64

Situation

  • I own an Anycubic Kossel delta 3D printer, running custom Marlin firmware, custom mainboard(atmega2560), connected to my PC via USB (USB Serial), controlled mostly via Printrun(Pronterface)
  • I want ultra high performance and latest improvements in my 3D printer, with the help from Klipper software/firmware
  • Normally you should go get an Raspberry Pi and do everything (compile/install Klipper / OctoPrint) from there, but I don't have a Pi, don't want to mess with the cables, decided to run Klipper from my PC

Steps

@rajeevan
rajeevan / Configuration.h
Last active January 29, 2021 11:09
Anycubic kossel linear plus with Marlin 1.1.x Firmware
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@Islandman93
Islandman93 / smoothstep.ipynb
Last active January 11, 2021 14:36
Smooth step
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Trying to understand the math involved in
# https://github.com/synthetos/TinyG/blob/master/firmware/tinyg/plan_exec.c
# https://github.com/synthetos/g2/blob/master/g2core/plan_exec.cpp#L693
# https://github.com/synthetos/g2/blob/master/g2core/planner.h
# https://github.com/synthetos/g2/blob/92e455e965e2a68741218ca9b10162b70e45ffa2/g2core/plan_zoid.cpp
import sympy as sp
import sympy.abc as abc
@RSDuck
RSDuck / event.nim
Last active May 26, 2017 19:39
Nim event system
import macros, tables, hashes, strutils, oids
type
VariantTypes* = enum
variInt, variFloat32, variString, variBool
Variant* = object
case variant: VariantTypes
of variInt: intVal: int
of variFloat32: float32Val: float32
of variString: stringVal: string
@zacharycarter
zacharycarter / wclwn.md
Last active August 19, 2024 03:44
Binding to C Libraries with Nim
@josuigoa
josuigoa / Accelerometer.hx
Last active June 21, 2017 21:12
Getting accelerometer values with Luxe engine
package;
import luxe.Input;
typedef AccelEvent = {
timestamp:Float,
value:Float,
axis:Int
}
@anissen
anissen / Test.hx
Created March 7, 2016 20:44
Diamond-square algorithm for generating realistic terrain
class Heightmap {
var size :Int;
var tiles :Array<Array<Null<Float>>>;
var d :Int;
public function new() {
}
@anissen
anissen / Perlin.hx
Last active April 12, 2016 13:33
Animated perlin noise example
class Perlin {
public var repeat :Int;
public function new(repeat :Int = -1) {
this.repeat = repeat;
}
public function OctavePerlin(x :Float, y :Float, z :Float, octaves :Int, persistence :Float) {
var total :Float = 0;
var frequency :Float = 1;