Skip to content

Instantly share code, notes, and snippets.

Avatar

Janos Tassy janost

View GitHub Profile
@janost
janost / hardverapro-jegelt-kek-hatter.user.js
Last active Aug 3, 2020
userscript - hardverapro.hu - jegelt hirdetések kék háttérrel
View hardverapro-jegelt-kek-hatter.user.js
// ==UserScript==
// @name hardverapro.hu - jegelt hirdetések kék háttérrel
// @namespace Violentmonkey Scripts
// @match *://hardverapro.hu/aprok/*
// @grant none
// @require http://code.jquery.com/jquery-latest.js
// @version 0.1
// @author janost
// @description 8/3/2020, 9:01:56 PM
// ==/UserScript==
View keybase.md

Keybase proof

I hereby claim:

  • I am janost on github.
  • I am janost (https://keybase.io/janost) on keybase.
  • I have a public key ASCzk-hcO7fr1K4aL4AUCYYHQovqFLxg98-Om397FEmudwo

To claim this, I am signing this object:

@janost
janost / modem_status.sh
Last active Jul 28, 2017
Report cable modem up/down status to influxdb/grafana annotation
View modem_status.sh
#!/bin/bash
MODEM_IP="192.168.100.1"
function check_modem() {
nc -z -w1 ${MODEM_IP} 80 > /dev/null
echo $?
}
# Get initial status
@janost
janost / connectbox-influx.py
Last active Sep 15, 2018
Quick, dirty and crappy script to pull DOCSIS connection info from a UPC Connect Box (Compal CH7465LG) and push it to influxdb. Should run as a systemd service. Requires this: https://github.com/ties/compal_CH7465LG_py
View connectbox-influx.py
#!/usr/bin/env python3
import argparse
import pprint
import os
import sys
import datetime
import signal
from time import sleep
from lxml import etree
@janost
janost / soc_temp.sh
Created Oct 17, 2016
Allwinner H3 SoC temperature monitoring Munin plugin
View soc_temp.sh
#!/bin/sh
case $1 in
config)
cat <<'EOM'
graph_title H3 SoC temperature
graph_vlabel degrees Celsius
graph_info The temperature of the H3 SoC in degrees Celsius.
graph_category sensors
graph_args -l 0 --upper-limit 100