Skip to content

Instantly share code, notes, and snippets.

View danielkucera's full-sized avatar

Daniel Kucera danielkucera

View GitHub Profile
@heiso
heiso / printer.cfg
Last active April 7, 2024 21:29
Klipper printer config - Artillery Genius (MKS gen L)
[include mainsail.cfg]
[gcode_macro _CLIENT_VARIABLE]
variable_use_custom_pos : False ; use custom park coordinates for x,y [True/False]
variable_custom_park_x : 0.0 ; custom x position; value must be within your defined min and max of X
variable_custom_park_y : 0.0 ; custom y position; value must be within your defined min and max of Y
variable_custom_park_dz : 2.0 ; custom dz value; the value in mm to lift the nozzle when move to park position
variable_retract : 1.0 ; the value to retract while PAUSE
variable_cancel_retract : 5.0 ; the value to retract while CANCEL_PRINT
variable_speed_retract : 35.0 ; retract speed in mm/s
@hirochachacha
hirochachacha / ccm.go
Created March 24, 2016 05:12
AES CCM Mode
// CCM Mode, defined in
// NIST Special Publication SP 800-38C.
package main
import (
"bytes"
"crypto/aes"
"crypto/cipher"
"errors"
@gabonator
gabonator / api.txt
Created January 16, 2016 10:04
tvheadend json api calls for version 4.0.8
http://admin:admin@192.168.1.239:9981/api/serverinfo
{"sw_version": "4.0.8~wheezy","api_version": 15,"name": "Tvheadend","capabilities": ["caclient","tvadapters","satip_client","satip_server","trace"]}
http://admin:admin@192.168.1.239:9981/api/epg/events/grid
- returns tv listings guilde
http://admin:admin@192.168.1.239:9981/api/channel/list
- returns list of all tv/radio channels
{"entries":[ {"key": "8da5751f0c30fc8317d7d5875ce87bd4","val": "Markiza"}, ... }
@changtimwu
changtimwu / dma_init_fail.md
Last active March 1, 2019 23:20
description of the eth1 DMA initialization fail problem
  • code clip of the error message. drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
   /* DMA initialization and SW reset */
    ret = stmmac_init_dma_engine(priv);
    if (ret < 0) {                                                                                  
        pr_err("%s: DMA initialization failed\n", __func__);
        goto open_error;
    }
@rk295
rk295 / gist:6fb03c65b49273548212
Last active June 9, 2021 11:45
Fortigate Firewall Logstash Grok filter
input {
syslog {
type => "fortigate"
port => 5001
}
}
filter {
if [type] == "fortigate" {
@zonque
zonque / xymodem-mini.c
Last active February 27, 2024 06:31
simple xmodem/ymodem implementation in C
/*
* Minimalistic implementation of the XModem/YModem protocol suite, including
* a compact version of an CRC16 algorithm. The code is just enough to upload
* an image to an MCU that bootstraps itself over an UART.
*
* Copyright (c) 2014 Daniel Mack <github@zonque.org>
*
* License: MIT
*/
@bjoernQ
bjoernQ / AndroidManifest.xml
Created October 14, 2013 13:02
Creating a System Overlay (Always on Top over all Apps) in Android
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.mobilej.overlay"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="14" />
<application android:label="SystemOverlay" >
<activity