Skip to content

Instantly share code, notes, and snippets.

View bmorton's full-sized avatar

Brian Morton bmorton

  • Microsoft
  • 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"
}
]
@bmorton
bmorton / iTunes
Created March 14, 2011 17:56
iTunes workaround to keep it from launching with the play key
#!/usr/bin/env python
import sys, os, subprocess
launch = True
blocker = ""
apps = ["Vox", "VLC"]
ps = subprocess.Popen("/bin/ps -x", shell=True, stdout=subprocess.PIPE)
- 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
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 898e4a7..122cf19 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -2206,7 +2206,7 @@ def init_mkmf(config = CONFIG, rbconfig = RbConfig::CONFIG)
$LOCAL_LIBS = ""
$cleanfiles = config_string('CLEANFILES') {|s| Shellwords.shellwords(s)} || []
- $cleanfiles << "mkmf.log"
+ $cleanfiles << "mkmf.log .*.time"
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
build_package_patch_ruby_railsexpress() {
fetch_git rvm-patchsets git://github.com/skaes/rvm-patchsets.git master
for p in rvm-patchsets/patches/ruby/1.9.3/p484/railsexpress/* ; do
patch -p1 < $p
done
}
install_package "yaml-0.1.5" "http://pyyaml.org/download/libyaml/yaml-0.1.5.tar.gz#24f6093c1e840ca5df2eb09291a1dbf1"
install_package "ruby-1.9.3-p484" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p484.tar.gz#8ac0dee72fe12d75c8b2d0ef5d0c2968" patch_ruby_railsexpress autoconf standard
set -g default-terminal "screen-256color"
#----------------------------
# Key bindings
#----------------------------
# Change prefix key to Ctrl+a
unbind C-b
set -g prefix C-a