Skip to content

Instantly share code, notes, and snippets.

View jalessio's full-sized avatar

Jamie Alessio jalessio

  • Berkeley, CA
  • 19:24 (UTC -07:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jalessio on github.
  • I am jalessio (https://keybase.io/jalessio) on keybase.
  • I have a public key ASBTmlwmIcgNY4wRM9KALsHJLNnV8uYtfWbRs2DR0O6PNQo

To claim this, I am signing this object:

@jalessio
jalessio / waylens-notes.md
Created February 14, 2019 16:11
Rough notes while trying to figure out how to create geotagged images created by Waylens Horizon camera

Waylens Studio Exports Exploration

I see in the CSV file with have a "PlayTime(s)" column. I suspect that is the time in the video where I should grab a still and then the data in that CSV row will be valid for it.

I found some info on extracting a still image at a specific time here: https://trac.ffmpeg.org/wiki/Seeking

But maybe I don't want that? Maybe I want to use the "Frame Index" column instead? https://stackoverflow.com/a/20411464

@jalessio
jalessio / pull-request-template.md
Created April 13, 2017 18:38 — forked from Lordnibbler/pull-request-template.md
Sample Pull Request Template

Status

READY/IN DEVELOPMENT/HOLD

Migrations

YES | NO

Description

A few sentences describing the overall goals of the pull request's commits.

Related PRs

@jalessio
jalessio / Dockerfile
Last active March 8, 2017 00:53
mapbox-vector-tiles shapely "speedups" test
FROM python:3.5.2
RUN apt-get update && apt-get install -y \
build-essential \
libgeos-dev && \
rm -rf /var/lib/apt/lists/*
# Install Shapely 1.5.x b/c Shapely 1.6.x appears to
# have "speedups" enabled by default
RUN pip install shapely==1.5.17
@jalessio
jalessio / build.sh
Created March 7, 2017 01:45 — forked from sgillies/build.sh
Building GDAL and friends for inclusion in Rasterio binary wheels
#!/bin/bash
export MACOSX_DEPLOYMENT_TARGET=10.6
export ARCHFLAGS="-arch i386 -arch x86_64"
# GEOS from source.
cd ~/work/geos-3.4.2
./configure CFLAGS="-Os -arch i386 -arch x86_64" CXXFLAGS="-Os -arch i386 -arch x86_64" LDFLAGS="-arch i386 -arch x86_64"
make clean
make
@jalessio
jalessio / openaddresses-machine-test-1480613168.log
Created December 1, 2016 17:30
output after running clean install on branch migurski/fix-botocore-dependency from https://github.com/openaddresses/machine/pull/469
/usr/local/lib/python3.4/dist-packages/pq/utils.py:132: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
logger.warn(notice)
...........2016-12-01 17:26:12,823 ERROR: Failed to check merged status of openaddresses/openaddresses gobbledygook: 'base_commit'
..........................2016-12-01 17:26:33,171 WARNING: Skipping file with unknown conform: test
2016-12-01 17:26:33,172 WARNING: Skipping file with unknown conform: test
..................2016-12-01 17:26:33,206 WARNING: Conform named bar.txt as file but we could not find it.
..2016-12-01 17:26:33,208 WARNING: No GDB found in ['nope.txt']
2016-12-01 17:26:33,208 WARNING: Multiple GDBs found, but source has no file attribute.
.2016-12-01 17:26:33,210 WARNING: No JSON found in ['nope.txt']
2016-12-01 17:26:33,210 WARNING: Found more than one JSON file in source, can't pick one
@jalessio
jalessio / test-1480543543.log
Created November 30, 2016 22:07
output of "python3 test.py" after fresh install of openaddresses/machine "local development" machine
/usr/local/lib/python3.4/dist-packages/pq/utils.py:132: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
logger.warn(notice)
...........2016-11-30 22:05:46,936 ERROR: Failed to check merged status of openaddresses/openaddresses gobbledygook: 'base_commit'
..........................2016-11-30 22:06:06,566 WARNING: Skipping file with unknown conform: test
2016-11-30 22:06:06,567 WARNING: Skipping file with unknown conform: test
..................2016-11-30 22:06:06,605 WARNING: Conform named bar.txt as file but we could not find it.
..2016-11-30 22:06:06,618 WARNING: No GDB found in ['nope.txt']
2016-11-30 22:06:06,621 WARNING: Multiple GDBs found, but source has no file attribute.
.2016-11-30 22:06:06,626 WARNING: No JSON found in ['nope.txt']
2016-11-30 22:06:06,627 WARNING: Found more than one JSON file in source, can't pick one
@jalessio
jalessio / README.md
Last active September 13, 2016 17:51 — forked from irees/README.md
Forked: Transit dimensions: Transitland Schedule API

Minor updates by jalessio 2016-08-04

  • Reduce PER_PAGE from 1000 to 500 to get around API gateway timeout errors
  • Remove call to meta['total'] which is no longer part of the API response JSON
  • Update date to August 2016

Transitland Frequency Visualization

Accompanies blog post: Transit dimensions: Transitland Schedule API

#!/usr/bin/env/ruby
require 'socket'
# AWS API Credentials
AWS_ACCESS_KEY_ID = "your-aws-access-key-id"
AWS_SECRET_ACCESS_KEY = "your-aws-secret-access-key"
# Node details
NODE_NAME = "webserver-01.example.com"
@jalessio
jalessio / network-throttle.py
Created July 31, 2014 19:00
GUI to adjust input values to "tc" for network throttling
#!/usr/bin/env python
# Taken from:
# http://www.kryogenix.org/days/2014/06/25/throttling-or-slowing-down-network-interfaces-on-ubuntu/
from gi.repository import Gtk, GLib
import socket, fcntl, struct, array, sys, os
def which(program):
import os
def is_exe(fpath):