This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: serial-pitm | |
friendly_name: Serial Person in the Middle | |
esp32: | |
board: esp32dev | |
framework: | |
type: arduino | |
# Enable logging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import argparse | |
import datetime | |
import datetime | |
import re | |
class TimeDeltaType(object): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 12e6d1413b975a3d94d9492f0c27966abd3ebba4 Mon Sep 17 00:00:00 2001 | |
From: Rogan Dawes <[email protected]> | |
Date: Thu, 6 Jul 2023 19:39:28 +0200 | |
Subject: [PATCH] WIP: Add support for the Wink Hub v1 | |
--- | |
package/kernel/mac80211/broadcom.mk | 1 + | |
target/linux/mxs/config-5.15 | 4 + | |
target/linux/mxs/image/Makefile | 25 ++++ | |
...-imx28-Add-alternate-DUART-pinmuxing.patch | 41 ++++++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
U-Boot 2015.04 (Sep 02 2016 - 20:09:54) | |
CPU: Freescale i.MX6UL rev1.1 at 396 MHz | |
CPU: Temperature 30 C | |
Reset cause: POR | |
Board: MX6UL Flex Wink Hub V2 | |
I2C: ready | |
DRAM: 512 MiB | |
NAND: 128 MiB | |
In: serial |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() { | |
int i, n, m ; | |
scanf("%d", &n); | |
int o = n; | |
while ( n - o < 999999999 ) { | |
char c = '2'; | |
if ((n%3) == 0) { | |
c = '0'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
# Script to process router log file to list dnsmasq DNS lookup entries and | |
# Kernel DROP entries to correlate which DNS names are being dropped by the | |
# firewall. | |
# | |
# dnsmasq correlates multiple log entries using a random key, and these can | |
# be interleaved with other log entries. | |
# | |
# The idea is to sort the entries according to the key, but in order of time | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include "esphome.h" | |
#include "rapidxml/rapidxml.hpp" | |
static const char *TAG = "currentcost"; | |
class CurrentCostSensor : public Component, public UARTDevice { | |
public: | |
Sensor *ch1 = new Sensor(); | |
Sensor *ch2 = new Sensor(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <elapsedMillis.h> | |
#define PIN_D2 2 | |
#define MAX_BUFFER 16 | |
uint8_t buffer1[MAX_BUFFER], buffer1pos = 0, buffer3[MAX_BUFFER], buffer3pos = 0; | |
char buffer1prefix[] = "E> ", buffer3prefix[] = "A> "; | |
elapsedMillis TimeSinceRead; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /usr/share/usb_modeswitch/2001:ac01 | |
# Run manually if required using: | |
# usb_modeswitch -v 0x2001 -p 0xac01 -c /usr/share/usb_modeswitch/2001:ac01 | |
# D-Link DWM-222 A2 | |
TargetVendor=0x2001 | |
TargetProduct=0x7e3d | |
StandardEject=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "running pre-commit hooks" | |
STAGED_FILES_CMD=`git diff --cached --name-only | grep -E "(\.java$)|(pom.xml)"` | |
# Determine if a file list is passed | |
echo "INPUT: $#" | |
if [ "$#" -eq 1 ] ; then | |
oIFS=$IFS | |
IFS=' | |
' |
NewerOlder