Skip to content

Instantly share code, notes, and snippets.

View DavidIAm's full-sized avatar

David Ihnen DavidIAm

View GitHub Profile
@DavidIAm
DavidIAm / Dogai.txt
Created September 23, 2021 01:59
Dog so job
Job Title: Principal Software Engineer
Company/Employer: Startup that uses AI/ML to train dogs ... if you like pets, this would be an AWESOME company to work for!
Location: Remote or Bay Area, CA
Visa Candidates can be considered
Salary: 140-200K range
Key Skills: Backend Development, Machine Learning, SQL, API's, Microservices, Cloud
We have built the world's first system that automatically senses animals' communications and responds back in real-time doing useful things like training, engagement and a variety of first-of-kind health and wellness applications. We use this device, app, cloud-backend, and unique leveraged human coaching model to delight dogs and humans alike. We've raised one of the largest Seed rounds (~$10M) in the space from the world's largest pet company, one of the largest charities and and a number of others. We are looking for colleagues who are interested in our mission to foster greater empathy and who want to build thoughtful, well-architected production systems to change what is p
P8.25 / eMMC d0 0 fast rx up 1 mmc 1 d0 mmc@481d8000 (pinmux_emmc_pins)
P8.24 / eMMC d1 1 fast rx up 1 mmc 1 d1 mmc@481d8000 (pinmux_emmc_pins)
P8.05 / eMMC d2 2 fast rx up 1 mmc 1 d2 mmc@481d8000 (pinmux_emmc_pins)
P8.06 / eMMC d3 3 fast rx up 1 mmc 1 d3 mmc@481d8000 (pinmux_emmc_pins)
P8.23 / eMMC d4 4 fast rx up 1 mmc 1 d4 mmc@481d8000 (pinmux_emmc_pins)
P8.22 / eMMC d5 5 fast rx up 1 mmc 1 d5 mmc@481d8000 (pinmux_emmc_pins)
P8.03 / eMMC d6 6 fast rx up 1 mmc 1 d6 mmc@481d8000 (pinmux_emmc_pins)
P8.04 / eMMC d7 7 fast rx up 1 mmc 1 d7 mmc@481d8000 (pinmux_emmc_pins)
P8.19 8 fast down 4 pwm 2 out A ocp/bb_pwm2_helper (pinmux-pwm2-pin)
P8.13 9 fast down 4 pwm 2 out B ocp/bb_pwm2_helper (pinmux-pwm2-pin)
@DavidIAm
DavidIAm / PermuteRunner.java
Created May 22, 2019 00:05
Run your tests in a randomly selected order
package com.skylosian;
import static com.google.common.math.LongMath.factorial;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
import org.junit.runners.model.FrameworkMethod;
import org.junit.runners.model.InitializationError;
@DavidIAm
DavidIAm / PermutationSpringTestRunner.java
Last active May 22, 2019 00:06
Stupid test runner tricks - Permute all the orders your tests can run in
package com.skylosian;
import static com.google.common.math.LongMath.factorial;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
import java.util.stream.LongStream;
@DavidIAm
DavidIAm / index.js
Created March 14, 2019 06:26
test node program for i2c
const i2c = require("i2c-bus");
const OSM_ADDR = 0x0b;
const I2C_START = 0x90;
const SET_PWM = 0xA0;
const RESET = 0xA0;
const i2c1 = new Promise((resolve, reject) => {
const handle = i2c.open(1, (err) => err ? reject(err) : resolve(handle))
});
root@4e8cc29ea64e:/# ssh2controller
ssh2controller start instance 64136a65f59
enter main
connect to mqtt
subscribe in_topic controller/+/status
Scan complete
Choose controller
0) BBG116048488
1) wgd-18071321235
Type a partial and tab: wgd-18071321235
@DavidIAm
DavidIAm / log.extract
Created January 13, 2019 06:39
Weird cert wouldn't verify
ec2-user@ip-172-31-25-180:~/compose-work (git alpha) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [06:34:36]
$ docker run --rm -it de1f4cb61c4d cat /home/holder/pki/sshservermqttbridge.key > BADCERTsshservermqttbridge.key
ec2-user@ip-172-31-25-180:~/compose-work (git alpha) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [06:34:56]
$ docker run --rm -it de1f4cb61c4d cat /home/holder/pki/sshservermqttbridge.crt > BADCERTsshservermqttbridge.crt
ec2-user@ip-172-31-25-180:~/compose-work (git alpha) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [06:35:07]
$ md5sum pki/issued/sshservermqttbridge.crt
dff99beb7bf13035c3658c9379062f00 pki/issued/sshservermqttbridge.crt
ec2-user@ip-172-31-25-180:~/compose-work (git alpha) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [06:35:10]
$ md5sum BADCERTsshservermqttbridge.crt
b93aa2d1ab4843e724a8eac2be471be8 BADCERTsshservermqttbridge.crt
#!/usr/bin/env python
import time
import subprocess
import socket
import ssl
import inspect, os, sys
# From http://stackoverflow.com/questions/279237/python-import-a-module-from-a-folder
cmd_subfolder = os.path.realpath(os.path.abspath(os.path.join(os.path.split(inspect.getfile( inspect.currentframe() ))[0],"..")))
Existing keystone pipeline and Commerce account
Waffle Iron Alpha - work with
Jenkins 2
Deploy application in docker
Jenkinsfile (branch control)

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: