Skip to content

Instantly share code, notes, and snippets.

View godber's full-sized avatar
😺

Austin Godber godber

😺
View GitHub Profile
  • Post Meeting on Meetup
    • Initial announcement - soon after Meetup Posting
      • Announce meeting on Twitter
      • Announce meeting on DesertPy Google Group
    • Reminder Announcement - two days before event
      • Re-Announce meeting on Twitter
      • Re-Announce meeting on DesertPy Google Group
      • Remind people to Update RSVP as comment on Meetup Meeting.
  • During Meetings
  • Cross Promote other meetings
@godber
godber / mosaic_sample1.py
Last active January 14, 2016 13:11
Simple FLIR Pan Tilt Head Python Module
#!/usr/bin/env python
# notional mosaic activity, without image acquisition
# sleeps removed since pan/tilt are now blocking
import time
from ptu import PanTiltUnit
kern.log:Feb 20 06:22:40 hostname gitlab-runner[29279]: Starting multi-runner from /etc/gitlab-runner/config.toml ...
kern.log:Feb 20 06:22:40 hostname gitlab-runner[29279]: Running in system-mode.
kern.log:Feb 20 06:22:40 hostname gitlab-runner[29279]:
kern.log:Feb 20 06:22:40 hostname gitlab-runner[29279]: Checking for builds... received
kern.log:Feb 20 06:22:40 hostname gitlab-runner[29279]: gitlab-ci-multi-runner 1.0.4 (014aa8c)
kern.log:Feb 20 06:22:40 hostname gitlab-runner[29279]: Using Shell executor...
kern.log:Feb 20 06:22:43 hostname gitlab-runner[29279]: 1093 Submitting build to coordinator... ok
kern.log:Feb 20 06:23:45 gitlab-runner[29279]: last message repeated 14 times
kern.log:Feb 20 06:24:45 gitlab-runner[29279]: last message repeated 18 times
kern.log:Feb 20 06:25:45 gitlab-runner[29279]: last message repeated 15 times
@godber
godber / pandas_multirow_apply.py
Last active May 16, 2016 09:50
Pandas Operate on Multiple Rows with Boolean Operator
import pandas as pd
def r(row):
if row['lat'] < 5:
return row['data']
elif row['lat'] >= 5:
return 10 * row['data']
df = pd.DataFrame({ 'data': range(10), 'lat': range(10)}, columns=["lat", "data"])
@godber
godber / ts-top.sh
Last active October 20, 2016 23:14
Ghetto Teraslice Top
watch "\
echo ==== Nodes ==== ; \
echo ; \
curl -s localhost:5678/txt/nodes; \
echo; \
echo ==== Workers ==== ; \
echo; \
curl -s localhost:5678/txt/workers; \
echo; \
echo ==== Slicers ==== ; \
@godber
godber / education-resources.md
Last active April 8, 2017 20:46
DesertPy Notes Tasks
#!/usr/bin/env python
# Create a parameter YAML file: parms1.yml that contains
# m: 1
# b: 5
import yaml
import click
@godber
godber / simple-spec.js
Last active July 13, 2017 21:30
A simple spec file using the new API on the teraslice test harness
'use strict';
var processor = require('../index');
var harness = require('teraslice_op_test_harness')(processor);
describe('With data in is []', function() {
it('data out is []', function() {
expect(harness.run([])).toEqual([]);
});
});
@godber
godber / screen_capture.md
Created January 21, 2018 21:05
OS X Quicktime Screen Capture to GIF
  • Record video with OS X Quicktime Player (New Screenrecording)
brew install ffmpeg
brew install gifsicle
ffmpeg -i patrol1.mov -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=10 > patrol1a.gif

Refs: https://gist.github.com/dergachev/4627207

@godber
godber / client.sh
Created March 30, 2018 12:36 — forked from leonklingele/client.sh
netcat – encrypt transfer with openssl
IP="127.0.0.1"
PORT="8877"
SHARED_SECRET="shared secret"
OPENSSL="/usr/local/opt/libressl/bin/openssl"
OPENSSL_CMD="$OPENSSL enc -a -A -aes-256-gcm"
while IFS= read -r MSG; do
echo "$MSG" | $OPENSSL_CMD -e -k "$SHARED_SECRET"
echo