Skip to content

Instantly share code, notes, and snippets.


Greg Albrecht W2GMD ampledata

View GitHub Profile
View gist:cf54e3996c571280890a
mycall W2GMD-6
heartbeat-timeout 70
filter m/150
login W2GMD-6
passcode xxx
pidfile /var/run/
ampledata /
Created Apr 10, 2015
Example of decoding AX.25/APRS frame using the APRS Python Module utils
#!/usr/bin/env python
import aprs
TEST_FRAMES = 'tests/test_frames.log'
test_frames = open(TEST_FRAMES, 'r')
View gist:48d7cfe984a8dba37dfd
import pygatt
str_buf = ''
def print_str_buf(x,y):
global str_buf
str_y = "%s" % y
if str_y == '$':
print str_buf
sb = str_y
ampledata / gist:b834e2618fef7dba2d3a
Last active Aug 29, 2015
Berkshelf.lock usage pattern
View gist:b834e2618fef7dba2d3a


We'd like changes to our Cookbooks to be automatically tested and deployed using our CI system. Additionally, these Cookbooks must also be automatically propagated to our end-users (developers).

Workflow (today)

Our current workflow is as follows:

  1. Jim, the developer, commits a change to the webapp Cookbook, and pushes that change to Github.
  2. Jenkins, the Continuous Integration system, checks-out the updated webapp Cookbook repo and runs its tests using test-kitchen.
View gist:8603931
ok, trying to come up with a strategy here. I need to setup a subdomain for staging, based on your suggestion here's what I'm thinking:
dns_rr_creator 'create DNS RR for our server based on env' do
rr [node.chef_environment, node['site']].join('.')
ip node['ip_address']
View staging env
"name": "staging",
"default_attributes": {
"site": ""
"json_class": "Chef::Environment",
"chef_type": "environment"
View key
ampledata / aprx.conf
Last active Dec 17, 2015
My W2GMD-6 digi/igate aprx.conf
View aprx.conf
mycall W2GMD-6
heartbeat-timeout 70
filter "p/B2B/WB6RC/W2GMD b/WB6RC*/W2GMD*"
View gist:4321684
View gist:4114757
import fabric.api
import fabric.state
def _sudo(cmd):
"""Wraps ``fabric.operations.sudo`` with custom stuff."""
fabric.operations.sudo("sudo gba %s" % cmd)