Skip to content

Instantly share code, notes, and snippets.

View krhoyt's full-sized avatar

Kevin Hoyt krhoyt

View GitHub Profile
@krhoyt
krhoyt / get.sh
Created March 6, 2025 17:58
SCP Command Examples
# Remote login generally lands in user root, but may want ~/ prefix for specificity
# Specificity may be desired on local path as well with ./ depending on location
scp USER@SERVER:PATH_TO_REMOTE_FILE PATH_TO_LOCAL_FILE
@krhoyt
krhoyt / three-p.md
Created December 27, 2024 20:27
Three P Status Report

What did you do last week? Not down to the minute, but what were the high-level themes of the work you did last week? This is not a trick question, and should be relatively easy to answer. Got it? Cool! Now, what did you do 24 weeks ago (six months)? Is that a little harder to answer? A lot harder? Okay, well, here comes the annual review; are you ready? Or are you going to spend countless hours digging through material to try and justify your existence to the business?

Ug! This is all such a drag. All I really want to do is code/write/anything else!

One of the many techniques I use to solve this problem is what I call the "Three P" weekly status report. Why "Three P"? Because there are three parts to it: progress, priorities, and problems.

  • Progress: Details about the work you completed over the last week
  • Priorities: Work you intend to accomplish in the week ahead
  • Problems: Issues that are slowing you down or preventing progress
@krhoyt
krhoyt / manager-promises.md
Created December 27, 2024 20:04
Promises from a Manager
  1. We will have a weekly 1:1. I will never cancel this meeting, but you can cancel it whenever you like. It is your time.
  2. Our 1:1 agenda will be in the meeting invite so we remember important topics. You are always free to use the time for whatever is on your mind.
  3. When I schedule a meeting with you, I will always say when I schedule it what it is meant to be about. I will not schedule meetings without an agenda.
  4. When I drop into your DM’s, I will always say “hi and why.” No suspense, no small talk while you are wondering what I want.
  5. News or announcements that significantly impact you, your work, or your team will come from me directly in a 1:1, not revealed in a big meeting.
  6. You will get feedback from me when it is fresh. There will be no feedback in your performance review that you are hearing for the first time.
  7. I trust you to manage your own time. You do not need to clear with me in advance your time AFK or OOO.
  8. Your work gets done your way. My focus is on outcomes, not output. O
@krhoyt
krhoyt / four-d.md
Created December 27, 2024 19:59
GTD Distilled: The Four D Time Management

If there is one "soft" skill that has served me the best during my two decades in Information Technology, it has to be time management. There are many approaches to time management. Entire systems have evolved to help. One of these is Getting Things Done, or GTD, based on the book of the same name by author, David Allen.

You can get as involved in GTD as you want. This is not that kind of post. This is a post about the decision making process at the core of GTD that you can use right now, without changing a single thing about how you work. This is GTD distilled down to the very core - do it, defer it, delegate it, drop it.

Primer

Among the core concepts in GTD is not keeping information in your head. Keeping information in your head represents a cognitive load that slows you down, and will

@krhoyt
krhoyt / heart-1-1.md
Created December 27, 2024 19:40
Heart of the One-on-One

People-focused, not operationally-focused.

Wellness

  • Are you safe and well?
  • You need not disclose personal information
  • I am here to listen, especially if work is impacting your well-being
  • Do you feel physically and psychologically safe?
  • You will not be humiliated, ignored, blamed or punished for asking questions
@krhoyt
krhoyt / server.py
Created December 27, 2024 00:33
Simple Python 3 server for local development
from http.server import HTTPServer, SimpleHTTPRequestHandler, test
import sys
class CORSRequestHandler (SimpleHTTPRequestHandler):
def end_headers (self):
self.send_header('Access-Control-Allow-Origin', '*')
SimpleHTTPRequestHandler.end_headers(self)
if __name__ == '__main__':
test(CORSRequestHandler, HTTPServer, port=int(sys.argv[1]) if len(sys.argv) > 1 else 8000)
@krhoyt
krhoyt / Dockerfile
Created April 20, 2024 20:17
Docker as Python Environment
FROM python:latest
WORKDIR /usr/local/bin
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN mkdir input
RUN mkdir output
COPY hello.py .
@krhoyt
krhoyt / box.js
Last active April 9, 2025 19:31
Template attempting to show the many facets of a baseline web standards-based component. Not intended to function as a component.
export default class HoytBox extends HTMLElement {
constructor() {
super();
const template = document.createElement( 'template' );
template.innerHTML = /* template */ `
<style>
:host {
box-sizing: border-box;
display: inline-block;
@krhoyt
krhoyt / transcribe.env
Created November 15, 2022 23:38
AWS Transcribe with Python
AWS_ACCESS_KEY=_YOUR_ACCESS_KEY_
AWS_SECRET_KEY=_YOUR_SECRET_KEY_
AWS_REGION=_S3_REGION_
LOCAL_AUDIO=hello-world.m4a
S3_BUCKET=_S3_BUCKET_
S3_OBJECT=_PATH_TO_AUDIO_ON_S3_
SLEEP_TIME=5
TRANSCRIPTION_JOB=hello-world
@krhoyt
krhoyt / dog.cc
Created January 28, 2022 05:56
WebAssembly (C++) in a Web Worker
#include <iostream>
#include <string>
#include "dog.h"
#include "emscripten/bind.h"
using namespace emscripten;
using namespace std;
Dog::Dog( string n ): name( n ) {}