Skip to content

Instantly share code, notes, and snippets.

Avatar
🧡

Mat Schaffer matschaffer

🧡
View GitHub Profile
@matschaffer
matschaffer / notes.md
Created Jul 13, 2022
2022-07-13-phillyrb-pubnite-notes
View notes.md
@matschaffer
matschaffer / notes.md
Created Jun 15, 2022
2022-06-15-phillyrb-pubnite-notes
View notes.md
@matschaffer
matschaffer / local-dev.md
Last active Jun 21, 2022
OpenTelemetry PoC Diagram
View local-dev.md
graph TD

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

subgraph Cloud
View oltp-apm-sample.json
{
"agent" : {
"name" : "opentelemetry/go",
"version" : "1.5.0"
},
"data_stream.namespace" : "default",
"data_stream.type" : "metrics",
"processor" : {
"name" : "metric",
"event" : "metric"
@matschaffer
matschaffer / notes.md
Created Apr 13, 2022
2022-04-phillyrb-pubnite.txt
View notes.md
  • banking and crypto pains
  • going indy
  • new jobs
  • salary bands & hiring negotiations
  • market hiring data & finding market data
  • Atlanta rb and Tech404
  • Old Philly user group history: philly lambda, algorithmics, ibm
  • Listening and repeating tech stuff - fake it till you make it
  • SinCity Ruby - Vegas, _why talks
  • updated version of the rubykaigi 2021 talk https://rubykaigi.org/2021-takeout/presentations/schwad4hd14.html
@matschaffer
matschaffer / .eslintrc.js
Last active Mar 19, 2022
Jest testing examples
View .eslintrc.js
module.exports = {
env: {
es2021: true,
node: true,
jest: true,
},
extends: ["standard", "prettier"],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
View direction-picker.test.jsx
import React from 'react';
import {componentWithIntl} from '../../helpers/intl-helpers';
import RotationStyles from '../../../src/components/direction-picker/direction-picker';
import DirectionPicker from '../../../src/components/direction-picker/direction-picker';
import PropTypes from 'prop-types';
import {intlShape} from 'react-intl';
describe('DirectionPicker', () => {
const getComponent = function (props = {}) {
View index.md

Testing clickability:

graph LR
M[Mat Schaffer fa:fa-twitter]
click M "https://matschaffer.com"
graph TD
View 2022-03-phillyrb-pubnite.txt
- Guatemala & Japanese topology
- Rails app for firefighers
- j2ee to rails
- national fire planning standard, building hazards
- Corey Haines connection
- javascript security - https://vulncat.fortify.com/en/detail?id=desc.structural.python.javascript_hijacking_constructor_poisoning#:~:text=Applications%20that%20use%20JavaScript%20notation,engine%20allows%20array%20constructor%20poisoning.
- rails security & attribute checking
- cucumber for performance validation
- apm products https://raygun.com, https://www.elastic.co/observability/application-performance-monitoring
View 2022-01-phillyrb-pubnite.txt
Locations:
Japan
Philly
Massachusettes
- Life in Japan
- New jobs
- Coaching: workflow, scrum, kanban
- Work from home