Skip to content

Instantly share code, notes, and snippets.

View gamename's full-sized avatar
💭
retired

Tennis Smith gamename

💭
retired
  • 01:06 (UTC -05:00)
View GitHub Profile
@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

- name: get our bricks
shell: gluster volume info {{ item }} | grep 'Brick1:' | awk 'BEGIN { FS = ":" } ; { print $3 }'
register: gluster_bricks
with_items: "{{ gluster_volumes.stdout_lines }}"
- name: show our gluster bricks
debug:
var: gluster_bricks.results
# How can I extract only 'stdout' from gluster_bricks.results and put those into the 'disks' fact?
2019-08-17 08:51:04,313 p=24794 u=automation | 24794 1566046264.31251: starting run
2019-08-17 08:51:04,552 p=24794 u=automation | 24794 1566046264.55196: Added group all to inventory
2019-08-17 08:51:04,553 p=24794 u=automation | 24794 1566046264.55309: Added group ungrouped to inventory
2019-08-17 08:51:04,553 p=24794 u=automation | 24794 1566046264.55333: Group all now contains ungrouped
2019-08-17 08:51:04,553 p=24794 u=automation | 24794 1566046264.55354: Examining possible inventory source: /home/automation/dtcc_ansible/dtcc_hosts
2019-08-17 08:51:04,555 p=24794 u=automation | 24794 1566046264.55569: trying /usr/lib/python2.7/site-packages/ansible/plugins/cache
2019-08-17 08:51:04,557 p=24794 u=automation | 24794 1566046264.55691: Loading CacheModule 'memory' from /usr/lib/python2.7/site-packages/ansible/plugins/cache/memory.py
2019-08-17 08:51:04,558 p=24794 u=automation | 24794 1566046264.55825: trying /usr/lib/python2.7/site-packages/ansible/plugins/inventory
2019-08-17 08:51:04,560 p
$ sudo kubeadm init --pod-network-cidr 10.244.0.0/16 --apiserver-advertise-address 10.0.0.1
[init] using Kubernetes version: v1.12.1
[preflight] running pre-flight checks
[preflight/images] Pulling images required for setting up a Kubernetes cluster
[preflight/images] This might take a minute or two, depending on the speed of your internet connection
[preflight/images] You can also perform this action in beforehand using 'kubeadm config images pull'
[kubelet] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env"
[kubelet] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml"
[preflight] Activating the kubelet service
[certificates] Generated front-proxy-ca certificate and key.