Skip to content

Instantly share code, notes, and snippets.

View mstine's full-sized avatar

Matt Stine mstine

View GitHub Profile
// Name: PARA
import "@johnlindquist/kit"
let { roots, write } = await db("db/para-roots.json", { roots: [] })
onTab("PARA-Roots", async () => {
while (true) {
let activeRoot = await arg("Set active PARA Root:", roots)
let pRoots = _.partition(roots, activeRoot)
@mstine
mstine / mastodonTootForever.js
Created November 16, 2022 02:29
Mastodon Toot Forever! - User Script for Tampermonkey
// ==UserScript==
// @name Mastodon Toot Forever!
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Change the "Publish!" button to "Toot!" - Known to work on Mastodon 4.0.2
// @author Matt Stine
// @match https://mastodon.sdf.org/*
// @icon https://img.icons8.com/external-happy-man-bomsymbols-/512/external-fart-happy-man-human-resource-and-life-style-set-2-happy-man-bomsymbols-.png
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js

Keybase proof

I hereby claim:

  • I am mstine on github.
  • I am mstine (https://keybase.io/mstine) on keybase.
  • I have a public key whose fingerprint is B704 A54C 845D 005D 1D9D 2775 02B0 8975 E3F0 C764

To claim this, I am signing this object:

@mstine
mstine / gist:a955dd0a4b0041c3de0d
Created October 14, 2015 17:53
On modeling dependencies in complex systems...
Excerpt from an email I sent during May 2011:
I've been doing some research into this whole DevOps space as part of
my efforts focused on improving our continuous delivery pipelines at
<REDACTED>. Of course one of my main avenues is to harness otherwise
non-productive time listening to podcasts, and yesterday I happened
upon DevOps Cafe. It seems this guy named Tim Berglund did an
interview with these guys last summer around the theme of his
"Complexity Theory and Software Development" talk. ;-) I listened to
about half of it on the way in to the office this morning.
@mstine
mstine / gist:e086fad2f1b61de4634e
Created August 5, 2015 21:52
receptor client + basic auth
@Bean
public ReceptorClient receptorClient() {
CredentialsProvider credentialsProvider = new BasicCredentialsProvider();
credentialsProvider.setCredentials(
new AuthScope(receptorUri, 80),
new UsernamePasswordCredentials(receptorUser, receptorPassword)
);
CloseableHttpClient httpClient = HttpClients.custom()
.setDefaultCredentialsProvider(credentialsProvider)
@mstine
mstine / gist:5385b4015b60cd3de9a4
Last active August 29, 2015 14:26
Sleuth Log Lines
015-07-31 15:54:55.614 INFO 74602 --- [spring-cloud-sleuth-trace=47ca767b-468c-401e-91f4-2a6d4fe13e25,span=a4bacde0-a9fc-4fdd-95ff-f860b59fe584] [nio-3380-exec-1] o.s.c.sleuth.slf4j.Slf4jSpanListener : Starting span: MilliSpan(begin=1438376095611, end=0, name=http/, traceId=47ca767b-468c-401e-91f4-2a6d4fe13e25, parents=[], spanId=a4bacde0-a9fc-4fdd-95ff-f860b59fe584, remote=false, kVAnnotations={}, processId=null, timelineAnnotations=[TimelineAnnotation(time=1438376095613, msg=start)])
2015-07-31 15:54:56.235 INFO 74602 --- [spring-cloud-sleuth-trace=47ca767b-468c-401e-91f4-2a6d4fe13e25,span=31279ad5-754a-4808-a8ee-491cb87792f6] [nio-3380-exec-2] o.s.c.sleuth.slf4j.Slf4jSpanListener : Starting span: MilliSpan(begin=1438376096235, end=0, name=http/hi2, traceId=47ca767b-468c-401e-91f4-2a6d4fe13e25, parents=[a4bacde0-a9fc-4fdd-95ff-f860b59fe584], spanId=31279ad5-754a-4808-a8ee-491cb87792f6, remote=false, kVAnnotations={}, processId=null, timelineAnnotations=[TimelineAnnotation(time=1438376096235, msg=s
@mstine
mstine / gist:b72764c0771f99f48f9a
Created July 7, 2015 15:14
Install script for OpsMan and ERT
#!/bin/bash
bundle exec rake "opsmgr:destroy[deepsouthcloud]"
bundle exec rake "opsmgr:install[deepsouthcloud,$2]"
bundle exec rake "opsmgr:add_first_user[deepsouthcloud,$1]"
bundle exec rake "opsmgr:microbosh:configure[deepsouthcloud,$1]"
bundle exec rake "opsmgr:product:upload_add[deepsouthcloud,$1,$3,cf]"
bundle exec rake "ert:configure[deepsouthcloud,1.5,1.5]"
bundle exec rake "opsmgr:trigger_install[deepsouthcloud,1.5,240]"
@mstine
mstine / deepsouthcloud.yml
Created July 7, 2015 01:12
p-runtime configs for deepsouthcloud
---
name: deepsouthcloud
iaas_type: vsphere
vm_shepherd_configs:
- vcenter_creds:
ip: 192.168.0.11
username: root
password: *********
vsphere:
host: vcenter
@mstine
mstine / gist:dd58c6c0e6dc717b291d
Created July 6, 2015 21:40
Hello Kafka SI world...
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:int="http://www.springframework.org/schema/integration"
xmlns:int-kafka="http://www.springframework.org/schema/integration/kafka"
xmlns:task="http://www.springframework.org/schema/task"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/integration
http://www.springframework.org/schema/integration/spring-integration.xsd