Skip to content

Instantly share code, notes, and snippets.

@wordyallen
wordyallen / trip.md
Last active June 20, 2021 14:54
chicago

Schedule 🗓️

Tuesday Wednesday Thursday Friday
4am Austin-Houston 10am Boat tour 9:30am Science Museum/FabLab
7am JJ Departs Houston 12pm Checkout Airbnb
7:15am MK Departs FLL
9:39am MK Arrives Chicago
9:41am JJ Arrives Chicago
10:23am Blue line to Division

Chrome OS

Configuration: Shell, Utilities

  1. Install python 3.7.1
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo apt install  build-essential python3-dev python-setuptools python-pip python-smbus libncursesw5-dev libgdbm-dev libc6-dev zlib1g-dev libsqlite3-dev tk-dev libssl-dev openssl libffi-dev git wget zsh gconf2 libnotify4 libappindicator1  nano tree libnss3 software-properties-common -y
 
@wordyallen
wordyallen / cognito.spec.js
Last active January 15, 2021 07:31
Testing Cognito
require('dotenv').config()
import {exec} from 'child_process'
import {
CognitoUserPool as Pool,
CognitoUserAttribute as Attribute,
CognitoUser as User,
AuthenticationDetails as Details,
} from 'amazon-cognito-identity-js'
import {LocalStorage} from 'node-localstorage'
import prompt from 'prompt'
  • Given we use the AWS sdk frequently and assuming we have to mock out the API.
  • Given typescript enforces strict null checking. We must create branches to check the shape of the data return data

In the following example the SDK should return the following object: { CertificateSummaryList: [{ DomainName: '12344.foo.bar', CertificateArn: 'arns:aws:mars:12323', ... }]}

The exmaple task is to find the certificate where the subdomain of the DomainName property includes the account id.

getCertARN.ts

The Neckbeard 🤓


@wordyallen
wordyallen / outline.md
Last active May 2, 2019 01:40
Outline/Guide to Portfolio Revamp

Joe Narvaez: IoT Engineer

Todo

@wordyallen
wordyallen / some_idea.md
Last active April 20, 2019 20:23
FreeGeek Cloud

FreeGeek Cloud

FreeGeek is the only organization that has enough hardware to create a non profit cloud.

Overview


@wordyallen
wordyallen / azure.js
Created July 1, 2018 18:33
functionz
module.exports.hello = function (context, req) {
context.log('JavaScript HTTP trigger function processed a request.');
if (req.query.name || (req.body && req.body.name)) {
res = {
// status: 200, /* Defaults to 200 */
body: "Hello " + (req.query.name || req.body.name)
};
}
else {
{
"!!! WARNING !!!": "PLEASE DO NOT MODIFY THIS FILE! USE http://docs.platformio.org/page/projectconf/section_env_build.html#build-flags",
"configurations": [
{
"name": "Mac",
"includePath": [
"/Users/joe/esp/esp-idf/components/bt/bluedroid/stack/avdt/include",
"/Users/joe/esp/esp-idf/components/bt/bluedroid/stack/a2dp/include",
"/Users/joe/esp/esp-idf/components/bt/bluedroid/stack/l2cap/include",
"/Users/joe/esp/esp-idf/components/bt/bluedroid/stack/avct/include",
@wordyallen
wordyallen / platform.ini
Last active June 24, 2018 14:13
esp-wrover settings
;mac
[env:esp32dev]
platform = espressif32
framework = espidf
board = esp-wrover-kit
upload_port = /dev/cu.usbserial-141101
debug_server =
/Users/joe/esp/openocd-esp32/bin/openocd
-s /Users/joe/esp/openocd-esp32/share/openocd/scripts
-f interface/ftdi/esp32_devkitj_v1.cfg