Skip to content

Instantly share code, notes, and snippets.

View metalinspired's full-sized avatar

Milan Divkovic metalinspired

  • Germany
  • 11:46 (UTC +02:00)
View GitHub Profile
@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 ?.? < ?.?',