Skip to content

Instantly share code, notes, and snippets.

Avatar

Greg Albrecht W2GMD ampledata

View GitHub Profile
View gist:cf54e3996c571280890a
mycall W2GMD-6
<aprsis>
server igates.aprs.fi
heartbeat-timeout 70
filter m/150
login W2GMD-6
passcode xxx
</aprsis>
<logging>
pidfile /var/run/aprx.pid
@ampledata
ampledata / util_client.py
Created Apr 10, 2015
Example of decoding AX.25/APRS frame using the APRS Python Module utils
View util_client.py
#!/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
else:
@ampledata
ampledata / gist:b834e2618fef7dba2d3a
Last active Aug 29, 2015
Berkshelf.lock usage pattern
View gist:b834e2618fef7dba2d3a

Goal

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']
end
View staging env
{
"name": "staging",
"default_attributes": {
"site": "api.staging.example.com"
},
"json_class": "Chef::Environment",
"chef_type": "environment"
}
View key
000015-RT6YWB-9EYV8H-DCW8UZ-VM9UVJ-0E5X0V-ENA0XG-K4VFH0-6NANKH-XFZVJ0
@ampledata
ampledata / aprx.conf
Last active Dec 17, 2015
My W2GMD-6 digi/igate aprx.conf
View aprx.conf
mycall W2GMD-6
<aprsis>
server igates.aprs.fi
heartbeat-timeout 70
filter "p/B2B/WB6RC/W2GMD b/WB6RC*/W2GMD*"
</aprsis>
View gist:4321684
http://chortle.ccsu.edu/java5/index.html
http://www.javacodegeeks.com/
http://www.tutorialspoint.com/java/index.htm
View gist:4114757
import fabric.api
import fabric.state
@fabric.api.parallel
def _sudo(cmd):
"""Wraps ``fabric.operations.sudo`` with custom stuff."""
fabric.operations.sudo("sudo gba %s" % cmd)