Skip to content

Instantly share code, notes, and snippets.

View metalinspired's full-sized avatar

Milan Divkovic metalinspired

  • Germany
  • 07:34 (UTC +02:00)
View GitHub Profile
@metalinspired
metalinspired / Dockerfile
Created May 20, 2026 09:30
Run FlatCam from within Docker
FROM python:3.12-slim
ARG USERNAME=flatcam
ARG USER_UID=1000
ARG USER_GID=$USER_UID
WORKDIR /app
COPY . .
RUN apt-get update && apt-get install -y --no-install-recommends \
@metalinspired
metalinspired / wget--crawl.sh
Created September 25, 2025 09:56 — forked from steveosoule/wget--crawl.sh
Wget - Options & Sample Crawler
#!/bin/sh
# wget --mirror --adjust-extension --page-requisites --execute robots=off --wait=30 --rand om-wait --convert-links --user-agent=Mozilla http://www.example.com
### V1
# wget \
# --recursive \
# --no-clobber \
# --page-requisites \
# --html-extension \
@metalinspired
metalinspired / main.cpp
Last active June 4, 2025 08:09
TMC2209 UART
/**
* Author Milan Divkovic
*
* You can control the motor with following commands:
* 0: Disables the motor
* 1: Enables the motor
* + or -: Increase or decrease speed in respect to rotation direction
*/
#include <Arduino.h>
<?php
namespace App\Controller;
use Zend\Http\Request;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
class SomeController extends AbstractActionController
{
<?php
$subSelect = new Select();
$subSelect
->from(['head_parent' => $this->config->getTable()])
->columns([])
->join(
['parent' => $this->config->getTable()],
new Expression(
'?.? >= ?.? AND ?.? < ?.?',