Skip to content

Instantly share code, notes, and snippets.

View gamename's full-sized avatar
💭
retired

Tennis Smith gamename

💭
retired
  • 12:45 (UTC -05:00)
View GitHub Profile
@gamename
gamename / gist:6bab124ca4a999be926a499f059e8b00
Last active June 17, 2025 20:37
walter positioning example
╭─tennis@tennismbp2021 ~/src/walter-positioning
╰─➤ idf build flash monitor
Executing action: all (aliases: build)
Running ninja in directory /Users/tennis/src/walter-positioning/build
Executing "ninja all"...
[1/4] cd /Users/tennis/src/walter-positioning/build/esp-idf/esptool_py && /Users/tennis/.espressif/python_env/idf5.3...ter-positioning/build/partition_table/partition-table.bin /Users/tennis/src/walter-positioning/build/positioning.bin
positioning.bin binary size 0x57b60 bytes. Smallest app partition is 0x100000 bytes. 0xa84a0 bytes (66%) free.
[1/1] cd /Users/tennis/src/walter-positioning/build/bootloader/esp-idf/esptool_py && /Users/tennis/.espressif/python...e/check_sizes.py --offset 0x8000 bootloader 0x0 /Users/tennis/src/walter-positioning/build/bootloader/bootloader.bin
Bootloader binary size 0x5970 bytes. 0x2690 bytes (30%) free.
[4/4] Completed 'bootloader'Executing action: flash
@gamename
gamename / cellular_modem.c
Last active June 18, 2025 09:26
Cell Modem
#include "cellular_modem.h"
#include "driver/gpio.h"
#include "esp_event.h"
#include "esp_log.h"
#include "esp_modem_api.h"
#include "esp_modem_c_api_types.h"
#include "esp_modem_dce_config.h"
#include "esp_netif.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "math.h"
#include "stdio.h"
#include <stdio.h>
#include "audio_codec_test.h"
#include "driver/gpio.h"
#include "driver/i2s_std.h"
#include "esp_audio_dec_default.h"
#include "esp_audio_dec_reg.h"
#include "esp_audio_simple_dec.h"
@gamename
gamename / plots_and_output.txt
Created March 23, 2024 02:03
Model Plots & output
/Users/tennis/src/tflite-micro-fork/.venv/bin/python /Users/tennis/src/tflite-micro-fork/tensorflow/lite/micro/examples/micro_speech/train/meow_train.py
Training these words: meow
Training steps in each stage: 12000,3000
Learning rate in each stage: 0.001,0.0001
Total number of training steps: 15000
Training the model (this will take quite a while)...
2024-03-22 20:14:59.914956: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:388] MLIR V1 optimization pass is not enabled
WARNING:tensorflow:From /Users/tennis/src/tflite-micro-fork/.venv/lib/python3.11/site-packages/tensorflow/python/training/saver.py:1068: remove_checkpoint (from tensorflow.python.checkpoint.checkpoint_management) is deprecated and will be removed in a future version.
Instructions for updating:
Use standard file APIs to delete files with this prefix.
/Users/tennis/src/tflite-micro-fork/.venv/bin/python /Users/tennis/src/tflite-micro-fork/tensorflow/lite/micro/examples/micro_speech/train/meow_train.py
Training these words: meow
Training steps in each stage: 12000,3000
Learning rate in each stage: 0.001,0.0001
Total number of training steps: 15000
Training the model (this will take quite a while)...
2024-03-21 17:57:04.506404: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:388] MLIR V1 optimization pass is not enabled
WARNING:tensorflow:From /Users/tennis/src/tflite-micro-fork/.venv/lib/python3.11/site-packages/tensorflow/python/training/saver.py:1068: remove_checkpoint (from tensorflow.python.checkpoint.checkpoint_management) is deprecated and will be removed in a future version.
Instructions for updating:
Use standard file APIs to delete files with this prefix.
/Users/tennis/src/tflite-micro-fork/.venv/bin/python /Users/tennis/src/tflite-micro-fork/tensorflow/lite/micro/examples/micro_speech/train/meow_train.py
Training these words: meow
Training steps in each stage: 12000,3000
Learning rate in each stage: 0.001,0.0001
Total number of training steps: 15000
Training the model (this will take quite a while)...
2024-03-21 16:27:14.770321: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:388] MLIR V1 optimization pass is not enabled
WARNING:tensorflow:From /Users/tennis/src/tflite-micro-fork/.venv/lib/python3.11/site-packages/tensorflow/python/training/saver.py:1068: remove_checkpoint (from tensorflow.python.checkpoint.checkpoint_management) is deprecated and will be removed in a future version.
Instructions for updating:
Use standard file APIs to delete files with this prefix.
@gamename
gamename / ProblemReport.jsx
Created July 17, 2023 11:35
The Amplify Component
/***************************************************************************
* The contents of this file were generated with Amplify Studio. *
* Please refrain from making any modifications to this file. *
* Any changes to this file will be overwritten when running amplify pull. *
**************************************************************************/
/* eslint-disable */
import * as React from "react";
import {Button, Flex, Grid, Heading, TextAreaField, TextField, useTheme,} from "@aws-amplify/ui-react";
import {getOverrideProps} from "@aws-amplify/ui-react/internal";
@gamename
gamename / ReportProblem.js
Last active July 17, 2023 11:32
Code that calls component "ProblemReport"
import {ProblemReport} from "@/src/ui-components";
import {API} from "aws-amplify";
import {useRouter} from "next/router";
import {useTheme} from "@aws-amplify/ui-react";
export default function ReportProblem() {
const router = useRouter();
const {tokens} = useTheme();
@gamename
gamename / ansible
Created April 9, 2021 15:59
to_json error
---
# tasks file for apigee-opdk-settings-cassandra/
- name: Fail if ds group is not provided
fail:
msg: 'ds group is not defined in the inventory file, please define the ds group in the inventory file'
when: groups['ds'] is not defined
- name: Fail if dc_1 group is not provided
fail:
msg: 'dc_1 group is not defined in the inventory file, please define the dc_1 group in the inventory file'

Setup

  1. Passwords, not keys are used for ssh
  2. The target is accessed via the bastion host (ssh -> bastion -> target)
  3. The password is kept in an encrypted file that is accessed based on the ansible_user name
  4. When decrypted, the password is bastion

Command

$ ansible -i ./inventory/debug -m debug -a 'var=foo' -kKu ansible all

Command Output