Skip to content

Instantly share code, notes, and snippets.

View danielkucera's full-sized avatar

Daniel Kucera danielkucera

View GitHub Profile
@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
@zonque
zonque / xymodem-mini.c
Last active October 17, 2024 20:59
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 <[email protected]>
*
* License: MIT
*/
@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" {
@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;
    }
@gabonator
gabonator / api.txt
Created January 16, 2016 10:04
tvheadend json api calls for version 4.0.8
http://admin:[email protected]:9981/api/serverinfo
{"sw_version": "4.0.8~wheezy","api_version": 15,"name": "Tvheadend","capabilities": ["caclient","tvadapters","satip_client","satip_server","trace"]}
http://admin:[email protected]:9981/api/epg/events/grid
- returns tv listings guilde
http://admin:[email protected]:9981/api/channel/list
- returns list of all tv/radio channels
{"entries":[ {"key": "8da5751f0c30fc8317d7d5875ce87bd4","val": "Markiza"}, ... }
@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"
@heiso
heiso / printer.cfg
Last active September 9, 2024 16:48
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