Skip to content

Instantly share code, notes, and snippets.

View matschaffer's full-sized avatar
🧡

Mat Schaffer matschaffer

🧡
View GitHub Profile
if application "iTerm" is running then
tell application "iTerm"
create window with default profile
end tell
else
activate application "iTerm"
end if
tell application "iTerm"
tell current window
@matschaffer
matschaffer / .env
Last active December 31, 2023 15:38
Example filebeat monitoring setup
ES_HOSTS=https://(PRODUCTION ES):443
ES_API_KEY=(API KEY FOR WRITING LOGS)
ES_UUID=(PRODUCTION ES UUID)
ES_MONITOR_HOSTS=https://(MONITOR ES):443
ES_MONITOR_API_KEY=(API KEY FOR WRITING MONITORING DATA)
- work planning & economic conditions
- getting more work by raising rates
- handling payroll for small companies
- country comparisons, crime rates
- having grandkids
- post-doc training
@matschaffer
matschaffer / clean.sh
Last active November 13, 2022 11:02
Floating Sandbox macos build
#!/usr/bin/env bash
set -euxo pipefail
rm -rf Floating-Sandbox
rm -rf DevIL
rm -rf SFML
# rm -rf wxWidgets
- Folks getting into Ruby recently
- [Odin project](https://www.theodinproject.com/paths/full-stack-ruby-on-rails/courses/ruby-programming)
- Finding a good starter project
- Something for a friend, ideally with a deadline
- something you can get excited about
- Feelings on Rails Turbo
- Comparison to python https://www.linkedin.com/feed/update/urn:li:activity:6971961568645259264/
- Finding new ruby remote jobs with good parental leave policies
- Javascript/Typescript, value of typing
- Maybe ruby duct typing is just good enough, playing with sorbet
- hardcore babying
- the stuggles of homes & schools
- visit from a 1 month old
- Helping kids navigate sticky games & internet
- Reading https://www.amazon.com/Digital-Minimalism-Choosing-Focused-Noisy/dp/0525536515
- picking sticky cross-language TV for kids
- "how do you strip-mine hate?"
- general PC shopping things & https://minixpc.com/blogs/review/minisforum-hx90
@matschaffer
matschaffer / notes.md
Created July 13, 2022 01:40
2022-07-13-phillyrb-pubnite-notes
@matschaffer
matschaffer / notes.md
Created June 15, 2022 02:04
2022-06-15-phillyrb-pubnite-notes
@matschaffer
matschaffer / local-dev.md
Last active June 21, 2022 05:19
OpenTelemetry PoC Diagram
graph TD

subgraph Laptop
  ProdKibana[Kibana]-->ProdES[Elasticsearch]
  Agent-->|poll/push|ProdKibana
  Agent-.->|poll/push|ProdES
end

subgraph Cloud
{
"agent" : {
"name" : "opentelemetry/go",
"version" : "1.5.0"
},
"data_stream.namespace" : "default",
"data_stream.type" : "metrics",
"processor" : {
"name" : "metric",
"event" : "metric"