Skip to content

Instantly share code, notes, and snippets.

Avatar
🧡

Mat Schaffer matschaffer

🧡
View GitHub Profile
@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
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 / README.md
Last active Mar 20, 2022
New Laptop Install list
View README.md

Do first

  • Dropbox
  • 1Password

Managed

  • Slack
  • Flycut
  • Zoom
  • Google drive
@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
@matschaffer
matschaffer / switch_to_main.sh
Last active Jan 26, 2022
A bash helper for switching a local clone and a github fork from master to main.
View switch_to_main.sh
#!/usr/bin/env bash
set -euo pipefail
echo ":: Renaming local master to main"
git branch -m master main || true
git fetch origin
git remote set-head origin -a
if git remote show upstream >/dev/null 2>&1; then
@matschaffer
matschaffer / gist:942981
Created Apr 26, 2011 — forked from schacon/gist:942899
delete all remote branches that have already been merged into master
View gist:942981
$ git branch -r --merged |
sed '/>|master/d;/origin/!d;s:origin/::' |
xargs git push origin --delete
# I think this will work, but I don't know how to get git branch to show me that -> line