Skip to content

Instantly share code, notes, and snippets.

View mkopinsky's full-sized avatar

Michael Kopinsky mkopinsky

  • Philadelphia, PA
View GitHub Profile
@mkopinsky
mkopinsky / alert.txt
Created September 15, 2021 13:44
Slack template
{{ define "alert" }}
{{ if eq .Status "firing" }}:fire: {{ else }}:white_check_mark: {{ end -}}
*{{ .Labels.alertname }}* {{ if .Annotations.summary }} ({{ .Annotations.summary }}){{ end }}
{{- if eq .Status "firing" }}
> ```{{ .ValueString}}```
{{- end -}}
{{- if gt (len .Labels) 1 }}
> {{ range .Labels.SortedPairs }} *{{ .Name }}:* {{ .Value }} {{ end }}
{{ end }}
{{- if gt (len .Annotations) 0 }}
@mkopinsky
mkopinsky / HealthCheck.vue
Created November 20, 2020 02:12
Vue app to display output of health.json
<template>
<div v-if="loading">
Loading
</div>
<div v-else>
<h1>{{ healthData.description }} <span :class="iconsFor(healthData.status)" /></h1>
<template v-if="healthData.output">
<h3>Problem summary:</h3>
{{ healthData.output }}
</template>
@mkopinsky
mkopinsky / surveyeditor.js
Created February 26, 2018 00:14
Survey Editor overrides for usability
/**
* Attach the surveyjs editor to a div on the page
*
* @param string el jquery selector for the place to attach the editor
* @param object initialValue the current schema for the survey
* @param function saveSchemaCallback Callback to be called each time the survey schema is modified
*/
function attachSurveyEditor(el, initialValue, saveSchemaCallback) {
var editor = new SurveyEditor.SurveyEditor(el, editorOptions);
editor.text = JSON.stringify(initialValue);

Keybase proof

I hereby claim:

  • I am mkopinsky on github.
  • I am mkopinsky (https://keybase.io/mkopinsky) on keybase.
  • I have a public key ASB-llSBFAWRj3s5WXhpI1Fn6T_Vh3t2j9mWzZAqRJ4KEAo

To claim this, I am signing this object:

Engineering Infrastructures For Humans

May 21, 2012 Mirrored from http://www.standalone-sysadmin.com/blog/2012/05/engineeringinfrastructures/

I’ve been lucky enough to have the chance to fly a lot over the past year or so. Working with Stephen Foskett and the rest of the Tech Field Day crew means that I’ve been to California almost every month. That’s a lot of flying.

One of the things that I’ve noticed on my flights is that they don’t want you to smoke. You actually used to be able to smoke on planes, which seems weird now that you can’t even smoke outide.

I’m not a smoker, so it doesn’t bother me. (As an adorable aside, when I was five years old, I literally glued hand-made no-smoking signs to the walls of my grandparents’ house. They were less than amused.) But the occasional legacy arm-rest with an ashtray harkens back to days of yore when every Joe Cool enjoyed the wonders of aviation while kicking back on a flight as smooth as a Laramie cigarette. He probably got a full meal as part of his ticket