Skip to content

Instantly share code, notes, and snippets.

View ampledata's full-sized avatar

Greg Albrecht W2GMD ampledata

View GitHub Profile
@WxBDM
WxBDM / setup_logging.py
Last active September 26, 2022 17:28
Setting up logging levels using decorators
import logging
from logging.handlers import TimedRotatingFileHandler
import typing as t
LOG_FORMAT = '%(levelname)s %(asctime)s %(message)s'
LOG_FORMATTER = logging.Formatter(LOG_FORMAT)
LOG_LEVELS = {'not set' : logging.NOTSET,
'debug' : logging.DEBUG,
'info' : logging.INFO,
@natcl
natcl / Node-RED_file_upload.json
Last active September 29, 2022 04:33
Node-RED file upload example with built-in http in node.
[
{
"id": "f1ffeb7e.f6451",
"type": "http in",
"z": "c29865fe.249648",
"name": "",
"url": "/upload",
"method": "get",
"upload": false,
"swaggerDoc": "",
@bradfa
bradfa / etc ppp peers wvdial
Last active May 25, 2016 00:16
Ting via USB modem
noauth
name wvdial
#usepeerdns
@jacobian
jacobian / virtualenv-example.rb
Created October 5, 2010 21:36
My first Chef definition: create a virtualenv. Be nice.
# An example of the below
virtualenv "/home/dvcsmirrors/hg" do
owner "root"
group "dvcsmirrors"
mode 0775
packages "Mercurial" => "1.6.3",
"hgsubversion" => "1.1.2"
end