Skip to content

Instantly share code, notes, and snippets.

View ehowe's full-sized avatar

Eugene Howe ehowe

  • Theorem
  • St. Johns, MI
View GitHub Profile
@ehowe
ehowe / config.json
Last active October 17, 2020 21:31
{
"defaultWorkspace": "default",
"workspaces": [
{
"defaultRequest": "postman",
"name": "default",
"requests": [
{
"body": {
"Ace": "{}",
@ehowe
ehowe / sensibo_nest_integration.rb
Created March 19, 2019 19:06
Nest to Sensibo integration
##########
# This is a script I wrote as an AWS lambda function to read sensor data from a Nest and set my Sensibo accordingly
# The API clients are written by me as well and are available at
# https://github.com/ehowe/sensibo-api and https://github.com/ehowe/nest-api
# but can also be installed with `gem install sensibo-api` and `gem install nest-api`.
# The lambda function requires 2 environment variables `API_KEY` for the Sensibo API and `ACCESS_TOKEN` for the Nest API.
# Those API keys will need to be generated in the appropriate developer consoles.
# After creating the Lambda function, you can create a scheduled task in CloudWatch to run the function at whatever interval
# you choose. Mine is set at 15 minutes.
# The function will send all output to CloudWatch as well, which you can act on if you choose.
@ehowe
ehowe / gpsmap.md
Last active September 18, 2017 17:56
Garmin GPSmap 64st

General info

General thoughts

  • Powerful GPS units, interface is garbage and is not intuitive.
  • In the field, these units may annoy people more than they help
  • Should be used for information gathering, not navigation (I found something of interest and need to tell somebody)

Batteries

FROM seapy/rails-nginx-unicorn
RUN apt-get install supervisor -y
ENV INSTALL_PATH /app
RUN mkdir -p $INSTALL_PATH
WORKDIR $INSTALL_PATH
COPY Gemfile Gemfile
RUN gem update -i /usr/local/lib/ruby/gems/2.3.0 bundler
RUN bundle install
COPY supervisor/supervisor.conf /etc/supervisor/
COPY supervisor/conf.d/* /etc/supervisor/conf.d/
require 'nokogiri'
require 'awesome_print'
require 'pry'
require 'securerandom'
require 'fileutils'
class Item
attr_accessor :type, :answer, :answer_options, :complexity, :subject, :ahead, :feedback, :contents, :question, :test_name, :number, :matching_pairs, :id
def self.matching_items_to_singular_item(items)
@ehowe
ehowe / azure_estimator.rb
Created March 10, 2014 17:12
Azure story point estimator
[1,2,3,5,8].sample
require 'openssl'
cert = OpenSSL::X509::Certificate.new(File.read("cert.pem"))
extension = OpenSSL::X509::Extension.new cert.extensions.first
extension.value
Bag Attributes
localKeyID: 01 00 00 00
Microsoft CSP Name: Microsoft Enhanced Cryptographic Provider v1.0
Key Attributes
X509v3 Key Usage: 10
-----BEGIN PRIVATE KEY-----
MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQC8dE7KQAY8lf62
KU3uKOGtMbA4jzTAhgEqYD6RnCQy8lzwHbXjcjDI+7e+ksEeC2STJUhMg5M34g2q
8H9IYZJSbAJ6EZryEnUhx9VNXqKmem/NjYvmq/NktkxzdoggmKCtiSboR8U+0yYE
hqdepuizc8u7AnzcbE+yWaIaffaEVN4ULj2Ln9ZF43UcZK8vbR2roCAvwTxiEfoI
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvHROykAGPJX+tilN7ijh
rTGwOI80wIYBKmA+kZwkMvJc8B2143IwyPu3vpLBHgtkkyVITIOTN+INqvB/SGGS
UmwCehGa8hJ1IcfVTV6ipnpvzY2L5qvzZLZMc3aIIJigrYkm6EfFPtMmBIanXqbo
s3PLuwJ83GxPslmiGn32hFTeFC49i5/WReN1HGSvL20dq6AgL8E8YhH6CNkRwyM1
M2zjDvV67CrErhaNUcdoIpaTQVqacJo9/YyGAdw6nb6vyimSBodpSUGJde+m05Iw
EMQrppFXRoc3EhIOLcHBN0+kFP7eX+/qe60k9/UedaJV6yBzyRvCQI+Dd/GDgEK7
MwIDAQAB
-----END PUBLIC KEY-----
@ehowe
ehowe / gist:3138868
Created July 18, 2012 21:01
EY Openssh
net_misc="/engineyard/portage/net-misc"
if [ $(uname -m) == 'x86_64' ]; then
mask="~amd64"
elif [ $(uname -m) == 'i686' ]; then
mask="~x86"
fi
openssh="openssh-5.9_p1-r4"