Skip to content

Instantly share code, notes, and snippets.

View bmorton's full-sized avatar

Brian Morton bmorton

  • FireHydrant
  • Oakland, CA
View GitHub Profile
This file has been truncated, but you can view the full file.
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "JSON Schema for an array of Block Kit blocks.",
"id": "https://api.slack.com/json-schema/block-kit/input/blocks",
"type": "array",
"maxItems": 50,
"items": {
"anyOf": [
{
"title": "Actions Block",
[
{
"title": "Problematic migration #20220903010",
"body": "A migration has been introduced that may not run properly in your development environment. If you aren't able to run migrations, try rolling back a few versions or resetting your database to unblock.",
"level": "WARN"
}
]
- alias: Minimote Button 1 Pressed
trigger:
platform: event
event_type: zwave.scene_activated
event_data:
object_id: aeotec_dsa03202_minimote_13
scene_id: 1
action:
service: scene.turn_on
entity_id: scene.basement_normal
set -g default-terminal "screen-256color"
#----------------------------
# Key bindings
#----------------------------
# Change prefix key to Ctrl+a
unbind C-b
set -g prefix C-a
haushinka:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6bbba69ec77f redis "/entrypoint.sh redis" 2 hours ago Up 2 hours 0.0.0.0:6379->6379/tcp redis
haushinka:~$ (echo -en "MONITOR\r\n"; sleep 10) | nc `docker-machine ip default` 6379
+OK
^C
@bmorton
bmorton / htop-osx.rb
Last active February 14, 2016 20:50
class HtopOsx < Formula
desc "Improved top (interactive process viewer) for OS X"
homepage "http://hisham.hm/htop/"
url "http://hisham.hm/htop/releases/2.0.0/htop-2.0.0.tar.gz"
sha256 "d15ca2a0abd6d91d6d17fd685043929cfe7aa91199a9f4b3ebbb370a2c2424b5"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
{
"type": "record",
"name": "test",
"namespace": "com.martinkl.bottledwater.dbschema.public",
"fields": [
{
"name": "id",
"type": [
{
"type": "null"
@bmorton
bmorton / tmux.sh
Last active August 29, 2015 14:17 — forked from jin3110/tmux.sh
#!/bin/bash
# Usage
# =====
# ~~~
# /opt/bin/tmux.sh [tmux args...]
# ~~~
#
# How to install tmux in CoreOS toolbox
# =====================================
FROM yammer/ruby:2.2.0
MAINTAINER Brian Morton "brian@mmm.hm"
# Install package dependencies for pg gem
RUN locale-gen en_US.UTF-8
RUN curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" >> /etc/apt/sources.list
RUN apt-get -y update
RUN apt-get -y install postgresql-client libpq-dev
@bmorton
bmorton / hello-world-0fbb804@.service
Created February 25, 2015 07:55
Unit files for fleet repro for #1131
[Unit]
Description=hello-world-0fbb804
After=docker.service
[Service]
EnvironmentFile=/etc/environment
User=core
TimeoutStartSec=0
ExecStartPre=/usr/bin/docker pull mmmhm/hello-world:0fbb804
ExecStartPre=-/usr/bin/docker rm -f hello-world-0fbb804-%i