Don't forget to modify the __inputs
key to match your data source setup. You should also replace the
string your.instance.here
with the instance name associated with your metrics.
View dpssigrokcal.py
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 argparse | |
import subprocess | |
import pathlib | |
import time | |
import scipy.stats | |
import numpy as np |
View hspbatt.py
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 argparse | |
import pathlib | |
import pyshark | |
if __name__ == "__main__": | |
parser = argparse.ArgumentParser() | |
parser.add_argument("-o", "--output", type=lambda s: pathlib.Path(s).expanduser(), required=True) |
View main.py
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 argparse | |
import asyncio | |
import configparser | |
import datetime | |
import influxdb | |
import json | |
import pathlib | |
import requests |
View __README.md
View makekeyboardpcb.py
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 python2 | |
from __future__ import print_function, with_statement, division, generators | |
import argparse | |
import collections | |
import json | |
import pcbnew | |
View spiceresize.sh
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 | |
if ! pgrep -u $(whoami) spice-vdagent; then | |
echo "Starting vdagent" | |
spice-vdagent | |
fi | |
INTERVAL=1 | |
while true; do |
View fixchiselvcd.py
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 argparse | |
import pathlib | |
if __name__ == "__main__": | |
parser = argparse.ArgumentParser() | |
parser.add_argument("-i", "--input", type=pathlib.Path, required=True) | |
parser.add_argument("-o", "--output", type=pathlib.Path, required=True) |
View upload.py
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 argparse | |
import datetime | |
import influxdb | |
import sqlite3 | |
if __name__ == "__main__": | |
parser = argparse.ArgumentParser() |
View README.md
kbtflash
Some time ago, I reversed the protocol used by KBT Pure Pro for flashing its firmware in a hope of being able to flash a custom firmware (or do some BadUSB demonstration). This script is able to upload a firmware binary onto the keyboard.
The binary is obfuscated (already solved on SE) However, the firmware has a 32-bit checksum (at the end of the image),
which does not seem to be any of the commonly used ones (there is this) (EDIT: Actually turned out to be a standard one, see edit below).
If the uploaded firmware checksum does not match, the keyboard stays in the bootloader.
View build-orangepipc-gentoo.py
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 | |
# This script builds a Gentoo image for the Allwinner H3 | |
# Based on http://linux-sunxi.org/H3_Manual_build_howto | |
# Tested on Orange Pi PC | |
set -e | |
function green { | |
echo -e '\033[0;32m'$@'\033[0m' |
NewerOlder